/* Chart Container */
.chart-container {
    height: 300px;
    position: relative;
    border: 1px solid #00b6db;
    border-radius: 0.5rem;
    overflow: hidden;
    background: black;
}

@media (min-width: 768px) {
    .chart-container {
        height: 400px;
    }
}

/* Buttons */
.time-button,
.indicator-button {

    border-radius: 0.375rem;
    font-weight: 500;

    background-color: #f3f4f6;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}


.custom-border-color {
       border-color: #00b6db;
   }

.time-button:hover,
.indicator-button:hover {
    background-color: #e5e7eb;
}

.time-button.active,
.indicator-button.active {
    background-color: #888f9b;
    color: #ffffff;
    border-color: #dddddd;
}

/* Signal Cards */
.signal-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;

    background: white;
    font-size: 0.875rem;
    min-height: 200px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.signal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.1);
}

/* Signal Direction Styles */
.up-signal {
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.down-signal {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.1) 100%);
}

/* Progress Ring */
.countdown-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
}

.progress-ring-bg {
    stroke: #e5e7eb;
    stroke-width: 4;
}

.progress-ring-circle {
    stroke-linecap: round;
    stroke: #3b82f6;
    stroke-width: 4;
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

.countdown-text {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f2937;
    font-family: 'Monaco', 'Menlo', monospace;
}

/* Market Select */
#marketSelect {
    background-color: #000000;
    border: 1px solid #00b6db;
    border-radius: 0.375rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #00b6db;
    transition: all 0.2s;
    cursor: pointer;
    min-width: 160px;
    max-width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25em 1.25em;
}

#marketSelect:hover {
    border-color: #3b82f6;
}

#marketSelect:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Loading Animation */
.gemini-loader {
    position: relative;
    width: 100%;
    height: 20px;
    margin: 8px 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f1f5f9;
}

.gemini-loader::after {
    content: "";
    position: absolute;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgb(59 130 246 / 0.3) 50%, transparent 100%);
    animation: gemini-wave 1.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Modal Icons */
.modal-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
    stroke: currentColor;
}

.icon-container {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.compact-modal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal-info-box {
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.modal-info-box.indicator {
    background: #eff6ff;
}

.modal-risk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.risk-box {
    background: #f9fafb;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.risk-box.full-width {
    grid-column: span 2;
}

/* Loading Card */
.loading-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgb(229 231 235);
    position: relative;
    overflow: hidden;
}

.loading-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    opacity: 0.5;
}

.loading-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 4px;
    width: 30%;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
    animation: gemini-progress 2s ease-in-out infinite;
}

/* AI Loader */
.sphere-loader {
    position: relative;
    width: 40px;
    height: 40px;
    display: none;
}

.sphere-loader.active {
    display: block;
}

.sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: aiPulse 2s ease-in-out infinite;
}

.neural-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.3);
    transform: translate(-50%, -50%);
}

.neural-line:nth-child(1) {
    animation: rotateLine 4s linear infinite;
}

.neural-line:nth-child(2) {
    animation: rotateLine 4s linear infinite reverse;
}

.neural-line:nth-child(3) {
    width: 70%;
    height: 70%;
    animation: rotateLine 3s linear infinite;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #3b82f6;
    border-radius: 50%;
    animation: sparkleFloat 2s ease-in-out infinite;
}

.sparkle:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 1s;
}

.sparkle:nth-child(4) {
    top: 50%;
    left: 0;
    animation-delay: 1.5s;
}

.sphere-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    animation: coreGlow 2s ease-in-out infinite;
}

/* Card Components */
.stat-box {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.375rem;
    border-radius: 0.375rem;
    backdrop-filter: blur(4px);
}

.show-details-btn {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.show-details-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Animations */
@keyframes gemini-wave {
    0% {
        transform: translateX(-200%);
    }

    100% {
        transform: translateX(300%);
    }
}

@keyframes gemini-progress {
    0% {
        transform: translateX(-300%);
    }

    100% {
        transform: translateX(300%);
    }
}

@keyframes aiPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        border-color: rgba(59, 130, 246, 0.8);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        border-color: rgba(99, 102, 241, 0.8);
    }
}

@keyframes rotateLine {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes sparkleFloat {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.5) translate(5px, -5px);
        opacity: 1;
    }
}

@keyframes coreGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.9);
    }
}

.modal-info-box.indicator {
    background: #eff6ff;
}

/* Modal Loading Animation */
.modal-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-loading.active {
    opacity: 1;
}

.modal-content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal-content.visible {
    opacity: 1;
}


/* Chart Controls Responsive Styles */
.chart-controls {
    background: black;
}

.controls-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.select-wrapper {
    width: 100%;
}

.market-select {
    width: 100%;
    min-height: 32px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #00b6db;
    border-radius: 0.375rem;
    background-color: #000000;
    color: #00b6db;
}

.controls-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.nav-link {
    color: #00b6db;
}



.timeframe-buttons,
.indicator-buttons {
    display: flex;
    gap: 0.25rem;

}

.time-button,
.indicator-button {


    min-width: 36px;
}

/* Medium screens and up */
@media (min-width: 768px) {
    .controls-container {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .select-wrapper {
        width: auto;
        min-width: 160px;
    }

    .controls-group {
        flex: 1;
        justify-content: space-between;
    }

    .time-button,
    .indicator-button {


        min-width: 44px;
    }

    .market-select {
        padding: 0.375rem 0.75rem;
    }
}

/* Preserve existing button styles while making them more compact */
.time-button,
.indicator-button {
    border-radius: 0.375rem;
    font-weight: 500;
    background-color: #f3f4f6;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
    text-align: center;
}

/* Ensure buttons remain clickable on touch devices */
@media (max-width: 767px) {

    .time-button,
    .indicator-button {
        touch-action: manipulation;

    }
}

.modal-backdrop {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-content {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.modal-content.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-backdrop {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.modal-backdrop.show {
    opacity: 1;
}

.modal-content {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.modal-content.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Remove spinner from number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Trades Table Styles */
.trades-table-container {
    margin-top: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.trades-table-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.trades-table-container tr {
    transition: background-color 0.2s;
}

.trades-table-container tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.trades-table-container th,
.trades-table-container td {
    white-space: nowrap;
}

/* Animation for new trades */
@keyframes highlightRow {
    0% {
        background-color: rgba(59, 130, 246, 0.1);
    }

    100% {
        background-color: transparent;
    }
}

.new-trade {
    animation: highlightRow 1s ease-out;
}


/* Toast Container */
#toast-container {
    pointer-events: none;
    /* Let clicks pass through the container */
}

#toast-container>div {
    pointer-events: auto;
    /* Re-enable clicks on the toasts themselves */
}

/* Toast Animations */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.modal-backdrop {
    opacity: 0;
    transition: opacity 0.2s ease-out;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-content {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.2s ease-out;
}

.modal-content.show {
    opacity: 1;
    transform: scale(1);
}

.chart-loading {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.chart-loading.hidden {
    opacity: 0;
    pointer-events: none;
}




.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    text-align: center;
    font-weight: 500;
    color: #4B5563;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-text::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.5;
    }
}

@keyframes dots {

    0%,
    20% {
        content: "";
    }

    40% {
        content: ".";
    }

    60% {
        content: "..";
    }

    80%,
    100% {
        content: "...";
    }
}

#active-trades-tbl-container button {
    transition: all 0.2s ease-in-out;
}

#active-trades-tbl-container button.active {
    border-bottom-width: 2px;
    border-color: rgb(37, 99, 235);
    color: rgb(37, 99, 235);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.tooltip-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-10%);
    padding: 0.5rem;
    background: #1f2937;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 50;
    min-width: 200px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.group:hover .tooltip-content {
    display: block;
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

/* Strategy Buttons */
.strategy-button {
    border-radius: 0.375rem;
    font-weight: 500;
    background-color: #f3f4f6;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.strategy-button:hover {
    background-color: #e5e7eb;
}

.strategy-button.active {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #2563eb;
}

/* Strategy Controls Container */
.strategy-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .strategy-controls {
        flex-wrap: nowrap;
    }
}


/**********************************************************/

/* Base container styles */
/* Base container styles with cross-browser compatibility */
.digit-stats-row {
    display: -webkit-box;
    /* Older WebKit */
    display: -ms-flexbox;
    /* IE 10 */
    display: -webkit-flex;
    /* New WebKit */
    display: flex;
    /* Standard syntax */

    -webkit-flex-wrap: nowrap;
    /* iOS, Safari */
    -ms-flex-wrap: nowrap;
    /* IE 10 */
    flex-wrap: nowrap;
    /* Standard syntax */

    gap: 1rem;

    /* Fallback for browsers that don't support gap */
    -webkit-column-gap: 1rem;
    -moz-column-gap: 1rem;
    column-gap: 1rem;

    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */

    /* Cross-browser scrollbar hiding */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

/* Webkit-specific scrollbar hiding */
.digit-stats-row::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, newer versions of Opera */
}

.digit-stat-box {
    -webkit-flex: 1;
    /* iOS, Safari */
    -ms-flex: 1;
    /* IE 10 */
    flex: 1;
    /* Standard syntax */

    min-width: 120px;
    background: white;
    border-radius: 0.5rem;
    padding: 0.75rem;

    /* Ensure consistent box-sizing */
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;

    /* Ensure proper alignment and distribution */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

/* Preserve mobile styles for smaller screens */
@media (max-width: 1023px) {
    .digit-stat-box {
        min-width: 120px;

        /* Responsive padding */
        padding: 0.625rem;
    }

    .digit-stat-value {
        font-size: 1rem;
        line-height: 1;
    }

    .digit-stat-label {
        font-size: 0.75rem;
        margin-top: 0.25rem;
        text-align: center;
    }
}

/* Ensure text doesn't overflow */
.digit-stat-value,
.digit-stat-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Additional responsive considerations */
@media (max-width: 480px) {
    .digit-stats-row {
        gap: 0.5rem;
    }

    .digit-stat-box {
        min-width: 100px;
        padding: 0.5rem;
    }

    .digit-stat-value {
        font-size: 1rem;
    }

    .digit-stat-label {
        font-size: 0.675rem;
    }
}


/* Even/Odd Segment Progress Styles */
.segment-progress-container {
    position: relative;
    padding-top: 0.5em;
    width: 100%;
}

.segment-progress-bg {
    height: 12px;
    background: #f3f4f6;
    position: relative;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.segments-row {
    display: flex;
    height: 100%;
    width: 100%;
}

.segment {
    flex: 1;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.segment:last-child {
    border-right: none;
}

.progress-overlay {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    transition: width 0.3s ease;
}

.progress-marker {
    position: absolute;
    top: 7px;
    width: 2px;
    height: 14px;
    background: #374151;
    transform: translateX(-50%);
    transition: left 0.3s ease;
}



/* Circular Progress Styles with Cross-Browser Compatibility */
.digit-progress-wrap {
    position: relative;
    width: 50%;
    padding-bottom: 50%;
    max-width: 200px;
    margin: 0 auto;
    
    /* Ensure hardware acceleration */
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.digit-progress-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.digit-progress-arc {
    stroke-dasharray: 0 251.2;
    stroke-linecap: round;
    stroke-width: 4;
    /* Vendor-prefixed transforms */
    -webkit-transform-origin: center;
    -moz-transform-origin: center;
    -ms-transform-origin: center;
    transform-origin: center;
    
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
    
    /* Cross-browser transition */
    -webkit-transition: stroke-dasharray 0.3s ease;
    -moz-transition: stroke-dasharray 0.3s ease;
    -o-transition: stroke-dasharray 0.3s ease;
    transition: stroke-dasharray 0.3s ease;
    
    /* Ensure fill is none for all browsers */
    fill: none;
}

.digit-progress-bg {
    stroke: #f3f4f6;
    stroke-width: 4;
    
    /* Ensure fill is none */
    fill: none;
}

.digit-stat-content {
    position: absolute;
    top: 50%;
    left: 50%;
    
    /* Vendor-prefixed transform */
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    
    text-align: center;
    width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .digit-progress-wrap {
        width: 70%;
        padding-bottom: 70%;
    }
    
    .digit-progress-bg,
    .digit-progress-arc {
        stroke-width: 4;
    }
}

/* Color Variations for Progress Arc */
.under-percentage {
    stroke: #0ea5e9;
}

.middle-percentage {
    stroke: #22c55e;
}

.over-percentage {
    stroke: #8b5cf6;
}

/* Ensure SVG rendering consistency */
svg {
    max-width: 100%;
    height: auto;
}





/* Desktop-specific modifications */
@media (min-width: 1024px) {
    .digit-stats-row {
        gap: 0.75rem;
        /* Reduce gap between items */
    }

    .digit-stat-box {
        min-width: 100px;
        /* Reduce minimum width */
        padding: 0.5rem;
        /* Reduce padding */
    }

    .digit-progress-wrap {
        max-width: 200px;
        padding-bottom: 10rem;
        margin: 0 auto;
      
    }

    .digit-progress-svg {
        transform: scale(0.9);
        /* Slightly reduce SVG size */
    }

    .digit-stat-content {
        transform: translate(-50%, -50%) scale(0.9);
        /* Scale down content */
    }

    .digit-stat-value {
        font-size: 1rem;
        /* Smaller font for percentage */
    }

    .digit-stat-label {
        font-size: 0.75rem;
        /* Smaller font for label */
        margin-top: 0.125rem;
    }

    /* Adjust circle properties for better fit */
    .digit-progress-bg,
    .digit-progress-arc {
        stroke-width: 4;
       
    }
}

/* Custom colors for circular progress */
.under-percentage {
    stroke: #0ea5e9;
}

.middle-percentage {
    stroke: #22c55e;
}

.over-percentage {
    stroke: #8b5cf6;
}

/* Text styles */
.digit-stat-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: #374151;
}

.digit-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}



/* Mobile styles */
@media (max-width: 768px) {
    .digit-stats-row {
        gap: 0.5rem;
    }

    .digit-stat-box {
        min-width: 120px;
        padding: 0.75rem;
    }

    .digit-stat-value {
        font-size: 0.9rem;
    }

    .digit-stat-label {
        font-size: 0.75rem;
    }

    .segment-progress-bg {
        height: 12px;
    }

    .progress-marker {
        height: 14px;
    }
}

/* Segment colors for Even/Odd */
.segment:nth-child(1) {
    background-color: #ef4444;
}

/* Red */
.segment:nth-child(2) {
    background-color: #f97316;
}

/* Orange */
.segment:nth-child(3) {
    background-color: #eab308;
}

/* Yellow */
.segment:nth-child(4) {
    background-color: #84cc16;
}

/* Lime */
.segment:nth-child(5) {
    background-color: #22c55e;
}

/* Green */
.segment:nth-child(6) {
    background-color: #10b981;
}

/* Emerald */
.segment:nth-child(7) {
    background-color: #06b6d4;
}

/* Cyan */
.segment:nth-child(8) {
    background-color: #0ea5e9;
}

/* Sky */
.segment:nth-child(9) {
    background-color: #3b82f6;
}

/* Blue */
.segment:nth-child(10) {
    background-color: #6366f1;
}

/* Indigo */


/* Loading State Styles */
.loading-state {
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-out;
    -moz-transition: opacity 0.3s ease-out;
    -o-transition: opacity 0.3s ease-out;
    transition: opacity 0.3s ease-out;
}

.loading-state.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Pulse Animation with Vendor Prefixes */
.animate-pulse {
    -webkit-animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    -moz-animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@-webkit-keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@-moz-keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* Recent Digits Container */
#recentDigitsContainer {
    position: relative;
    overflow: hidden;
    /* Contains the scroll container */
}

/* Slide Left Animation with Vendor Prefixes */
@-webkit-keyframes slideLeft {
    from {
        -webkit-transform: translateX(2rem);
        transform: translateX(2rem);
        opacity: 0;
    }

    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@-moz-keyframes slideLeft {
    from {
        -moz-transform: translateX(2rem);
        transform: translateX(2rem);
        opacity: 0;
    }

    to {
        -moz-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    from {
        -webkit-transform: translateX(-2rem);
        -moz-transform: translateX(-2rem);
        transform: translateX(-2rem);
        opacity: 0;
    }

    to {
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }
}

/* Recent Digits Scrollable Container */
#recentDigits {
    display: -webkit-box;
    /* Older WebKit */
    display: -ms-flexbox;
    /* IE 10 */
    display: -webkit-flex;
    /* New WebKit */
    display: flex;
    /* Standard syntax */

    gap: 0.5rem;

    /* Fallback for browsers that don't support gap */
    -webkit-column-gap: 0.5rem;
    -moz-column-gap: 0.5rem;
    column-gap: 0.5rem;

    overflow-x: auto;
    padding: 0.5rem;

    /* Cross-browser scrollbar hiding */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */

    white-space: nowrap;

    -webkit-flex-wrap: nowrap;
    /* iOS, Safari */
    -ms-flex-wrap: nowrap;
    /* IE 10 */
    flex-wrap: nowrap;
    /* Standard syntax */
}

/* Webkit-specific scrollbar hiding */
#recentDigits::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, newer versions of Opera */
}

/* Digit Box Styles */
.digit-box {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;

    border: 1px solid #e5e7eb;
    min-width: 2rem;
    height: 2rem;

    /* Prevent flex item shrinking */
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;

    display: -webkit-box;
    /* Older WebKit */
    display: -ms-flexbox;
    /* IE 10 */
    display: -webkit-flex;
    /* New WebKit */
    display: flex;
    /* Standard syntax */

    -webkit-box-align: center;
    /* Older WebKit */
    -ms-flex-align: center;
    /* IE 10 */
    align-items: center;
    /* Standard syntax */

    -webkit-box-pack: center;
    /* Older WebKit */
    -ms-flex-pack: center;
    /* IE 10 */
    justify-content: center;
    /* Standard syntax */
}

/* Animation for New Digits */
.digit-box:first-child {
    -webkit-animation: slideLeft 0.3s ease-out;
    -moz-animation: slideLeft 0.3s ease-out;
    animation: slideLeft 0.3s ease-out;
}

/* Latest Digit Highlight */
.latest-digit {
    border-color: #3b82f6;

    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);

    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

/* Desktop styles */
@media (min-width: 768px) {
    #recentDigitsContainer {
        display: -webkit-box;
        /* Older WebKit */
        display: -ms-flexbox;
        /* IE 10 */
        display: -webkit-flex;
        /* New WebKit */
        display: flex;
        /* Standard syntax */

        -webkit-box-pack: center;
        /* Older WebKit */
        -ms-flex-pack: center;
        /* IE 10 */
        justify-content: center;
        /* Standard syntax */
    }

    #recentDigits {
        /* Flexible max-width that works across browsers */
        max-width: -webkit-max-content;
        max-width: -moz-max-content;
        max-width: max-content;

        margin: 0 auto;

        display: -webkit-box;
        /* Older WebKit */
        display: -ms-flexbox;
        /* IE 10 */
        display: -webkit-flex;
        /* New WebKit */
        display: flex;
        /* Standard syntax */

        -webkit-box-pack: center;
        /* Older WebKit */
        -ms-flex-pack: center;
        /* IE 10 */
        justify-content: center;
        /* Standard syntax */
    }
}



#chart-container-wrapper {
    position: relative;
}

#chart-contaianer {
    transition: height 0.3s ease-in-out,
                padding 0.3s ease-in-out;
}

#toggleChartBtn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

#toggleChartIcon {
    transition: transform 0.3s ease-in-out;
}


#socialDropdownMenu {
    min-width: 180px;
    transform-origin: top right;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
}

#socialDropdownMenu a {
    transition: background-color 0.2s ease;
}

#socialDropdownMenu a:hover {
    background-color: rgba(0, 0, 0, 0.025);
}

#socialDropdownMenu i, 
#socialDropdownMenu img {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon colors */
#socialDropdownMenu .fa-telegram {
    color: #0088cc;
}

#socialDropdownMenu .fa-coins {
    color: #c77c2b;
}

#socialDropdownMenu .fa-youtube {
    color: #FF0000;
}

#socialDropdownMenu .fa-google-play {
    color: #104734;
}
