/**
 * ==========================================
 * AI Wealth Tech India Toolkit
 * Dashboard CSS 3.0.0 Final Stable
 * ==========================================
 */

/* =========================
   Header
========================= */

.awti-header {
    margin-bottom: 20px;
    text-align: center;
}

.awti-header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.3;
}

.awti-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* =========================
   Main Navigation
========================= */

.awti-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.awti-tab {
    flex: 1;
    min-width: 170px;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 18px;

    background: #fff;
    color: #1d2327 !important;
    border: 1px solid #dcdcde;
    border-radius: 8px;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -webkit-text-fill-color: #1d2327 !important;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
}

.awti-tab:hover,
.awti-tab:focus {
    background: #f6f7f7;
    color: #1d2327 !important;
    border-color: #bfc3c7;
    outline: none;
    -webkit-text-fill-color: #1d2327 !important;
}

.awti-tab.active {
    background: #2271b1;
    color: #fff !important;
    border-color: #2271b1;
    -webkit-text-fill-color: #fff !important;
}

.awti-tab.active:hover,
.awti-tab.active:focus {
    background: #135e96;
    color: #fff !important;
    border-color: #135e96;
    -webkit-text-fill-color: #fff !important;
}

/* =========================
   Pages
========================= */

.awti-page {
    display: none;
    margin-top: 25px;
}

.awti-page.active {
    display: block;
}

/* =========================
   Sub Navigation
========================= */

.awti-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.awti-sub-tab {
    flex: 1;
    min-width: 160px;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;

    background: #fff;
    color: #1d2327 !important;
    border: 1px solid #dcdcde;
    border-radius: 8px;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -webkit-text-fill-color: #1d2327 !important;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;

    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
}

.awti-sub-tab:hover,
.awti-sub-tab:focus {
    background: #f6f7f7;
    color: #1d2327 !important;
    border-color: #bfc3c7;
    outline: none;
    -webkit-text-fill-color: #1d2327 !important;
}

.awti-sub-tab.active {
    background: #2271b1;
    color: #fff !important;
    border-color: #2271b1;
    -webkit-text-fill-color: #fff !important;
}

.awti-sub-tab.active:hover,
.awti-sub-tab.active:focus {
    background: #135e96;
    color: #fff !important;
    border-color: #135e96;
    -webkit-text-fill-color: #fff !important;
}

/* =========================
   Sub Pages
========================= */

.awti-sub-page {
    display: none;
    margin-top: 20px;
}

.awti-sub-page.active {
    display: block;
}

/* =========================
   Safety Fixes
========================= */

.awti-calculator-dashboard button,
.awti-calculator-dashboard .awti-tab,
.awti-calculator-dashboard .awti-sub-tab {
    font-family: inherit;
    text-shadow: none;
    filter: none;
}

.awti-calculator-dashboard button span,
.awti-calculator-dashboard .awti-tab span,
.awti-calculator-dashboard .awti-sub-tab span {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Agar kisi global CSS me anchor/button color force ho raha ho */
.awti-calculator-dashboard .awti-nav button,
.awti-calculator-dashboard .awti-sub-tabs button {
    color: #1d2327 !important;
}

.awti-calculator-dashboard .awti-nav button.active,
.awti-calculator-dashboard .awti-sub-tabs button.active {
    color: #fff !important;
}

/* =========================
   Tablet
========================= */

@media (max-width: 768px) {
    .awti-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .awti-sub-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .awti-tab,
    .awti-sub-tab {
        min-width: 100%;
        font-size: 14px;
        padding: 12px;
    }
}

/* =========================
   Mobile
========================= */

@media (max-width: 480px) {
    .awti-nav,
    .awti-sub-tabs {
        grid-template-columns: 1fr;
    }

    .awti-tab,
    .awti-sub-tab {
        font-size: 14px;
        min-height: 50px;
        white-space: normal;
    }

    .awti-header h1 {
        font-size: 24px;
    }

    .awti-header p {
        font-size: 14px;
    }
}