﻿/* ============================================
   ROOT VARIABLES — 70% Mint · 25% Teal · 5% White
   ============================================ */
:root {
    /* Mint Scale — DOMINANT (70%) */
    --mint-50: #E8F8F0;
    --mint-100: #D1F0E1;
    --mint-200: #A3E1C3;
    --mint-300: #75D2A5;
    --mint-400: #47C387;
    --mint-500: #2AA86E;
    --mint-600: #228A5A;
    --mint-700: #1A6C46;
    --mint-800: #124E32;
    --mint-900: #0A301E;
    /* Teal Scale — ACCENT (25%) */
    --teal-50: #E6F7F5;
    --teal-100: #CCEFEB;
    --teal-200: #99DFD7;
    --teal-300: #66CFC3;
    --teal-400: #33BFAF;
    --teal-500: #14A89A;
    --teal-600: #108B80;
    --teal-700: #0C6E66;
    --teal-800: #08514C;
    --teal-900: #043432;
    /* Coral Accent — Danger / Delete */
    --coral-400: #F87171;
    --coral-500: #EF4444;
    --coral-600: #DC2626;
    /* Neutral Scale */
    --slate-50: #F1F5F9;
    --slate-100: #E2E8F0;
    --slate-200: #CBD5E1;
    --slate-300: #94A3B8;
    --slate-400: #64748B;
    --slate-500: #475569;
    --slate-600: #334155;
    --slate-700: #1E293B;
    --slate-800: #0F172A;
    --slate-900: #020617;
    /* Semantic Colors — Mint-First Philosophy */
    --bg-body: var(--mint-50);
    --bg-surface: var(--mint-100);
    --bg-card: #FFFFFF;
    --bg-nav: var(--mint-500);
    --bg-nav-glass: rgba(10, 48, 30, 0.96);
    --bg-hover: var(--mint-100);
    --bg-active: var(--mint-200);
    --text-primary: var(--slate-800);
    --text-secondary: var(--slate-600);
    --text-muted: var(--slate-400);
    --text-inverse: #FFFFFF;
    --text-accent: var(--mint-400);
    --border-subtle: rgba(42, 168, 110, 0.10);
    --border-medium: rgba(42, 168, 110, 0.18);
    --border-strong: rgba(42, 168, 110, 0.30);
    --accent-primary: var(--mint-500);
    --accent-primary-dark: var(--mint-700);
    --accent-primary-light: var(--mint-300);
    --accent-secondary: var(--teal-500);
    --accent-teal: var(--teal-400);
    --accent-teal-dark: var(--teal-600);
    --accent-mint: var(--mint-500);
    --accent-coral: var(--coral-500);
    /* Shadows — Mint-tinted */
    --shadow-sm: 0 1px 2px rgba(10, 48, 30, 0.07);
    --shadow-md: 0 4px 12px rgba(10, 48, 30, 0.09);
    --shadow-lg: 0 8px 24px rgba(10, 48, 30, 0.11);
    --shadow-xl: 0 16px 48px rgba(10, 48, 30, 0.14);
    --shadow-glow: 0 0 20px rgba(42, 168, 110, 0.18);
    --shadow-nav: 0 4px 20px rgba(2, 6, 23, 0.30);
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    /* Layout */
    --nav-height: 64px;
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background: var(--bg-body);
    min-height: 100vh;
    line-height: 1.5;
    font-size: 15px;
    overflow-x: hidden;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

    a:hover {
        color: var(--accent-primary-dark);
    }

::selection {
    background: var(--mint-200);
    color: var(--mint-900);
}

/* Scrollbar — Mint */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--mint-50);
}

::-webkit-scrollbar-thumb {
    background: var(--mint-300);
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--mint-500);
    }

/* ============================================
   APP LAYOUT
   ============================================ */
.app-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: calc(var(--nav-height) + 24px) 24px 24px;
    gap: 20px;
    min-width: 0;
}

/* ============================================
   TOP NAVIGATION — Dark Mint
   ============================================ */
.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-nav);
    box-shadow: var(--shadow-nav);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--mint-700);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--teal-400); /* TEAL ACCENT — border pop */
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-inverse);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav-logout-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

    .nav-logout-btn:hover {
        background: rgba(231,76,60,0.9);
        color: white;
        transform: rotate(-15deg);
    }
/* ============================================
   MEGA MENU TRIGGERS
   ============================================ */
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-mega-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    height: 100%;
}

.nav-mega-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-mega-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--mint-200);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    background: transparent;
    white-space: nowrap;
    height: 40px;
    position: relative;
}

    .nav-mega-trigger:hover {
        color: #FFFFFF;
        background: rgba(255,255,255,0.08);
        border-color: rgba(255,255,255,0.06);
    }

.nav-mega-item.active .nav-mega-trigger {
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(42, 168, 110, 0.25), rgba(71, 195, 135, 0.15));
    border-color: rgba(42, 168, 110, 0.30);
    box-shadow: 0 0 12px rgba(42, 168, 110, 0.15);
}

    .nav-mega-item.active .nav-mega-trigger::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 3px;
        background: var(--teal-400); /* TEAL ACCENT — active indicator */
        border-radius: 3px 3px 0 0;
    }

.nav-mega-trigger i.nav-chevron {
    font-size: 0.6rem;
    color: var(--teal-400); /* TEAL ACCENT — chevron */
    transition: transform var(--transition-base);
}

.nav-mega-item.active .nav-mega-trigger i.nav-chevron {
    transform: rotate(180deg);
}

/* ============================================
   MEGA MENU PANEL — Dark Premium Mint Theme
   ============================================ */
.mega-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 680px;
    max-width: 960px;
    background: linear-gradient(180deg, var(--mint-600) 0%, var(--mint-600) 40%, var(--mint-800) 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.05);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    overflow: hidden;
    border: 1px solid rgba(42, 168, 110, 0.15);
}

    .mega-menu-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--mint-400), var(--teal-300), var(--mint-400));
        background-size: 200% 100%;
        animation: shimmerBar 3s ease infinite;
    }

.nav-mega-item.active .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Panel Header — Premium Glass Header */
.mega-menu-header {
    background: linear-gradient(180deg, var(--mint-400) 0%, var(--mint-500) 100%);
    padding: 22px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

    .mega-menu-header::after {
        content: '';
        position: absolute;
        top: -40%;
        right: -10%;
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(42, 168, 110, 0.10) 0%, transparent 70%);
        border-radius: 50%;
    }

.mega-menu-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

    .mega-menu-title i {
        color: #FFFFFF;
        font-size: 1.3rem;
        filter: drop-shadow(0 2px 8px rgba(42, 168, 110, 0.40));
    }

.mega-menu-desc {
    font-size: 0.82rem;
    color: #FFFFFF;
    padding-left: 38px;
    position: relative;
    z-index: 1;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Columns Grid — Dark Mint Layout */
.mega-menu-columns,
.mega-sub-columns {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 24px;
    gap: 24px;
    align-items: flex-start;
}

    .mega-menu-columns::-webkit-scrollbar {
        width: 6px;
    }

    .mega-menu-columns::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.02);
        border-radius: 3px;
    }

    .mega-menu-columns::-webkit-scrollbar-thumb {
        background: var(--mint-500);
        border-radius: 3px;
    }

.mega-menu-column {
    flex: 0 0 var(--column-width);
    min-width: 220px;
    max-width: var(--column-width);
}

    .mega-menu-column + .mega-menu-column::before {
        content: '';
        position: absolute;
        left: 0;
        top: 16px;
        bottom: 16px;
        width: 1px;
        background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08), rgba(255,255,255,0.12), rgba(255,255,255,0.08), transparent);
    }

.mega-menu-columns {
    max-height: 75vh;
    overflow-y: auto;
}

.mega-sub-columns {
    padding: 12px 0 0 0;
    gap: 16px;
}

.mega-menu-column {
    flex: 0 0 var(--column-width);
    min-width: 220px;
    max-width: var(--column-width);
}

.mega-sub-columns .mega-menu-column {
    flex: 0 0 240px;
    min-width: 180px;
    max-width: 260px;
}

.mega-column-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
/* Column Header */
.mega-column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 14px 0;
    margin-bottom: 14px;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.mega-column-dot {
    display: none;
}

.mega-column-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #FFFFFF;
}

/* Column Items — White Text, Dark Mint Hover */
.mega-column-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-column-item {
    position: relative;
}

.mega-column-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    background: transparent;
    border: 1px solid transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    align-items: flex-start;
}

    .mega-column-link:hover {
        background: rgba(255,255,255,0.06);
        color: #FFFFFF;
        border-color: rgba(255,255,255,0.06);
        padding-left: 18px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .mega-column-link.disabled {
        opacity: 0.5;
        cursor: default;
        pointer-events: none;
    }

.mega-item-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-300); /* TEAL ACCENT — icon color on mint */
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.04);
}

.mega-column-link:hover .mega-item-icon {
    background: var(--teal-500); /* TEAL ACCENT — icon bg on hover */
    color: #FFFFFF;
    border-color: var(--teal-400);
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(20, 168, 154, 0.35);
}

.mega-item-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    white-space: normal ;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex: 1;
    min-width: 0;
}

.mega-item-badge {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    background: var(--teal-600); /* TEAL ACCENT — badge */
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.mega-item-arrow {
    color: var(--teal-400); /* TEAL ACCENT — arrow */
    font-size: 0.6rem;
    flex-shrink: 0;
    transition: all 200ms ease;
}

.mega-column-link:hover .mega-item-arrow {
    transform: translateX(3px);
    color: var(--mint-300);
}

/* Active State — Teal Highlight on Mint */
.mega-column-item.active > .mega-column-link {
    background: rgba(42, 168, 110, 0.15);
    color: #FFFFFF;
    font-weight: 700;
    border-color: rgba(42, 168, 110, 0.20);
    box-shadow: inset 3px 0 0 var(--teal-400); /* TEAL ACCENT — active indicator */
}

    .mega-column-item.active > .mega-column-link .mega-item-icon {
        background: var(--teal-500); /* TEAL ACCENT — active icon */
        color: #FFFFFF;
        border-color: var(--teal-400);
        box-shadow: 0 4px 14px rgba(20, 168, 154, 0.35);
    }

.mega-column-item.active > .mega-item-badge {
    background: var(--mint-500);
    color: var(--mint-900);
    border-color: var(--mint-400);
}
.mega-column-item.expandable > .mega-column-link {
    cursor: pointer;
}

/* Sub-list (grandchildren) */
.mega-sub-panel {
    margin: 4px -4px 0 -4px;
    padding: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease, border-color 0.3s ease;
}

    /* Collapsed — completely hidden */
    .mega-sub-panel.collapsed {
        max-height: 0 !important;
        opacity: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-color: transparent !important;
        pointer-events: none;
    }

    /* Expanded — visible */
    .mega-sub-panel.expanded {
        max-height: 2000px !important;
        opacity: 1 !important;
        padding: 12px 8px !important;
        margin-top: 4px !important;
        margin-bottom: 4px !important;
        border-color: rgba(255,255,255,0.08) !important;
        pointer-events: auto;
    }

    /* Nested items inside sub-panel */
    .mega-sub-panel .mega-column-link {
        padding: 7px 10px;
        font-size: 0.82rem;
    }

    .mega-sub-panel .mega-item-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .mega-sub-panel .mega-item-text {
        font-size: 0.82rem;
    }

    /* Deeper nesting */
    .mega-sub-panel .mega-sub-panel {
        background: rgba(0,0,0,0.08);
        border-color: rgba(255,255,255,0.04);
        margin: 3px -2px 0 -2px;
    }

        .mega-sub-panel .mega-sub-panel.expanded {
            padding: 8px 6px !important;
        }

        .mega-sub-panel .mega-sub-panel .mega-menu-column {
            flex: 0 0 200px;
            min-width: 160px;
            max-width: 220px;
        }
/* ============================================
   NAV ACTIONS
   ============================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all var(--transition-fast);
}

    .user-trigger:hover {
        background: rgba(255,255,255,0.12);
        border-color: rgba(255,255,255,0.25);
    }

.user-avatar-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mint-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-inverse);
    flex-shrink: 0;
    border: 2px solid var(--teal-400); /* TEAL ACCENT — avatar ring */
}

.user-name-nav {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-inverse);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    font-size: 0.6rem;
    color: var(--teal-400); /* TEAL ACCENT — chevron */
    transition: transform var(--transition-base);
}

.user-dropdown.active .user-chevron {
    transform: rotate(180deg);
}

.user-info-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Dropdown Menu — Mint Rich + White Clean */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 400px;
    background: linear-gradient(165deg, #FFFFFF 0%, var(--mint-50) 60%, var(--teal-50) 100%);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 64px rgba(10, 48, 30, 0.18), 0 8px 24px rgba(10, 48, 30, 0.10), 0 0 0 1px rgba(42, 168, 110, 0.12);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1002;
    overflow: hidden;
}

    .user-dropdown-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--mint-500), var(--teal-400));
    }

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, var(--mint-700), var(--mint-600));
    margin: 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

    .user-dropdown-header::after {
        content: '';
        position: absolute;
        top: -30px;
        right: -30px;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
        border-radius: 50%;
    }

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mint-400), var(--teal-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #FFFFFF;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.user-dropdown-name {
    font-weight: 700;
    font-size: 0.92rem;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-role {
    font-size: 0.74rem;
    color: var(--mint-200);
    margin-top: 3px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.user-dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mint-200), transparent);
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--mint-800);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
}

    .user-dropdown-item:hover {
        background: linear-gradient(135deg, rgba(42, 168, 110, 0.08), rgba(71, 195, 135, 0.06));
        color: var(--mint-700);
        padding-left: 26px;
    }

    .user-dropdown-item i {
        width: 20px;
        text-align: center;
        color: var(--teal-500); /* TEAL ACCENT — menu icon */
        font-size: 0.88rem;
    }

.logout-item:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.03));
    color: var(--coral-600);
}

    .logout-item:hover i {
        color: var(--coral-500);
    }

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: var(--text-inverse);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

    .mobile-menu-toggle:hover {
        background: rgba(255,255,255,0.15);
    }

/* ============================================
   PAGE HEADER — Mint Gradient
   ============================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 28px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--mint-50) 50%, var(--teal-50) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--border-subtle);
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(to bottom, var(--mint-500), var(--teal-400));
        border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    }

    .page-header::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 100%;
        background: radial-gradient(ellipse at right center, rgba(42, 168, 110, 0.06) 0%, transparent 70%);
        pointer-events: none;
    }

.page-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

    .page-title .highlight {
        color: var(--accent-primary);
    }

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

    .breadcrumb-nav a {
        color: var(--accent-primary);
        display: flex;
        align-items: center;
        gap: 5px;
        font-weight: 600;
        padding: 3px 6px;
        border-radius: var(--radius-sm);
        transition: all var(--transition-fast);
    }

        .breadcrumb-nav a:hover {
            color: var(--mint-700);
            background: var(--bg-hover);
        }

    .breadcrumb-nav .separator {
        color: var(--teal-400); /* TEAL ACCENT — separator */
        font-size: 0.6rem;
    }

    .breadcrumb-nav .current {
        color: var(--text-secondary);
        font-weight: 700;
        padding: 3px 8px;
        background: var(--bg-surface);
        border-radius: var(--radius-sm);
    }

/* ============================================
   CONTENT AREA — Mint Accented
   ============================================ */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.content-card {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--mint-50) 100%);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md), 0 0 0 1px var(--border-subtle);
    min-height: 400px;
    position: relative;
}

    .content-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--mint-500), var(--teal-400), var(--mint-400));
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

.content-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 10px;
}

.content-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .content-card-title i {
        color: var(--accent-primary);
        font-size: 1rem;
    }

/* ============================================
   FOOTER — Mint Gradient
   ============================================ */
.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--mint-800) 0%, var(--mint-700) 100%);
    border-radius: var(--radius-xl);
    color: var(--mint-200);
    font-size: 0.8rem;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.05);
    margin-top: auto;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

    .app-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--mint-400), var(--teal-400), var(--mint-400));
    }

    .app-footer a {
        color: var(--teal-300); /* TEAL ACCENT — footer link */
        text-decoration: none;
        transition: all var(--transition-fast);
        font-weight: 600;
    }

        .app-footer a:hover {
            color: var(--text-inverse);
            text-decoration: underline;
            text-underline-offset: 2px;
        }

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-left i {
        color: var(--teal-400); /* TEAL ACCENT — footer icon */
    }

.footer-right {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    opacity: 0.85;
}

/* ============================================
   BUTTONS — Mint Primary, Teal Accent Interactions
   ============================================ */
.btn,
button:not([class*="danger"]):not([class*="warning"]):not([class*="success"]):not([class*="ghost"]):not([class*="coral"]),
input[type="submit"]:not([class*="danger"]):not([class*="warning"]):not([class*="success"]),
input[type="button"]:not([class*="danger"]):not([class*="warning"]):not([class*="success"]),
.asp-button,
[id*="btn"]:not([id*="Delete"]):not([id*="Remove"]):not([id*="Cancel"]):not([class*="danger"]) {
    background: var(--accent-primary);
    color: var(--text-inverse);
    border: none;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(42, 168, 110, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    line-height: 1.4;
}

    .btn:hover,
    button:hover:not([class*="danger"]):not([class*="warning"]):not([class*="success"]):not([class*="ghost"]):not([class*="coral"]),
    input[type="submit"]:hover:not([class*="danger"]):not([class*="warning"]):not([class*="success"]),
    input[type="button"]:hover:not([class*="danger"]):not([class*="warning"]):not([class*="success"]),
    .asp-button:hover,
    [id*="btn"]:hover:not([id*="Delete"]):not([id*="Remove"]):not([id*="Cancel"]):not([class*="danger"]) {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(42, 168, 110, 0.35);
        background: var(--mint-600);
    }

/* Danger */
.btn-danger,
button[class*="danger"],
button[id*="Delete"],
button[id*="Remove"],
button[id*="Cancel"],
input[type="submit"][class*="danger"],
input[type="button"][class*="danger"],
[id*="Delete"],
[id*="Remove"],
[id*="Cancel"],
.asp-button-danger {
    background: var(--coral-500);
    color: var(--text-inverse);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

    .btn-danger:hover,
    button[class*="danger"]:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
        background: var(--coral-600);
    }

/* Success */
.btn-success,
button[class*="success"],
button[id*="Save"],
button[id*="Confirm"],
button[id*="Approve"],
input[type="submit"][class*="success"],
input[type="button"][class*="success"],
[id*="Save"],
[id*="Confirm"],
[id*="Approve"],
.asp-button-success {
    background: var(--mint-600);
    color: var(--text-inverse);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(34, 138, 90, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

    .btn-success:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(34, 138, 90, 0.35);
        background: var(--mint-700);
    }

/* Ghost */
.btn-ghost,
button[class*="ghost"],
button[class*="secondary"],
input[type="submit"][class*="ghost"],
input[type="button"][class*="ghost"],
.asp-button-ghost {
    background: transparent;
    border: 1.5px solid var(--border-medium);
    color: var(--mint-700);
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

    .btn-ghost:hover {
        background: var(--bg-hover);
        border-color: var(--accent-primary);
        color: var(--mint-800);
    }

/* ============================================
   MOBILE OVERLAY
   ============================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition-base);
}

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .mega-menu-panel {
        min-width: 600px;
        max-width: 95vw;
    }
}

@media (max-width: 992px) {
    .nav-mega-trigger .nav-label {
        display: none;
    }

    .nav-mega-trigger {
        padding: 8px 12px;
    }

    .brand-text {
        display: none;
    }

    .mega-menu-panel {
        min-width: 500px;
    }

    .mega-menu-column {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding-bottom: 12px;
    }

        .mega-menu-column:last-child {
            border-bottom: none;
        }

        .mega-menu-column + .mega-menu-column::before {
            display: none;
        }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 0 16px;
    }

    .app-main {
        padding: calc(var(--nav-height) + 12px) 16px 16px;
        gap: 12px;
    }

    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 16px;
    }

    .page-title {
        font-size: 1.1rem;
    }

    .content-card {
        padding: 16px;
        min-height: 250px;
    }

    .app-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 14px 16px;
    }

    body.mobile-nav-open .main-nav {
        display: flex;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, var(--mint-900) 0%, var(--mint-800) 100%);
        flex-direction: column;
        justify-content: flex-start;
        padding: 16px;
        overflow-y: auto;
        z-index: 1000;
    }

    body.mobile-nav-open .nav-mega-list {
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 0;
    }

    body.mobile-nav-open .nav-mega-item {
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    body.mobile-nav-open .nav-mega-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 14px 18px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        color: var(--mint-200);
    }

        body.mobile-nav-open .nav-mega-trigger .nav-label {
            display: block;
        }

    body.mobile-nav-open .mega-menu-panel {
        position: static;
        transform: none;
        min-width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 8px 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
        background: rgba(0,0,0,0.15);
    }

        body.mobile-nav-open .mega-menu-panel::before {
            display: none;
        }

    body.mobile-nav-open .nav-mega-item.active .mega-menu-panel {
        display: block;
    }

    body.mobile-nav-open .mega-menu-header {
        background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
        padding: 14px 16px;
    }

    body.mobile-nav-open .mega-menu-title {
        color: #FFFFFF;
    }

    body.mobile-nav-open .mega-menu-desc {
        color: var(--mint-300);
    }

    body.mobile-nav-open .mega-menu-columns {
        grid-template-columns: 1fr;
        padding: 12px 8px;
        background: transparent;
    }

    body.mobile-nav-open .mega-menu-column {
        border: none;
        padding: 0;
    }

        body.mobile-nav-open .mega-menu-column + .mega-menu-column::before {
            display: none;
        }

    body.mobile-nav-open .mega-column-header {
        border-bottom-color: rgba(255,255,255,0.08);
    }

    body.mobile-nav-open .mega-column-label {
        color: var(--teal-300); /* TEAL ACCENT — mobile column label */
    }

    body.mobile-nav-open .mega-column-link {
        color: rgba(255,255,255,0.8);
    }

        body.mobile-nav-open .mega-column-link:hover {
            background: rgba(255,255,255,0.06);
            color: #FFFFFF;
        }

    body.mobile-nav-open .mega-item-icon {
        background: rgba(255,255,255,0.06);
        color: var(--teal-300);
        border-color: rgba(255,255,255,0.04);
    }

    body.mobile-nav-open .mega-column-link:hover .mega-item-icon {
        background: var(--teal-500);
        color: #FFFFFF;
    }
}

@media (max-width: 480px) {
    .user-name-nav {
        display: none;
    }

    .nav-brand {
        gap: 8px;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
    }

    .app-main {
        padding: calc(var(--nav-height) + 8px) 12px 12px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--teal-400); /* TEAL ACCENT — focus ring */
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   GRIDVIEW — Mint Headers
   ============================================ */
.grid-view,
table[id*="GridView"],
table[id*="gv"],
table[id*="grd"],
table[id*="grid"],
.GridView {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border:2px solid var(--coral-400);
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle);
    background: var(--bg-card);
    font-size: 0.82rem;
}

    .grid-view th,
    table[id*="GridView"] th,
    table[id*="gv"] th,
    table[id*="grd"] th,
    table[id*="grid"] th,
    .GridView th {
        background: var(--mint-700);
        color: var(--text-inverse);
        padding: 11px 14px;
        font-weight: 700;
        font-size: 0.76rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        text-align: left;
        border: none;
        white-space: nowrap;
    }

        .grid-view th:first-child {
            border-radius: var(--radius-lg) 0 0 0;
        }

        .grid-view th:last-child {
            border-radius: 0 var(--radius-lg) 0 0;
        }

    .grid-view td,
    table[id*="GridView"] td,
    table[id*="gv"] td,
    table[id*="grd"] td,
    table[id*="grid"] td,
    .GridView td {
        padding: 10px 14px;
        border-bottom: 1px solid var(--border-subtle);
        color: var(--text-secondary);
        font-weight: 500;
    }

    .grid-view tr:hover td,
    table[id*="GridView"] tr:hover td,
    table[id*="gv"] tr:hover td,
    .GridView tr:hover td {
        background: var(--bg-hover);
        color: var(--mint-700);
    }

    .grid-view tr:last-child td:first-child {
        border-radius: 0 0 0 var(--radius-lg);
    }

    .grid-view tr:last-child td:last-child {
        border-radius: 0 0 var(--radius-lg) 0;
    }

    .grid-view .pager,
    table[id*="GridView"] .pager,
    .GridView .pager {
        background: var(--bg-surface);
        padding: 10px 14px;
    }

        .grid-view .pager a,
        table[id*="GridView"] .pager a {
            color: var(--accent-primary);
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            font-weight: 600;
            transition: all var(--transition-fast);
        }

            .grid-view .pager a:hover,
            table[id*="GridView"] .pager a:hover {
                background: var(--accent-primary);
                color: var(--text-inverse);
            }

        .grid-view .pager span,
        table[id*="GridView"] .pager span {
            padding: 4px 10px;
            background: var(--accent-primary);
            color: var(--text-inverse);
            border-radius: var(--radius-sm);
            font-weight: 700;
        }

/* ============================================
   FORM CONTROLS — Mint Base, Teal Focus Accent
   ============================================ */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[id*="TextBox"],
input[id*="txt"],
input.asp-textbox,
.form-input {
    padding: 9px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    border:1px black solid;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-family: inherit;
    width: 100%;
    transition: all var(--transition-base);
    line-height: 1.4;
}

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    input[id*="TextBox"]:focus,
    input[id*="txt"]:focus,
    input.asp-textbox:focus,
    .form-input:focus {
        outline: none;
        border-color: var(--mint-400);
        box-shadow: 0 0 0 3px rgba(42, 168, 110, 0.15), 0 1px 3px rgba(42, 168, 110, 0.08);
    }

    input[type="text"]:hover,
    input[type="password"]:hover,
    input[id*="TextBox"]:hover,
    input.asp-textbox:hover,
    .form-input:hover {
        border-color: var(--mint-300);
    }

    input[type="text"]::placeholder,
    input[type="password"]::placeholder,
    input[id*="TextBox"]::placeholder,
    input.asp-textbox::placeholder,
    .form-input::placeholder {
        color: var(--slate-300);
        font-style: italic;
    }

    input[type="text"]:disabled,
    input[type="password"]:disabled,
    input[id*="TextBox"]:disabled,
    input.asp-textbox:disabled,
    .form-input:disabled {
        background: var(--slate-50);
        color: var(--slate-400);
        cursor: not-allowed;
        border-color: var(--slate-200);
    }

/* DropDownList / Select */
select,
select[id*="DropDownList"],
select[id*="ddl"],
select.asp-dropdown,
.form-select {
    padding: 9px 5px 9px 5px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232AA86E' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--text-primary);
    font-size: 0.84rem;
    font-family: inherit;
    width: 100%;
    height: 40px;
    transition: all var(--transition-base);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    line-height: 1.4;
}

    select:focus,
    select[id*="DropDownList"]:focus,
    select[id*="ddl"]:focus,
    select.asp-dropdown:focus,
    .form-select:focus {
        outline: none;
        border-color: var(--mint-400);
        box-shadow: 0 0 0 3px rgba(42, 168, 110, 0.15), 0 1px 3px rgba(42, 168, 110, 0.08);
    }

    select:hover,
    select[id*="DropDownList"]:hover,
    select.asp-dropdown:hover,
    .form-select:hover {
        border-color: var(--mint-300);
    }

    select:disabled,
    select.asp-dropdown:disabled,
    .form-select:disabled {
        background-color: var(--slate-50);
        color: var(--slate-400);
        cursor: not-allowed;
    }

/* CheckBox */
input[type="checkbox"],
input[id*="CheckBox"],
input[id*="chk"],
input.asp-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    border-radius: 4px;
    cursor: pointer;
}

    input[type="checkbox"]:hover,
    input[id*="CheckBox"]:hover,
    input.asp-checkbox:hover {
        box-shadow: 0 0 0 3px var(--mint-100);
    }

/* RadioButton */
input[type="radio"],
input[id*="RadioButton"],
input[id*="rdo"],
input.asp-radiobutton {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
    border:1px solid black;
}

    input[type="radio"]:hover,
    input[id*="RadioButton"]:hover,
    input.asp-radiobutton:hover {
        box-shadow: 0 0 0 3px var(--mint-100);
    }

/* TextArea */
textarea,
textarea[id*="TextBox"],
textarea[id*="txt"],
textarea.asp-textarea,
.form-textarea {
    padding: 10px 10px;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.84rem;
    font-family: inherit;
    width: 100%;
    min-height: 100px;
    resize: vertical;
    transition: all var(--transition-base);
    line-height: 1.5;
}

    textarea:focus,
    textarea[id*="TextBox"]:focus,
    textarea[id*="txt"]:focus,
    textarea.asp-textarea:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--mint-400);
        box-shadow: 0 0 0 3px rgba(42, 168, 110, 0.15), 0 1px 3px rgba(42, 168, 110, 0.08);
    }

    textarea:hover,
    textarea.asp-textarea:hover,
    .form-textarea:hover {
        border-color: var(--mint-300);
    }

    textarea::placeholder,
    textarea.asp-textarea::placeholder,
    .form-textarea::placeholder {
        color: var(--slate-300);
        font-style: italic;
    }

/* ============================================
   ASP.NET PANEL / FIELDSET — Mint Accented
   ============================================ */
fieldset,
.asp-panel,
[id*="Panel"],
.panel {
    border: 1.5px solid var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 22px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #FFFFFF 0%, var(--mint-50) 100%);
    box-shadow: var(--shadow-sm);
    position: relative;
}

    fieldset::before,
    .asp-panel::before,
    [id*="Panel"]::before,
    .panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(to bottom, var(--mint-500), var(--teal-400));
        border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    }

legend,
.asp-panel-header,
.panel-header {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--mint-700);
    padding: 5px 14px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   ASP.NET DETAILSVIEW / FORMVIEW
   ============================================ */
.details-view,
.form-view,
[id*="DetailsView"],
[id*="FormView"],
.DetailsView,
.FormView {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle);
    background: var(--bg-card);
    font-size: 0.84rem;
}

    .details-view th,
    .form-view th,
    [id*="DetailsView"] th,
    [id*="FormView"] th,
    .DetailsView th,
    .FormView th {
        background: var(--bg-surface);
        color: var(--mint-700);
        padding: 11px 16px;
        font-weight: 700;
        text-align: left;
        border-bottom: 1px solid var(--border-medium);
        width: 30%;
    }

    .details-view td,
    .form-view td,
    [id*="DetailsView"] td,
    [id*="FormView"] td,
    .DetailsView td,
    .FormView td {
        padding: 11px 16px;
        border-bottom: 1px solid var(--border-subtle);
        color: var(--text-secondary);
    }

    .details-view tr:last-child th,
    .details-view tr:last-child td,
    .form-view tr:last-child th,
    .form-view tr:last-child td {
        border-bottom: none;
    }

/* ============================================
   ASP.NET TREE VIEW
   ============================================ */
.tree-view,
[id*="TreeView"],
.TreeView {
    font-size: 0.84rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 14px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

    .tree-view .node,
    [id*="TreeView"] .node,
    .TreeView .node {
        padding: 7px 10px;
        border-radius: var(--radius-sm);
        transition: all var(--transition-fast);
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .tree-view .node:hover,
        [id*="TreeView"] .node:hover,
        .TreeView .node:hover {
            background: var(--bg-hover);
            color: var(--mint-700);
        }

    .tree-view .selected,
    [id*="TreeView"] .selected,
    .TreeView .selected {
        background: var(--mint-50);
        color: var(--mint-700);
        font-weight: 700;
        border-left: 3px solid var(--accent-primary);
    }

    .tree-view .expand-collapse,
    [id*="TreeView"] .expand-collapse,
    .TreeView .expand-collapse {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--teal-400); /* TEAL ACCENT — tree toggle */
        cursor: pointer;
        border-radius: 4px;
        transition: all var(--transition-fast);
    }

        .tree-view .expand-collapse:hover,
        [id*="TreeView"] .expand-collapse:hover,
        .TreeView .expand-collapse:hover {
            background: var(--bg-hover);
            color: var(--mint-600);
        }

    .tree-view .node-icon,
    [id*="TreeView"] .node-icon,
    .TreeView .node-icon {
        color: var(--accent-primary);
        font-size: 0.9rem;
    }

/* ============================================
   ASP.NET BULLETED LIST
   ============================================ */
.bulleted-list,
[id*="BulletedList"],
.BulletedList {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .bulleted-list li,
    [id*="BulletedList"] li,
    .BulletedList li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 7px 12px;
        color: var(--text-secondary);
        font-size: 0.82rem;
        border-radius: var(--radius-sm);
        transition: all var(--transition-fast);
        font-weight: 500;
    }

        .bulleted-list li:hover,
        [id*="BulletedList"] li:hover,
        .BulletedList li:hover {
            background: var(--bg-hover);
            color: var(--mint-700);
        }

        .bulleted-list li::before,
        [id*="BulletedList"] li::before,
        .BulletedList li::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent-primary);
            flex-shrink: 0;
        }

/* ============================================
   ASP.NET HYPERLINK
   ============================================ */
a[id*="HyperLink"],
a[id*="lnk"],
a.HyperLink,
a.asp-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 4px;
    border-radius: 3px;
}

    a[id*="HyperLink"]:hover,
    a[id*="lnk"]:hover,
    a.HyperLink:hover,
    a.asp-link:hover {
        color: var(--accent-primary-dark);
        background: rgba(42, 168, 110, 0.06);
        text-decoration: none;
    }

    a[id*="HyperLink"]:visited,
    a[id*="lnk"]:visited,
    a.HyperLink:visited,
    a.asp-link:visited {
        color: var(--mint-700);
    }

/* ============================================
   ASP.NET LABEL
   ============================================ */
label[id*="Label"],
label[id*="lbl"],
.asp-label,
.form-label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--mint-700);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

span[id*="Label"],
span[id*="lbl"],
span.asp-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   ASP.NET IMAGE
   ============================================ */
img[id*="Image"],
img[id*="img"],
.asp-image {
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-subtle);
}

    img[id*="Image"]:hover,
    img[id*="img"]:hover,
    .asp-image:hover {
        transform: scale(1.02);
        box-shadow: var(--shadow-md);
    }

/* ============================================
   ALERT / TOAST STYLES
   ============================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.82rem;
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

    .alert::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }

.alert-success {
    background: linear-gradient(135deg, var(--mint-50), var(--teal-50));
    color: var(--mint-800);
    border: 1px solid var(--mint-200);
}

    .alert-success::before {
        background: var(--mint-500);
    }

.alert-warning {
    background: #FFFBEB;
    color: #92400E;
}

    .alert-warning::before {
        background: #F59E0B;
    }

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
}

    .alert-danger::before {
        background: #EF4444;
    }

.alert-info {
    background: linear-gradient(135deg, var(--teal-50), var(--mint-50));
    color: var(--teal-800);
    border: 1px solid var(--teal-200);
}

    .alert-info::before {
        background: var(--teal-400); /* TEAL ACCENT — info alert bar */
    }

.alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 700;
    margin-bottom: 2px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-teal {
    color: var(--accent-secondary) !important;
}

.text-coral {
    color: var(--coral-500) !important;
}

.text-mint {
    color: var(--mint-500) !important;
}

.text-slate {
    color: var(--slate-500) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-teal {
    background: var(--teal-50) !important;
}

.bg-mint {
    background: var(--mint-50) !important;
}

.bg-coral {
    background: #FEF2F2 !important;
}

.bg-slate {
    background: var(--slate-50) !important;
}

.bg-white {
    background: var(--bg-card) !important;
}

.border-teal {
    border-color: var(--teal-200) !important;
}

.border-mint {
    border-color: var(--mint-200) !important;
}

.border-coral {
    border-color: #FECACA !important;
}

.border-slate {
    border-color: var(--slate-200) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-teal {
    box-shadow: 0 0 20px rgba(20, 168, 154, 0.20) !important;
}

.shadow-mint {
    box-shadow: 0 0 20px rgba(42, 168, 110, 0.20) !important;
}

.shadow-coral {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.20) !important;
}

.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

.rounded-md {
    border-radius: var(--radius-md) !important;
}

.rounded-lg {
    border-radius: var(--radius-lg) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.text-sm {
    font-size: 0.82rem !important;
}

.text-xs {
    font-size: 0.72rem !important;
}

.text-lg {
    font-size: 1rem !important;
}

.text-xl {
    font-size: 1.15rem !important;
}

/* ============================================
   FORM LAYOUT HELPERS
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .form-row .form-group {
        flex: 1;
        min-width: 200px;
        margin-bottom: 0;
    }

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.form-actions-right {
    justify-content: flex-end;
}

.form-actions-center {
    justify-content: center;
}

.form-actions-between {
    justify-content: space-between;
}

/* ============================================
   CARD LAYOUT HELPERS
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.info-card {
    background: linear-gradient(160deg, #FFFFFF 0%, var(--mint-50) 60%, var(--teal-50) 100%);
    border-radius: var(--radius-lg);
    padding: 18px;
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

    .info-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--mint-500), var(--teal-400));
    }

    .info-card:hover {
        box-shadow: var(--shadow-lg), 0 0 20px rgba(42, 168, 110, 0.10);
        transform: translateY(-3px);
        border-color: var(--mint-300);
    }

    .info-card .icon {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-md);
        background: linear-gradient(135deg, var(--mint-500), var(--mint-600));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #FFFFFF;
        font-size: 1.1rem;
        margin-bottom: 12px;
        box-shadow: 0 4px 12px rgba(42, 168, 110, 0.25);
    }

    .info-card .title {
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--text-primary);
        margin-bottom: 3px;
    }

    .info-card .description {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

/* ============================================
   DATA TABLE HELPERS
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle);
}

    .table-responsive::-webkit-scrollbar {
        height: 5px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: var(--mint-50);
        border-radius: 3px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--mint-300);
        border-radius: 3px;
    }

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--mint-50), var(--teal-50));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border-subtle);
    border-bottom: none;
    flex-wrap: wrap;
}

.table-toolbar-left,
.table-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--mint-50) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .filter-bar .form-group {
        flex: 1;
        min-width: 140px;
        margin-bottom: 0;
    }

    .filter-bar label {
        font-size: 0.72rem;
        font-weight: 700;
        color: var(--mint-700);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 4px;
        display: block;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }

/* ============================================
   CALENDAR VIEW
   ============================================ */
.calendar-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--slate-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    min-width: 600px;
}

    .calendar-view .day-header {
        background: var(--mint-700);
        color: var(--text-inverse);
        padding: 10px;
        text-align: center;
        font-weight: 700;
        font-size: 0.76rem;
        text-transform: uppercase;
    }

    .calendar-view .day-cell {
        background: var(--bg-card);
        min-height: 80px;
        padding: 8px;
        position: relative;
    }

        .calendar-view .day-cell:nth-child(14n+1),
        .calendar-view .day-cell:nth-child(14n+2),
        .calendar-view .day-cell:nth-child(14n+3),
        .calendar-view .day-cell:nth-child(14n+4),
        .calendar-view .day-cell:nth-child(14n+5),
        .calendar-view .day-cell:nth-child(14n+6),
        .calendar-view .day-cell:nth-child(14n+7) {
            background: var(--slate-50);
        }

    .calendar-view .day-number {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 4px;
    }

    .calendar-view .day-event {
        font-size: 0.68rem;
        padding: 3px 6px;
        border-radius: 4px;
        margin-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 600;
    }

        .calendar-view .day-event.visit-planned {
            background: #FFFBEB;
            color: #92400E;
            border-left: 3px solid #F59E0B;
        }

        .calendar-view .day-event.screening-progress {
            background: #FEF2F2;
            color: #991B1B;
            border-left: 3px solid #EF4444;
        }

        .calendar-view .day-event.visit-closed {
            background: var(--mint-50);
            color: var(--mint-800);
            border-left: 3px solid var(--mint-500);
        }

        .calendar-view .day-event.holiday {
            background: var(--teal-50);
            color: var(--teal-800);
            border-left: 3px solid var(--teal-400); /* TEAL ACCENT */
        }

        .calendar-view .day-event.non-visit {
            background: var(--slate-100);
            color: var(--slate-700);
            border-left: 3px solid var(--slate-400);
        }

/* ============================================
   LEGEND BAR
   ============================================ */
.legend-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 14px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

    .legend-dot.visit-planned {
        background: #F59E0B;
    }

    .legend-dot.screening-progress {
        background: #EF4444;
    }

    .legend-dot.visit-closed {
        background: var(--mint-500);
    }

    .legend-dot.holiday {
        background: var(--teal-400); /* TEAL ACCENT */
    }

    .legend-dot.non-visit {
        background: var(--slate-400);
    }

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-nav-bar,
    .app-footer,
    .mobile-overlay,
    .action-btn,
    .mobile-menu-toggle {
        display: none !important;
    }

    .app-main {
        padding: 0;
    }

    .content-card {
        box-shadow: none;
        border: 1px solid var(--slate-200);
        padding: 16px;
    }

    body {
        background: white;
    }

    .grid-view,
    table[id*="GridView"],
    table[id*="gv"],
    table[id*="grd"],
    table[id*="grid"],
    .GridView {
        box-shadow: none;
        border: 1px solid var(--slate-200);
    }

        .grid-view th,
        table[id*="GridView"] th,
        table[id*="gv"] th,
        table[id*="grd"] th,
        table[id*="grid"] th,
        .GridView th {
            background: var(--slate-100) !important;
            color: var(--slate-800) !important;
            -webkit-print-color-adjust: exact;
            print-color-adjust: exact;
        }
}

/* ============================================
   SCROLL UTILITIES
   ============================================ */
.scroll-x {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.scroll-x-wrap {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-wrap: nowrap !important;
}

/* ============================================
   HEADING STYLES
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--mint-800);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    align-content:center;
    align-items:center;
    text-align:center;
}

h1 {
    font-size: 1.7rem;
}

h2 {
    font-size: 1.4rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.05rem;
}

h5 {
    font-size: 0.95rem;
}

h6 {
    font-size: 0.85rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes shimmerBar {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeSlideIn 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
