/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body with darker gradient */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(145deg, #08080f 0%, #12151a 100%);
    color: #d1d5db;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    animation: fadeIn 1.2s ease-in-out;
}

/* Background overlay for depth */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: -1;
    animation: pulseBackground 12s ease-in-out;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pulseBackground {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 15, 0.95);
    backdrop-filter: blur(12px) saturate(140%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
    opacity: 0;
}

.loading-overlay[style*="display: none"] {
    display: none !important;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.15);
    border-top: 6px solid #3b82f6;
    border-radius: 50%;
}

/* Glass Containers */
.glass-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px) saturate(140%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    margin: 0 auto 20px;
    max-width: 1200px;
    padding: 20px;
    transition: box-shadow 0.4s ease;
}

.glass-container:hover {
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

/* Controls Section (Navbar) */
#controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#controls select,
#controls input,
#controls button {
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #d1d5db;
    font-size: 15px;
    transition: all 0.3s ease;
    margin: 0 6px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

#controls select:focus,
#controls input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

#controls select {
    min-width: 150px;
}

#controls select option {
    background: rgba(8, 8, 15, 0.95);
    color: #d1d5db;
    font-size: 15px;
}

#controls input {
    min-width: 100px;
}
/* Checkbox Styling */
#controls input[type="checkbox"] {
    display: inline-block; /* Ensure checkbox is visible */
    width: 2px; /* Square size */
    height: 24px; /* Square size */
    appearance: none; /* Remove default browser styling */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px; /* Slightly rounded for consistency */
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 6px; /* Consistent spacing with other controls */
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
    aspect-ratio: 1 / 1; /* Enforce square shape */
    flex-shrink: 0; /* Prevent flexbox compression */
    flex-grow: 0; /* Prevent stretching */
}

#controls input[type="checkbox"]:checked {
    background: linear-gradient(45deg, #1e40af, #3b82f6); /* Match button gradient */
}

#controls input[type="checkbox"]:checked::after {
    content: '\f00c'; /* Font Awesome checkmark icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffffff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#controls input[type="checkbox"]:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

#controls input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

#controls input[type="number"],  #controls input[type="checkbox"]{
    display : none;
}

#controls button {
    background: linear-gradient(45deg, #1e40af, #3b82f6);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#controls button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: width 0.5s ease, height 0.5s ease;
}

#controls button:hover::after {
    width: 250px;
    height: 250px;
}

#controls button:hover {
    background: linear-gradient(45deg, #1e3a8a, #2563eb);
}

#toggle-inputs {
    display: none;
}

/* Values Section */
.glass-values {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 25px;
}

.value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.value-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.glass-values label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    animation: fadeIn 1s ease-out 0.4s both;
}

.glass-values h3 {
    font-size: 22px;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    animation: fadeIn 1s ease-out 0.5s both;
}

#hedge-ratio {
    color: #facc15;
}

#min-spread {
    color: #ef4444;
}

#max-spread {
    color: #3b82f6;
}

/* Chart Containers */
#chart-container canvas,
#more-charts canvas {
    width: 100% !important;
    max-height: 450px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px) saturate(140%);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

/* Exchanges Section */
#div-exchanges {
    text-align: center;
}

#div-exchanges h2 {
    display: block;
    font-size: 30px;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out 0.5s both;
    text-align: center;
}

#exchanges {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#exchanges a img {
    display: block;
    margin: auto 10px auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 15px #00000066;
}

#exchanges a img:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-container {
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    #controls select,
    #controls input,
    #controls button {
        width: 100%;
        margin-bottom: 12px;
        margin: 0;
    }

    #toggle-inputs {
        display: block;
    }

    .glass-values {
        flex-direction: column;
        align-items: stretch;
    }

    .value-card {
        margin-bottom: 15px;
    }

    #chart-container canvas,
    #more-charts canvas {
        max-height: 300px;
    }

    #exchanges {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 20px;
        justify-content: center;
        align-items: center;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    #div-exchanges h2 {
        font-size: 24px;
    }

    #exchanges a img {
        width: 40px;
        height: 40px;
    }

    .glass-values {
        padding: 12px;
    }

    .glass-values label {
        font-size: 12px;
    }

    .glass-values h3 {
        font-size: 18px;
    }

    #exchanges {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 15px;
    }
}

/*# sourceMappingURL=main.css.map*/