@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =========================================
   1. GLOBAL & LAYOUT
   ========================================= */
body {
    font-family: 'Inter', sans-serif;
    background-color: #F8FAFC !important; /* Cleaner slate background for premium feel */
    overflow-x: hidden !important;
    width: 100%;
}

/* =========================================
   2. APP HEADER & PROFILE
   ========================================= */
.glass-appbar {
    background: #008CD2 !important;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(0, 140, 210, 0.2) !important;
    border-bottom: none !important;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    padding: 6px 16px 6px 8px;
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

    .user-profile-badge:hover {
        background-color: rgba(255, 255, 255, 0.22) !important;
        transform: translateY(-1px);
    }

.user-name-text {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
}

.user-type-caption {
    color: #FCD34D !important;
    font-weight: 900 !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.avatar-flat {
    background-color: white !important;
    color: #008CD2 !important;
    font-weight: 900;
}

/* =========================================
   3. SIDEBAR NAVIGATION
   ========================================= */
.sidebar-drawer {
    background-color: #FFFFFF !important;
    border-right: 1px solid #F1F5F9 !important;
}

.nav-section-header {
    font-size: 0.7rem !important;
    font-weight: 900 !important;
    color: #94A3B8 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 28px 24px 10px 24px !important;
}

.nav-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 16px 24px;
}

.mud-nav-link {
    margin: 6px 16px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
    color: #475569 !important;
}

    .mud-nav-link:hover {
        background-color: #F1F5F9 !important;
        color: #008CD2 !important;
        transform: translateX(6px);
    }

    .mud-nav-link.active {
        background: linear-gradient(90deg, #E0F2FE 0%, #F0F9FF 100%) !important;
        color: #008CD2 !important;
        font-weight: 800 !important;
        box-shadow: inset 4px 0 0 #008CD2;
    }

.nav-logout-section {
    margin-top: auto;
    padding-bottom: 24px;
}

.mud-nav-link.logout-link {
    color: #EF4444 !important;
}

    .mud-nav-link.logout-link:hover {
        background-color: #FEF2F2 !important;
        color: #DC2626 !important;
    }

/* =========================================
   4. PAGE HEADERS & FILTER PANELS
   ========================================= */
.page-header-zone {
    margin-bottom: 32px;
}

.header-accent-bar {
    width: 6px;
    height: 42px;
    border-radius: 12px;
    margin-right: 18px;
    box-shadow: 0 4px 12px rgba(0, 140, 210, 0.2);
}

.page-title {
    color: #0F172A !important;
    font-weight: 900 !important;
    font-size: 2.25rem !important;
    letter-spacing: -0.04em !important;
}

.page-subtitle {
    color: #64748B !important;
    font-size: 1rem;
    font-weight: 500 !important;
    margin-top: 4px;
}

.filter-panel-elevated {
    border-radius: 24px !important; /* Aligned with Dashboard */
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
    box-shadow: 0 15px 35px -12px rgba(0,0,0,0.06) !important;
    background: white !important;
    padding: 32px !important;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.filter-btn {
    border-radius: 14px !important;
    font-weight: 800 !important;
    height: 48px !important;
    box-shadow: 0 10px 20px -5px rgba(0, 140, 210, 0.3) !important;
    text-transform: none !important;
}

/* =========================================
   5. TABLES & TYPOGRAPHY (PREMIUM FINISH)
   ========================================= */
.table-container-card {
    border-radius: 24px !important;
    border: 1px solid #E2E8F0 !important;
    overflow: hidden;
    background: white !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05) !important;
}

/* Modern Header Overlays */
.sticky-th th {
    position: sticky !important;
    top: 0;
    background-color: #F8FAFC !important;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase;
    color: #475569 !important;
    padding: 20px !important;
    border-bottom: 2px solid #F1F5F9 !important;
}

.mud-table-cell {
    padding: 20px 24px !important;
    border-bottom: 1px solid #F1F5F9 !important;
    font-size: 0.9rem !important;
    color: #334155 !important;
}

.mud-table-row:hover {
    background-color: #F8FAFC !important;
}

/* Financial Color Overrides */
.text-inward {
    color: #10B981 !important;
    font-weight: 800 !important;
}

.text-outward {
    color: #EF4444 !important;
    font-weight: 800 !important;
}

.text-balance {
    color: #0F172A !important;
    font-weight: 900 !important;
}

.text-neutral-bold {
    color: #1E293B !important;
    font-weight: 800 !important;
}

.table-link-text {
    color: #008CD2 !important;
    font-weight: 700 !important;
    text-decoration: none;
}

.row-special {
    background-color: #F8FAFC !important;
}

.row-special-title {
    color: #008CD2 !important;
    font-weight: 900 !important;
}

/* =========================================
   6. PREMIUM BADGES & STATUS PILLS
   ========================================= */
.status-pill {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.status-info {
    background-color: #E0F2FE;
    color: #0284C7;
}

.status-success {
    background-color: #DCFCE7;
    color: #15803D;
}

.status-warning {
    background-color: #FEF3C7;
    color: #B45309;
}

.status-danger {
    background-color: #FEE2E2;
    color: #B91C1C;
}

/* Expiration / Expiry styling */
.info-badge {
    background-color: #F1F5F9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
}

    .info-badge.urgent {
        background-color: #FEF2F2;
        color: #DC2626;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Secondary Rewards Typography */
.text-neutral-reward {
    color: #0F172A !important;
    font-weight: 800 !important;
}

.pts-suffix {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94A3B8;
    margin-left: 4px;
    text-transform: uppercase;
}
