﻿/* Matte Black Neumorphic Theme */
* {
    box-sizing: border-box;
}

.neumorphic-app {
    min-height: 100vh;
    background: #0f0f0f;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
}

.neumorphic-header h1 {
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chart-container {
    background: #222;
    border-radius: 16px;
    padding: 30px; /* Increased padding */
    box-shadow: 6px 6px 12px rgba(0,0,0,0.5), -6px -6px 12px rgba(30,30,30,0.3), inset 1px 1px 2px rgba(255,255,255,0.02);
    border: 1px solid #333;
    margin-bottom: 1.5rem;
}
/* Ensure clean origin spacing */
.rz-chart .rz-chart-axis-label {
    padding-left: 8px !important;
    padding-bottom: 8px !important;
}

.neumorphic-chart {
    padding: 20px !important; /* Chart internal padding */
}
.neumorphic-dropdown .rz-dropdown {
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    color: #e0e0e0;
}

    .neumorphic-dropdown .rz-dropdown:hover {
        border-color: #00d4ff;
        box-shadow: 0 0 0 2px rgba(0,212,255,0.2);
    }

/* Tab-style Radio Buttons */
/* Stretched Tab-style Radio Buttons - Textbox Width */
.filter-tabs {
    margin-bottom: 1.5rem;
}

.tab-radio-container {
    display: flex;
    gap: 4px;
    background: #222;
    padding: 6px; /* Slightly more padding */
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.4), inset -3px -3px 6px rgba(40,40,40,0.2);
    width: 350px; /* MATCH TEXTBOX WIDTH */
    justify-content: space-between; /* Even distribution */
}

.tab-radio {
    position: relative;
    cursor: pointer;
    flex: 1; /* Equal width for all 4 tabs */
    text-align: center;
}

    .tab-radio input[type="radio"] {
        opacity: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .tab-radio span {
        display: block;
        padding: 10px 8px; /* Perfect proportions */
        font-weight: 600;
        font-size: 0.9rem;
        color: #b0b0b0;
        border-radius: 8px;
        transition: all 0.3s ease;
        height: 42px; /* Fixed height for alignment */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tab-radio.active span {
        background: linear-gradient(145deg, #00d4ff, #00b8ff);
        color: #000 !important;
        box-shadow: 3px 3px 6px rgba(0,184,255,0.4), -2px -2px 4px rgba(0,0,0,0.4);
        transform: translateY(-1px);
    }

    .tab-radio:not(.active):hover span {
        background: #2a2a2a;
        color: #e0e0e0;
    }

/* Perfect responsive */
@media (max-width: 768px) {
    .tab-radio-container {
        width: 100%; /* Full width on mobile */
        max-width: 350px;
    }
}



/* Main Card - Matte Neumorphic */
.neumorphic-card {
    background: #1a1a1a;
    border-radius: 16px;
    box-shadow: 6px 6px 12px rgba(0,0,0,0.5), -6px -6px 12px rgba(30,30,30,0.3), inset 2px 2px 4px rgba(255,255,255,0.03);
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease;
    padding: 2rem;
}
.neumorphic-tooltip {
    background: #2a2a2a !important;
    border-radius: 8px !important;
    border: 1px solid #444;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.8);
    font-size: 0.9rem;
    padding: 8px 12px !important;
    white-space: nowrap;
}

    .neumorphic-tooltip strong {
        color: #00d4ff !important;
    }


    .neumorphic-card:hover {
        box-shadow: 8px 8px 16px rgba(0,0,0,0.6), -8px -8px 16px rgba(30,30,30,0.4);
        transform: translateY(-2px);
    }

/* Input - Subtle Matte */
.neumorphic-input {
    background: #222 !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    box-shadow: inset 4px 4px 8px rgba(0,0,0,0.4), inset -3px -3px 6px rgba(40,40,40,0.2);
    color: #e0e0e0 !important;
    padding: 14px 20px !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

    .neumorphic-input:focus {
        box-shadow: inset 3px 3px 6px rgba(0,0,0,0.5), 2px 2px 4px rgba(0,212,255,0.2);
        border-color: #00d4ff !important;
        background: #252525 !important;
        outline: none;
    }

/* Button - Matte Primary */
.neumorphic-btn {
    background: #00d4ff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 5px 5px 10px rgba(0,184,255,0.3), -5px -5px 10px rgba(0,0,0,0.4), inset 2px 2px 4px rgba(255,255,255,0.15);
    color: #000 !important;
    font-weight: 600;
    padding: 14px 28px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    min-width: 140px;
    transition: all 0.3s ease;
}

    .neumorphic-btn:hover {
        background: #00e6ff !important;
        box-shadow: 4px 4px 8px rgba(0,184,255,0.4), -4px -4px 8px rgba(0,0,0,0.5), inset 2px 2px 4px rgba(255,255,255,0.2);
        transform: translateY(-1px);
    }

/* Chart Container - Clean Matte */
.chart-container {
    background: #222;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 6px 6px 12px rgba(0,0,0,0.5), -6px -6px 12px rgba(30,30,30,0.3), inset 1px 1px 2px rgba(255,255,255,0.02);
    border: 1px solid #333;
    margin-bottom: 1.5rem;
}

/* Loading */
.neumorphic-loading {
    text-align: center;
    padding: 3rem;
    color: #b0b0b0;
}

    .neumorphic-loading .spinner-border {
        width: 3rem;
        height: 3rem;
    }

/* Data Info Badge */
.neumorphic-badge {
    background: #00d4ff !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
    box-shadow: 3px 3px 6px rgba(0,184,255,0.3), -3px -3px 6px rgba(0,0,0,0.4);
    color: #000 !important;
}

/* Alert */
.neumorphic-alert {
    background: #252525 !important;
    border-radius: 12px !important;
    box-shadow: 4px 4px 8px rgba(0,0,0,0.4), -4px -4px 8px rgba(40,40,40,0.3);
    border: 1px solid #444 !important;
    color: #b0b0b0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .neumorphic-app {
        padding: 1rem;
    }

    .neumorphic-header h1 {
        font-size: 1.8rem;
    }

    .neumorphic-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
}
