/* --- IPO DASHBOARD THEME --- */
.ipo-wrapper {
    min-height: 100vh;
    background: radial-gradient(circle at 50% -20%, #162642, #00040c 80%);
    padding-top: 100px;
}

/* --- TEXT COLOR HELPERS --- */
.aqi-table .text-green { color: #09a94b !important; }
.aqi-table .text-red { color: #ef4444 !important; }

/* --- CATEGORY TAG (STOCK SECTOR) --- */
.stock-sector {
    background: rgba(9, 169, 75, 0.15);
    color: #09a94b;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    border: 1px solid rgba(9, 169, 75, 0.2);
    display: inline-block;
}

.stock-title-sub {
    display: inline-block;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    font-size: 2rem;
    border-bottom: 5px solid rgba(9, 169, 75, 0.4);
    padding-bottom: 10px;
    border-radius: 0 0 12px 12px;
}

/* --- TAB TOGGLE CONTAINER (PILL) --- */
.method-toggle-pill {
    background: #000000;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    gap: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Individual Buttons inside the Pill */
.method-btn {
    background: transparent;
    border: none;
    color: #64748b;
    /* Muted Slate */
    padding: 10px 22px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    letter-spacing: 0.5px;
}

/* Hover effect for inactive buttons */
.method-btn:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Active State - AQI Neon Green */
.method-btn.active {
    background: #09a94b;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(9, 169, 75, 0.4);
}

/* --- TEXT STYLING FOR TITLES --- */
.stock-title-main {
    font-family: 'Impact', sans-serif;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    margin: 0;
    font-size: 3.5rem;
}

/* --- TABLE STYLING --- */
.genz-table-wrapper {
    background: rgba(11, 17, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.aqi-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
}

.aqi-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aqi-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 0.9rem;
    vertical-align: middle;
}

.aqi-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Sticky Column */
.sticky-col {
    position: sticky;
    left: 0;
    background: #0b111a;
    z-index: 5;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

/* Status Badges */
.badge-status {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid currentColor;
}

:root[data-theme="light"] .ipo-wrapper {
    background: radial-gradient(circle at 50% -20%, #edf5ff, #f6f9ff 80%);
}

:root[data-theme="light"] .method-toggle-pill {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .method-btn:hover:not(.active) {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .stock-title-main {
    color: #0f172a;
    text-shadow: none;
}

:root[data-theme="light"] .genz-table-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .aqi-table th {
    background: #edf4fb;
    color: #334155;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .aqi-table td {
    color: #334155;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .aqi-table tr:hover td {
    background: rgba(15, 23, 42, 0.04);
}

:root[data-theme="light"] .sticky-col {
    background: #f8fbff;
    border-right: 1px solid rgba(15, 23, 42, 0.1);
}
