/* css/mobile_premium.css - RepairPro Premium Mobile Design System */

:root {
    /* Main Brand Identity (Crimson Energy) */
    --brand-crimson: #991B1B;
    --brand-crimson-active: #B91C1C;
    --brand-crimson-dark: #7F1D1D;

    /* Primary Accent Colors */
    --accent-orange: #FB923C;
    --accent-orange-soft: #FFF7ED;
    --accent-emerald: #047857;
    --accent-emerald-soft: #ECFDF5;
    
    /* Hashtag / Status Colors (Updated for Crimson Theme) */
    --slack-blue: #0284C7;
    --slack-green: var(--accent-emerald);
    --slack-red: #DC2626;
    --slack-yellow: var(--accent-orange);

    /* UI Specific Mapping */
    --navy-900: var(--brand-crimson);
    --navy-800: var(--brand-crimson-dark);
    --navy-light: var(--white);
    
    --slate-900: #111827;
    --slate-700: #374151;
    --slate-500: #6B7280;
    --slate-400: #9CA3AF;
    
    --accent-blue: var(--slack-blue);
    --accent-green: var(--slack-green);
    --accent-orange-ui: var(--slack-yellow);
    --accent-red: var(--slack-red);
    --accent-purple: #7C3AED;
    
    --white: #FFFFFF;
    --radius-pill: 48px;
    --radius-card: 28px;
    --shadow-premium: 0 10px 25px -5px rgba(153, 27, 27, 0.1);
    
    /* Global Primary Alias */
    --primary: var(--brand-crimson);
    --primary-light: #FEF2F2;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout Containers */
.mobile-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px 100px 16px;
    min-height: 100vh;
}

@media (min-width: 1024px) {
    .mobile-container {
        padding: 40px;
        padding-top: 110px; /* Account for fixed top bar */
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Premium Header */
.premium-header {
    margin-bottom: 24px;
    padding: 20px 0;
}

.premium-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -0.5px;
    margin: 0;
}

.premium-header p {
    color: var(--slate-500);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/* Stat Card Premium */
.stat-card-premium {
    background: white;
    padding: 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-icon-mini {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    margin-bottom: 4px;
}

.stat-label-premium {
    font-size: 10px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-val-premium {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -0.5px;
}

/* Forms & Inputs */
input[type="text"], 
input[type="number"], 
input[type="email"], 
input[type="password"], 
input[type="tel"], 
select, 
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--brand-crimson);
    background: white;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    color: var(--slate-900);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(153, 27, 27, 0.1);
    border-color: var(--brand-crimson);
}

label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Badges */
.badge-premium {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-red { background: #FEF2F2; color: #DC2626; }
.badge-green { background: #F0FDF4; color: #16A34A; }
.badge-blue { background: #EFF6FF; color: #2563EB; }

/* Desktop Top Bar Standardization */
.top-bar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 64px;
    background: white;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

@media (min-width: 1024px) {
    .top-bar {
        padding-left: 300px;
    }
}

/* Base Components */
.btn {
    padding: 10px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--brand-crimson);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-crimson-active);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(153, 27, 27, 0.25);
}

.btn-outline {
    background: transparent;
    border-color: #E2E8F0;
    color: var(--slate-700);
}

.btn-outline:hover {
    background: #FFF5F5;
    border-color: var(--brand-crimson);
    color: var(--brand-crimson);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 1rem;
    border-radius: 16px;
}

.w-full {
    width: 100%;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--navy-light);
    font-family: 'Inter', sans-serif;
    color: var(--slate-700);
    padding-bottom: 80px;
}

/* Layout Containers */
.mobile-container {
    max-width: 100%;
    margin: 0;
    padding: 24px 24px 40px 24px;
}

@media (min-width: 1024px) {
    .mobile-container {
        padding: 40px;
    }
}

/* Headers & Banners */
.premium-header {
    background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-radius: 0 0 40px 40px;
    padding: 40px 24px 30px 24px;
    margin: -24px -24px 30px -24px;
    color: white;
    box-shadow: 0 15px 30px rgba(153, 27, 27, 0.2);
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .premium-header {
        border-radius: var(--radius-card);
        margin: 0 0 32px 0;
        padding: 32px;
    }
}

.premium-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
}

.premium-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.premium-header a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}
.premium-header a:hover {
    opacity: 0.8;
}

@media (min-width: 1024px) {
    .premium-header a {
        color: var(--navy-900);
    }
}

/* Stat Cards (Small) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 boxes in same line */
    gap: 8px; /* Compact gap */
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .stats-grid {
        gap: 20px;
    }
}

.stat-card-premium {
    background: white;
    border-radius: 20px;
    padding: 12px 8px; /* More compact padding */
    border: 1px solid rgba(226, 232, 240, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.05);
}

.stat-card-premium:active {
    transform: scale(0.97);
}

.stat-icon-mini {
    width: 32px; /* Smaller icons for 4-column layout */
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    font-size: 0.8rem;
    color: white;
}

.stat-label-premium {
    font-size: 0.65rem;
    font-weight: 800; /* Bold label */
    color: var(--slate-400);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.stat-val-premium {
    font-size: 1.5rem;
    font-weight: 900; /* Extra bold value */
    color: var(--slate-900);
    line-height: 1.1;
}


/* Lists & Items */
.premium-list-card {
    background: white;
    border-radius: var(--radius-card);
    border: 1px solid #eef2f8;
    overflow: hidden;
}

.list-item-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F4FA;
    transition: background 0.1s;
    text-decoration: none;
    color: inherit;
}

.list-item-premium:last-child {
    border-bottom: none;
}

.list-item-premium:active {
    background: var(--navy-light);
}

.item-main {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--slate-900);
    margin-bottom: 2px;
}

.item-sub {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.item-meta {
    text-align: right;
    margin-left: 12px;
}

/* Badges */
.badge-premium {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.badge-blue {
    background: #E0F2FE;
    color: #0369A1;
}

.badge-green {
    background: var(--accent-emerald-soft);
    color: var(--accent-emerald);
}

.badge-orange {
    background: var(--accent-orange-soft);
    color: var(--brand-crimson);
}

.badge-red {
    background: #FEE2E2;
    color: var(--brand-crimson);
}

/* Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--brand-crimson);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.nav-fab {
    width: 56px;
    height: 56px;
    background: var(--accent-orange);
    color: white;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 15px rgba(251, 146, 60, 0.4);
    margin-top: -35px;
    border: 4px solid var(--brand-crimson);
    transition: 0.2s;
    text-decoration: none;
}

.nav-fab:active { transform: scale(0.9) translateY(2px); }

.nav-item-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    font-weight: 600;
    transition: 0.2s;
    width: 60px;
}

.nav-item-premium i { font-size: 1.2rem; }

.nav-item-premium.active {
    color: white;
}

@media (min-width: 1024px) {
    .mobile-bottom-nav {
        display: none !important;
    }

    /* Hide mobile nav on desktop */
    .mobile-container {
        margin-left: 0;
        padding-top: 90px;
    }

    body {
        padding-bottom: 0;
    }
}

/* Desktop Top Bar as Menu Bar */
.desktop-top-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (min-width: 1024px) {
    .desktop-top-bar {
        display: flex;
    }

    .mobile-container {
        margin-left: 0;
        padding-top: 110px;
        max-width: 1400px;
        margin: 0 auto;
    }

    body {
        background: #f8fafc;
        padding-bottom: 0;
    }

    .top-nav-links {
        display: flex;
        gap: 25px;
        margin-left: 40px;
    }

    .top-nav-link {
        text-decoration: none;
        color: #64748b;
        font-weight: 600;
        font-size: 0.9rem;
        transition: 0.2s;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 12px;
    }

    .top-nav-link:hover {
        color: var(--navy-900);
        background: var(--navy-light);
    }

    .top-nav-link.active {
        color: var(--navy-900);
        font-weight: 700;
        background: var(--navy-light);
    }

    .top-nav-link i {
        font-size: 1rem;
        opacity: 0.8;
    }
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 16px;
    z-index: 10001;
    border: 1px solid rgba(0,0,0,0.05);
    padding: 10px;
    margin-top: 10px; /* Slight gap for aesthetics */
    animation: dropdownFade 0.2s ease;
}

/* Hover bridge to prevent menu disappearing when moving mouse to it */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 12px;
    transition: 0.2s;
}

.dropdown-item:hover {
    background-color: var(--navy-light);
    color: var(--navy-900);
}

.dropdown-item i {
    width: 20px;
    font-size: 1rem;
    color: var(--accent-blue);
}

.top-nav-link i.fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 5px;
    opacity: 0.5;
}

.nav-item-premium {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.65rem;
    font-weight: 600;
    transition: 0.2s;
}

@media (min-width: 1024px) {
    .nav-item-premium {
        flex-direction: row;
        gap: 15px;
        padding: 14px 20px;
        border-radius: 16px;
        font-size: 0.95rem;
        margin-bottom: 8px;
        width: 100%;
    }

    .nav-item-premium i {
        font-size: 1.2rem;
        min-width: 24px;
    }

    .nav-item-premium.active {
        background: var(--navy-light);
        color: var(--navy-900);
    }

    .nav-section-label {
        display: block !important;
        margin: 20px 0 10px 20px;
        font-size: 0.65rem;
        font-weight: 800;
        color: var(--slate-400);
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

.nav-section-label {
    display: none;
}

/* Desktop Specific Utilities */
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--navy-light);
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--navy-900);
}

.nav-item-premium i {
    font-size: 1.3rem;
}

/* Dashboard Specific Components */
.dashboard-container {
    width: 100%;
    margin: 0;
    padding: 24px 20px 32px 20px;
}

.greeting-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.greeting h2 {
    font-size: 1.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}

.greeting p {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin-top: 4px;
    font-weight: 500;
}

.avatar-badge {
    background: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    background: linear-gradient(145deg, #FFFFFF, #F8FAFF);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy-900);
}

.sales-pill-card {
    background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 100%);
    border-radius: 0 0 40px 40px;
    padding: 28px 24px;
    margin: -24px -24px 28px -24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 18px 30px -12px rgba(26, 44, 110, 0.35);
}

@media (min-width: 1024px) {
    .sales-pill-card {
        border-radius: var(--radius-card, 28px);
        margin: 0 0 28px 0;
        padding: 24px 32px;
    }
}

.sales-left .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: rgba(255, 255, 240, 0.8);
}

.sales-left .value {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-top: 4px;
    letter-spacing: -0.5px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    backdrop-filter: blur(8px);
    border-radius: 40px;
    padding: 10px 18px;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.stat-card {
    background: white;
    border-radius: 28px;
    padding: 18px 14px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.7);
    position: relative;
    overflow: hidden;
    transition: 0.2s;
}

.stat-card:active {
    transform: scale(0.97);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 14px;
    color: white;
}

.stat-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--slate-500);
    margin-bottom: 6px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1;
    letter-spacing: -1px;
}

.stat-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--slate-400);
    margin-left: 4px;
}

.stat-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.03);
    padding: 5px 12px;
    border-radius: 40px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 24px 0 14px 0;
}

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy-900);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-actions-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
    .quick-actions-scroll {
        overflow-x: visible;
        flex-wrap: wrap;
    }

    .action-chip {
        flex: 1;
        min-width: 200px;
    }
}

.action-chip {
    background: white;
    border-radius: 48px;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #E9EEF5;
    text-decoration: none;
    flex-shrink: 0;
    transition: 0.2s;
}

.action-chip:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-premium);
}

.action-chip-icon {
    width: 40px;
    height: 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.action-chip-text {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy-900);
}

.action-chip-sub {
    font-size: 0.7rem;
    color: var(--slate-400);
}

.recent-card {
    background: white;
    border-radius: 32px;
    padding: 6px 0;
    margin-top: 10px;
    border: 1px solid #eef2f8;
}

.recent-header {
    padding: 18px 20px 8px 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #EFF3F9;
}

.job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F4FA;
}

.job-id {
    font-weight: 800;
    font-size: 0.85rem;
    background: var(--navy-light);
    padding: 2px 10px;
    border-radius: 30px;
}

.customer-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 6px;
    color: var(--slate-900);
}

.device-model {
    font-size: 0.7rem;
    color: var(--slate-400);
    margin-top: 3px;
}

/* Forms & Inputs */
.search-pill {
    background: white;
    border-radius: var(--radius-pill);
    padding: 12px 18px;
    border: 1px solid #E9EEF5;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
}

.search-pill input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-pill i {
    color: var(--slate-400);
}

.premium-input {
    width: 100%;
    padding: 14px 18px;
    background: #F8FAFC;
    border: 1px solid var(--brand-crimson);
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-900);
    transition: 0.3s;
    font-family: 'Outfit', sans-serif;
}

.premium-input:focus {
    outline: none;
    background: white;
    border-color: var(--brand-crimson);
    box-shadow: 0 0 0 4px rgba(153, 27, 27, 0.1);
}

.premium-input-sm {
    width: 100%;
    border: 1.5px solid #E9EEF5;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    background: #F8FAFF;
    transition: 0.2s;
}

.premium-input-sm:focus {
    border-color: var(--accent-blue);
    background: white;
}

select.premium-input,
select.premium-input-sm {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.premium-input {
    min-height: 100px;
    resize: none;
}

.form-card {
    background: white;
    border-radius: 28px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid #eef2f8;
}

.form-label-bold {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.input-group {
    margin-bottom: 20px;
}

.btn-update {
    background: linear-gradient(115deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 18px;
    width: 100%;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 15px 30px -10px rgba(26, 44, 110, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-update:active {
    transform: scale(0.98);
}

/* Tabs */
.segmented-tabs {
    display: flex;
    background: white;
    border-radius: 20px;
    padding: 5px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-premium);
    border: 1px solid #E9EEF5;
}

.seg-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--slate-400);
    text-decoration: none;
    transition: 0.2s;
}

.seg-tab.active {
    background: var(--navy-900);
    color: white;
}

.master-add-card {
    background: white;
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px dashed var(--accent-blue);
}

/* Details & Cards */
.detail-card {
    background: white;
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
    border: 1px solid #eef2f8;
}

.info-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.info-val {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-900);
}

.status-header {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
    color: white;
    padding: 24px;
    border-radius: 0 0 40px 40px;
    margin-top: -20px;
    margin-bottom: 30px;
}

@media (min-width: 1024px) {
    .nav-brand-desktop {
        display: block !important;
    }
}

@media (max-width: 1200px) {
    .desktop-user-name {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hide-on-desktop {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .premium-header {
        display: block !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--navy-900) !important;
        padding: 0 0 32px 0 !important;
        margin-bottom: 0 !important;
    }

    .premium-header h2 {
        font-size: 2rem;
        color: var(--navy-900);
        letter-spacing: -1px;
    }

    .premium-header p {
        color: var(--slate-500);
        font-size: 0.95rem;
    }

    .premium-header a[href*="add"] {
        display: none;
        /* Hide redundant add button in header on desktop */
    }
}

/* Mobile Drawer Styles */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 10001;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.user-info-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--navy-900);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.user-name {
    font-weight: 800;
    color: var(--navy-900);
    font-size: 0.95rem;
}

.user-role {
    font-size: 0.7rem;
    color: var(--slate-400);
    font-weight: 600;
    text-transform: uppercase;
}

.close-drawer {
    font-size: 1.2rem;
    color: var(--slate-400);
    cursor: pointer;
}

.drawer-section-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 25px 0 15px 5px;
}

.drawer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.2s;
    margin-bottom: 5px;
}

.drawer-item i {
    font-size: 1.1rem;
    width: 24px;
    color: var(--navy-900);
}

.drawer-item:active {
    background: var(--navy-light);
    color: var(--navy-900);
}

/* Responsive Overrides */
@media (max-width: 1023px) {
    /* Responsive Data Table for Mobile (Card Type) */
    .data-table thead {
        display: none;
    }
    .data-table, .data-table tbody, .data-table tr, .data-table td {
        display: block;
        width: 100%;
    }
    .data-table tr {
        margin-bottom: 16px;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border: 1px solid var(--gray-200) !important;
        background: white;
        padding: 16px;
    }
    .data-table td {
        padding: 8px 0 !important;
        border: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    .data-table td::before {
        content: attr(data-label);
        font-weight: 800;
        font-size: 0.75rem;
        color: var(--slate-400);
        text-transform: uppercase;
        margin-right: 15px;
        text-align: left;
    }
    .data-table td:last-child {
        justify-content: center;
        margin-top: 10px;
        padding-top: 16px !important;
        border-top: 1px dashed var(--gray-200) !important;
    }
    .data-table td:last-child::before {
        display: none;
    }
    
    /* Stats Grid Overlap fix */
    .stats-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        margin-right: -24px;
        padding-right: 24px;
    }
    .stats-grid::-webkit-scrollbar {
        height: 4px;
    }
    .stats-grid::-webkit-scrollbar-thumb {
        background-color: var(--gray-300);
        border-radius: 10px;
    }
    .stat-card-premium {
        min-width: 120px;
        flex: 0 0 auto;
    }
}