/* style.css - Premium light-themed styling for the ASURE Loyal web application */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
    --bg-base: #f5f7fa;
    --bg-card: #ffffff;
    --bg-input: #ffffff;

    --gold-primary: #BDA160;
    --gold-hover: #DABD6E;
    --gold-light: #EADAA7;

    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;

    --border-glass: rgba(27, 44, 74, 0.08);
    --border-glass-focus: #BDA160;

    --shadow-premium: 0 10px 30px rgba(27, 44, 74, 0.04);
    --shadow-glow: 0 0 10px rgba(189, 161, 96, 0.15);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-base);
    background-image: linear-gradient(180deg, #eef2f7 0%, var(--bg-base) 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: rgba(27, 44, 74, 0.1);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Containers */
.glass-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.glass-container:hover {
    border-color: rgba(189, 161, 96, 0.35);
}

/* Auth Screens Layout */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-top: 4px solid var(--gold-primary);
}

.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 15px;
}

.auth-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: #1b2c4a;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

/* Inputs and Forms */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-input);
    border: 1px solid rgba(27, 44, 74, 0.15);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.25s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-hover));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(189, 161, 96, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(189, 161, 96, 0.4);
    background: linear-gradient(135deg, var(--gold-hover), var(--gold-light));
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(27, 44, 74, 0.15);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(27, 44, 74, 0.05);
    color: #1b2c4a;
    border-color: var(--gold-primary);
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.35);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-danger {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #c53030;
}

.alert-success {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #38a169;
}

/* Dashboard Core Layout */
.app-header {
    background: #1b2c4a;
    border-bottom: 1px solid rgba(218, 189, 110, 0.25);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.app-brand {
    display: flex;
    align-items: center;
}

.app-logo {
    height: 38px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-hover);
}

.user-profile-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header .profile-name {
    color: #ffffff;
}

.profile-role {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-primary);
    background: rgba(189, 161, 96, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.main-content {
    flex-grow: 1;
    padding: 30px 40px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Dashboard Elements */
.welcome-section {
    margin-bottom: 30px;
}

.welcome-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #1b2c4a;
    margin-bottom: 5px;
}

.welcome-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 2fr 3fr;
    }

    .grid-full {
        grid-column: span 2;
    }
}

.stat-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(189, 161, 96, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.stat-label {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #1b2c4a;
    line-height: 1.1;
    margin-bottom: 15px;
}

/* Progress bar styles */
.progress-container {
    margin-top: 15px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-hover));
    border-radius: 50px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tables */
.table-card {
    padding: 30px;
}

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

.table-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b2c4a;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.premium-table th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 14px 18px;
    border-bottom: 1.5px solid #e2e8f0;
}

.premium-table td {
    padding: 14px 18px;
    font-size: 0.95rem;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-secondary);
    transition: background-color 0.2s ease;
}

.premium-table tbody tr:hover td {
    background-color: #f8fafc;
}

.premium-table tbody tr:last-child td {
    border-bottom: none;
}

/* Tags/Badges */
.badge-points {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

.points-add {
    color: #38a169;
}

.points-sub {
    color: #e53e3e;
}

/* Forms layout inside portal */
.portal-card {
    padding: 30px;
    height: 100%;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

/* VIP manifest container */
.vip-card {
    background: rgba(189, 161, 96, 0.08);
    border: 1px dashed var(--gold-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 25px;
}

.vip-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vip-badge {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-hover));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Rewards checklist */
.rewards-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.reward-item {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.reward-item:hover {
    background: rgba(189, 161, 96, 0.08);
    border-color: rgba(189, 161, 96, 0.35);
}

.reward-item input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--gold-primary);
    transform: scale(1.15);
}

.reward-info {
    display: flex;
    flex-direction: column;
}

.reward-desc {
    font-weight: 500;
    color: var(--text-primary);
}

.reward-cost {
    font-size: 0.8rem;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid var(--border-glass);
}

/* Footer layout */
.footer {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    margin-top: auto;
}

/* Tab menu */
.tab-header {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

/* Property header selector */
.header-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-select-container .form-label {
    color: rgba(255, 255, 255, 0.85);
}

.header-select-container .form-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.header-select-container .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold-primary);
}

.header-select-container .form-select option {
    background: #1b2c4a;
    color: #ffffff;
}

/* Premium points badge */
.points-badge-container {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b2c4a 0%, #0d182b 100%);
    border: 4px solid var(--gold-primary);
    border-radius: 50%;
    width: 175px;
    height: 175px;
    margin: 20px auto;
    box-shadow: 0 12px 30px rgba(27, 44, 74, 0.16), 0 0 20px rgba(189, 161, 96, 0.28);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.points-badge-container:hover {
    transform: scale(1.05);
    box-shadow: 0 14px 35px rgba(27, 44, 74, 0.22), 0 0 26px rgba(189, 161, 96, 0.45);
}

.points-badge-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold-hover);
    line-height: 1;
}

.points-badge-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* Section 7.1 Mobile Friendly Responsive Cleanup (Android & iOS Optimizations) */
html,
body {
    overflow-x: clip;
    max-width: 100%;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    gap: 20px;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.member-nav {
    display: flex;
    align-items: center;
}

.member-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 15px;
}

.mobile-logout-btn {
    display: none;
}

.desktop-logout-btn {
    display: inline-flex;
}

.direct-book-btn {
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--gold-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(189, 161, 96, 0.3);
    white-space: nowrap;
    width: auto;
}

.logout-btn {
    padding: 6px 14px;
    width: auto;
    font-size: 0.85rem;
    white-space: nowrap;
}

.promo-banner {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #d4af37 100%);
    color: #ffffff;
    padding: 15px 22px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(189, 161, 96, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.promo-content {
    font-size: 0.95rem;
    font-weight: 600;
}

.promo-btn {
    padding: 6px 16px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    width: auto;
}

.hero-direct-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(189, 161, 96, 0.35);
    width: auto;
    white-space: nowrap;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    width: 100%;
}

.member-grid .grid-full {
    grid-column: 1 / -1;
}

.stat-card.balance-card {
    align-items: center;
    text-align: center;
    justify-content: center;
    overflow: hidden;
}

.redemption-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: flex-end;
}

.redemption-submit-btn {
    padding: 11px 22px;
    white-space: nowrap;
    width: auto;
}

.stays-tab-header {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-title-btn {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.tab-title-btn.active {
    color: var(--gold-primary);
}

@media (max-width: 900px) {
    .mobile-logout-btn {
        display: inline-flex;
    }

    .desktop-logout-btn {
        display: none;
    }

    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }

    .header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .nav-profile-item,
    .nav-cta-item {
        width: 100%;
    }

    .user-profile-badge {
        width: 100%;
        justify-content: space-between;
    }

    .direct-book-btn {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .main-content {
        padding: 15px 12px;
    }

    .welcome-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .hero-direct-btn {
        width: 100%;
        text-align: center;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .welcome-subtitle {
        font-size: 0.88rem;
    }

    .promo-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }

    .promo-btn {
        width: 100%;
    }

    .dashboard-grid,
    .member-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }

    .redemption-form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .redemption-submit-btn {
        width: 100% !important;
    }

    .stat-card,
    .table-card,
    .portal-card {
        padding: 20px 16px !important;
        overflow: hidden;
    }

    .tab-title-btn {
        font-size: 0.95rem;
    }

    /* Prevent mobile browser auto-zoom by ensuring minimum 16px font size */
    .form-input,
    .form-select,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
        min-height: 44px;
    }

    .btn {
        min-height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 12px 18px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
    }

    .premium-table {
        min-width: 500px;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .modal-overlay {
        padding: 15px;
    }

    .modal-card {
        width: 95% !important;
        max-width: 100% !important;
        padding: 20px !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    .digital-card {
        padding: 18px !important;
    }

    .card-barcode {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
    }

    .points-badge-container {
        width: 140px;
        height: 140px;
        margin: 15px auto;
    }

    .points-badge-number {
        font-size: 2.8rem;
    }

    .points-badge-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .app-brand {
        display: flex;
        align-items: center;
    }

    .app-logo {
        height: 30px;
    }

    .stat-card {
        padding: 16px 12px !important;
    }
}

/* ==========================================================================
   Header View Switcher & User Avatar Dropdown Component
   ========================================================================== */
.view-switcher-container {
    display: inline-flex;
    align-items: center;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 9999px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.view-switcher-btn {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #475569;
}

.view-switcher-btn:hover {
    color: #0f172a;
}

.view-switcher-btn.active-hub {
    background: linear-gradient(135deg, #c59b27 0%, #a87e12 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(197, 155, 39, 0.35);
}

.view-switcher-btn.active-property {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

/* User Menu & Avatar Dropdown */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 2px solid var(--gold-primary);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    outline: none;
}

.user-avatar-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.3);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #ffffff;
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15), 0 0 1px rgba(15, 23, 42, 0.2);
    border: 1px solid #e2e8f0;
    z-index: 1000;
    display: none;
    overflow: hidden;
    animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-menu-dropdown.show {
    display: block;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-header {
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.user-menu-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0f172a;
    display: block;
    word-break: break-all;
}

.user-menu-role {
    font-size: 0.75rem;
    color: var(--gold-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-top: 2px;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: #334155;
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
    background: transparent;
    font-family: var(--font-body);
}

.user-menu-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.user-menu-item.danger-item {
    color: #dc2626;
    border-top: 1px solid #e2e8f0;
}

.user-menu-item.danger-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* Sortable Table Headers */
th.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 22px !important;
}

th.sortable-header:hover {
    color: var(--gold-primary);
    background-color: rgba(197, 155, 39, 0.05);
}

th.sortable-header::after {
    content: ' ⇅';
    position: absolute;
    right: 6px;
    opacity: 0.4;
    font-size: 0.8rem;
}

th.sortable-header.sort-asc::after {
    content: ' ▲';
    opacity: 1;
    color: var(--gold-primary);
}

th.sortable-header.sort-desc::after {
    content: ' ▼';
    opacity: 1;
    color: var(--gold-primary);
}

/* Material Symbols Outlined Icon Standard Styling */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
    vertical-align: middle;
}