/* SKN Cars - Unified Dashboard CSS
 * Works for both Fleet Dashboard and Rental Operations Dashboard
 * @author Alan Axford
 * @version 2.0
 */

:root {
    /* St Kitts & Nevis Flag Colors */
    --primary: #009739;
    --primary-dark: #007a2e;

    /* Full --primary-NNN tonal scale — several pages reference these
       suffixed forms expecting a proper light-to-dark scale (e.g. a
       light tint for a focus ring, a dark shade for hover text), not
       just one repeated flat colour. Built around the brand green. */
    --primary-50:  #e6f7ec;
    --primary-100: #c2ecd1;
    --primary-300: #5ccb86;
    --primary-500: #009739;  /* same as --primary */
    --primary-600: #008030;
    --primary-700: #006b29;

    --gold: #FCD116;
    --gold-dark: #e6bd0a;
    --red: #CE1126;

    /* --success-* — semantic "success" colour, distinct from brand
       --primary even though they're both green-ish, since a future
       theme change to --primary shouldn't also change what "success"
       means in the UI (e.g. a saved/confirmed state, a customer-role
       badge). */
    --success-50:  #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;

    /* Additional semantic/accent colour families — same 50/500/600
       pattern as --success-*, added as CRM's module cards and badges
       were found to reference these names with nothing behind them
       (same gap as --slate-*/--primary-NNN earlier). Each is a real,
       distinct hue rather than a duplicate of an existing one, so
       module cards using different families actually look different
       from each other. */
    --warning-50:  #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    /* --danger-* — semantic "error/destructive action" colour,
       distinct from the brand --red (St Kitts flag colour) for the
       same reason --success-* is distinct from --primary. */
    --danger-50:   #fef2f2;
    --danger-500:  #ef4444;
    --danger-600:  #dc2626;

    --amber-50:    #fffbeb;
    --amber-500:   #f59e0b;
    --amber-600:   #d97706;

    --purple-50:   #faf5ff;
    --purple-100:  #f3e8ff;
    --purple-500:  #a855f7;
    --purple-600:  #9333ea;

    --teal-50:     #f0fdfa;
    --teal-500:    #14b8a6;
    --teal-600:    #0d9488;

    --indigo-50:   #eef2ff;
    --indigo-500:  #6366f1;
    --indigo-600:  #4f46e5;

    --emerald-50:  #ecfdf5;
    --emerald-500: #10b981;
    --emerald-600: #059669;

    --orange-50:   #fff7ed;
    --orange-500:  #f97316;
    --orange-600:  #ea580c;

    --cyan-50:     #ecfeff;
    --cyan-500:    #06b6d4;
    --cyan-600:    #0891b2;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* --slate-* aliases — several pages reference --slate-NNN instead of
       --gray-NNN for the same neutral scale; these were previously
       undefined everywhere they were used (text/borders silently
       rendered as nothing/inherit). Mapped 1:1 onto the existing
       --gray-* values rather than introducing a second, separate grey
       scale that would only need reconciling again later. */
    --slate-50:  var(--gray-50);
    --slate-100: var(--gray-100);
    --slate-200: var(--gray-200);
    --slate-300: var(--gray-300);
    --slate-500: var(--gray-500);
    --slate-600: var(--gray-600);
    --slate-700: var(--gray-700);
    --slate-800: var(--gray-800);
    --slate-900: var(--gray-900);
    
    /* Shadows */
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

/* ========== HEADERS ========== */
.app-header, .dashboard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header {
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-header {
    border-bottom: 3px solid var(--gold);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h1, .app-logo h1 {
    font-size: 24px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ========== BUTTONS ========== */
.btn-primary {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    padding: 12px 24px;
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--gray-100);
}

.btn-action {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-action:hover {
    background: var(--primary-dark);
}

.btn-alert {
    padding: 8px 16px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-small {
    padding: 6px 12px;
    background: var(--gray-700);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

/* ========== GENERIC CARDS (card-1 .. card-9) ==========
   Decorative only — colour/shape carries no functional meaning.
   Use as: <div class="generic-card card-3"> ... </div>
   card-1 always matches the company's theme colour (var(--primary)),
   so it visually ties to the branded header; card-2 through card-9
   are fixed, distinct accent colours purely for visual variety. */
.generic-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gray-300);
    transition: all 0.2s;
}
.generic-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.generic-card .card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.generic-card .card-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.card-1 { border-left-color: var(--primary); }
.card-1 .card-value { color: var(--primary); }

.card-2 { border-left-color: #16a34a; }
.card-2 .card-value { color: #16a34a; }

.card-3 { border-left-color: #d97706; }
.card-3 .card-value { color: #d97706; }

.card-4 { border-left-color: #9333ea; }
.card-4 .card-value { color: #9333ea; }

.card-5 { border-left-color: #0d9488; }
.card-5 .card-value { color: #0d9488; }

.card-6 { border-left-color: #dc2626; }
.card-6 .card-value { color: #dc2626; }

.card-7 { border-left-color: #2563eb; }
.card-7 .card-value { color: #2563eb; }

.card-8 { border-left-color: #db2777; }
.card-8 .card-value { color: #db2777; }

.card-9 { border-left-color: #475569; }
.card-9 .card-value { color: #475569; }

/* ========== STAT CARDS (older .stat-card / .stat-value / .stat-label
   naming convention) ==========
   An earlier naming convention than .generic-card — found independently
   in both hr-dashboard.html and crm-dashboard.html, identical in both
   places, originally missing any colour on the box itself (only the
   number text was coloured via .stat-card.primary/.success/.warning/
   .purple .stat-value — no border/background accent). Centralising the
   fix here rather than per-page, since any other not-yet-migrated
   dashboard is likely to use the exact same pattern.
   New pages should prefer .generic-card / card-1..9 instead — this
   exists to fix pages that already use the older names, not to
   encourage starting new pages with them. */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-200);
    border-left: 4px solid var(--slate-300);
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 12px;
    color: var(--slate-500);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.stat-card.primary { border-left-color: var(--primary-600); }
.stat-card.primary .stat-value { color: var(--primary-600); }

.stat-card.success { border-left-color: var(--success-600); }
.stat-card.success .stat-value { color: var(--success-600); }

.stat-card.warning { border-left-color: var(--warning-600); }
.stat-card.warning .stat-value { color: var(--warning-600); }

.stat-card.purple { border-left-color: var(--purple-600); }
.stat-card.purple .stat-value { color: var(--purple-600); }

/* ========== MODULE CARDS & GRID ==========
   Standard "module card" pattern for dashboard home pages — a grid of
   feature areas, each with an icon, title, description, a coloured
   top accent bar, and either a 2x2 grid of quick-action buttons
   (multi-action) or the whole card itself being clickable (single
   action / "coming soon"). Originally built for hr-dashboard.html,
   extracted here so any dashboard can use it by just adding the
   matching markup — see common/components/dashboard-skeleton.html
   for a ready-to-copy template. */

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.module-card {
    position: relative;
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.2s;
}
.module-card:not(.multi-action) {
    cursor: pointer;
}
.module-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--slate-300); /* fallback accent if no colour variant class is applied */
}
.module-icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.module-content {
    display: flex;
    flex-direction: column;
}
.module-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 4px;
}
.module-description {
    font-size: 13px;
    color: var(--slate-500);
    line-height: 1.5;
}

/* Multi-action module cards — the card itself is not clickable;
   instead it contains its own grid of action buttons */
.module-card.multi-action {
    cursor: default;
}

.module-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 1px solid var(--slate-200);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate-700);
}
.action-btn:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.action-icon {
    font-size: 20px;
}
.action-label {
    font-size: 11px;
}

/* Module card colour-accent variants — card-1 through card-9 reuse
   the same colours as the .generic-card system above, so a module's
   top accent bar and a stat-card's left border draw from one
   consistent palette rather than each page inventing its own. Apply
   as e.g. <div class="module-card card-2"> alongside whatever
   semantic class (employees, candidates, etc.) the page itself uses
   for its own bookkeeping. */
.module-card.card-1::before { background: var(--primary); }
.module-card.card-2::before { background: #16a34a; }
.module-card.card-3::before { background: #d97706; }
.module-card.card-4::before { background: #9333ea; }
.module-card.card-5::before { background: #0d9488; }
.module-card.card-6::before { background: #dc2626; }
.module-card.card-7::before { background: #2563eb; }
.module-card.card-8::before { background: #db2777; }
.module-card.card-9::before { background: #475569; }

/* ========== MAIN CONTENT ========== */
.main-content, .dashboard-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-900);
}

/* ========== OPERATIONS GRID ========== */
.operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.operation-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.operation-card.alert {
    border-left: 4px solid var(--red);
}

.card-header {
    background: var(--gray-100);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-content {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

/* ========== BOOKING ITEMS ========== */
.booking-item {
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-item:hover {
    background: var(--gray-50);
    border-color: var(--primary);
}

.booking-item.overdue {
    background: #fff5f5;
    border-color: var(--red);
}

.booking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-info strong {
    color: var(--gray-900);
}

.booking-info span {
    font-size: 13px;
    color: var(--gray-700);
}

.booking-info .time {
    font-weight: 600;
    color: var(--primary);
}

.booking-info .phone {
    font-weight: 600;
}

.booking-info .overdue-time {
    color: var(--red);
    font-weight: 600;
}

/* ========== RENTALS ========== */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.rental-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.2s;
}

.rental-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.rental-header {
    background: var(--gray-100);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rental-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.rental-body {
    padding: 16px;
}

.rental-body p {
    margin-bottom: 8px;
    font-size: 14px;
}

.rental-actions {
    padding: 12px 16px;
    background: var(--gray-50);
    display: flex;
    gap: 10px;
}

/* ========== CALENDAR ========== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.calendar-day {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.day-header {
    background: var(--primary);
    color: white;
    padding: 10px;
    font-weight: 600;
    text-align: center;
}

.day-events {
    padding: 8px;
}

.calendar-event {
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 6px;
    font-size: 12px;
}

.calendar-event.pickup {
    background: #e6f7ed;
    border-left: 3px solid var(--primary);
}

.calendar-event.return {
    background: #fff4e6;
    border-left: 3px solid var(--gold);
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

.badge-alert {
    background: var(--red);
}

/* ========== MODALS ========== */
/* Fleet-dashboard pattern: .modal IS the overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* CRM/HR pattern: .modal-overlay is the overlay, .modal is the content box (forms.css).
   Override display:none so the content box shows inside the overlay. */
.modal-overlay .modal {
    display: block;
    position: relative;
    width: auto;
    height: auto;
    background: white;
}

.modal-content {
    background: white;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.close-btn {
    font-size: 32px;
    color: var(--gray-500);
    background: none;
    border: none;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.detail-box {
    background: var(--gray-50);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
}

.cost-preview {
    background: var(--gray-50);
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ========== UTILITIES ========== */
.loading, .empty, .error {
    text-align: center;
    padding: 20px;
    color: var(--gray-500);
}

.error {
    color: var(--red);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .operations-grid, .rentals-grid, .calendar-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        width: 95%;
    }
}
/* ========================================
   DASHBOARD MENU COMPONENT
   ======================================== */

.dashboard-menu-container {
    position: relative;
}

.dashboard-menu-trigger {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.dashboard-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.dashboard-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.dashboard-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dashboard-menu-header {
    padding: 12px 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--gray-800);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}

.dashboard-menu-item:hover {
    background: var(--gray-50);
    border-left-color: var(--primary);
}

.dashboard-menu-item.active {
    background: linear-gradient(90deg, rgba(0, 151, 57, 0.1), transparent);
    border-left-color: var(--primary);
}

.dashboard-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.dashboard-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dashboard-name {
    font-weight: 600;
    font-size: 14px;
}

.dashboard-desc {
    font-size: 12px;
    color: var(--gray-600);
}

.current-indicator {
    color: var(--primary);
    font-size: 16px;
    flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dashboard-menu-dropdown {
        right: -10px;
        min-width: 280px;
    }
}

/* ========================================
   USER MENU COMPONENT
   ======================================== */

.user-menu-container {
    position: relative;
}

.user-menu-trigger {
    height: 40px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
}

.user-menu-trigger:hover {
    background: rgba(255, 255, 255, 0.25);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.user-menu-header strong {
    display: block;
    font-size: 16px;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.user-email {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.user-type {
    display: inline-block;
    padding: 2px 8px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: white;
    color: var(--gray-800);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.user-menu-item:hover {
    background: var(--gray-50);
}

.user-menu-item.logout-btn {
    color: var(--red);
    border-top: 1px solid var(--gray-200);
}

.user-menu-item.logout-btn:hover {
    background: #fff5f5;
}
/* ========== MODAL FOOTER BUTTONS ========== */
/* Give modal action buttons more breathing room */
.modal-footer .btn,
.modal-actions .btn {
    padding: 10px 24px;
    font-size: 14px;
    min-width: 100px;
}

/* Ensure ghost/cancel button is clearly visible */
.modal-footer .btn.btn-ghost,
.modal-actions .btn.btn-ghost {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.modal-footer .btn.btn-ghost:hover,
.modal-actions .btn.btn-ghost:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

/* ========== CRM/HR MODAL PATTERN (forms.css) ========== */
/* .modal-overlay = dark overlay, .modal = white content box  */
/* Override dashboard.css .modal { display:none } for this pattern */
.modal-overlay .modal {
    display: block;
    position: relative;
    width: auto;
    height: auto;
    background: white;
}

/* ========== CANCEL / SECONDARY BUTTON DEFAULT ========== */
/* Applies everywhere: forms, modals, pages.
   btn-secondary is the standard Cancel/back action button. */
.btn.btn-secondary,
button.btn-secondary {
    background: white;
    color: var(--slate-700);
    border: 2px solid var(--slate-300);
    font-weight: 600;
}

.btn.btn-secondary:hover,
button.btn-secondary:hover {
    background: var(--slate-50);
    border-color: var(--slate-500);
    color: var(--slate-900);
}

/* Ghost variant — subtle, for inline/secondary actions */
.btn.btn-ghost,
button.btn-ghost {
    background: white;
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
}

.btn.btn-ghost:hover,
button.btn-ghost:hover {
    background: var(--slate-100);
    border-color: var(--slate-300);
    color: var(--slate-800);
}