/* ========================================
   HOTEL PLUS - Design System
   Navbar Horizontale (style BIONICONNECT)
   ======================================== */

:root {
    --navbar-height: 60px;

    /* Couleurs principales */
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-ultra-light: #eff6ff;
    --accent: #f59e0b;
    --accent-dark: #d97706;

    /* Gradient */
    --gradient: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
    --gradient-card: linear-gradient(135deg, rgba(29,78,216,0.06) 0%, rgba(124,58,237,0.04) 100%);

    /* Statuts */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Textes */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    /* Surfaces */
    --bg-body: #f1f5f9;
    --surface-white: #ffffff;
    --surface-50: #f8fafc;
    --surface-100: #f1f5f9;
    --border-color: #e2e8f0;

    /* Ombres */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);

    /* Rayons */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.5;
}

/* ========== NAVBAR HORIZONTALE ========== */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(255,255,255,0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1050;
    transition: box-shadow 0.3s ease;
}

.main-navbar.scrolled { box-shadow: var(--shadow-md); }

.navbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.25rem;
    gap: 0.5rem;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(29,78,216,0.35);
}

.brand-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--text-primary);
}

/* Desktop nav menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
}

/* Direct link (Dashboard) */
.nav-direct-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-direct-link:hover {
    color: var(--primary);
    background: rgba(29,78,216,0.06);
}

.nav-direct-link.active {
    color: var(--primary);
    background: rgba(29,78,216,0.1);
    font-weight: 600;
}

.nav-direct-link > i { font-size: 1rem; }

/* Dropdown navigation */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-toggle:hover {
    color: var(--primary);
    background: rgba(29,78,216,0.06);
}

.nav-dropdown-toggle.active {
    color: var(--primary);
    background: rgba(29,78,216,0.1);
    font-weight: 600;
}

.nav-dropdown-toggle > i:first-child { font-size: 1rem; }

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 450;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-link-item:hover {
    color: var(--primary);
    background: rgba(29,78,216,0.06);
}

.nav-link-item.active {
    color: var(--primary);
    background: rgba(29,78,216,0.1);
    font-weight: 600;
}

.nav-link-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    opacity: 0.7;
}

.nav-link-item.active i,
.nav-link-item:hover i { opacity: 1; }

/* User area */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem;
    background: var(--surface-50);
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.user-badge > i {
    font-size: 1.25rem;
    color: var(--primary);
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role-tag {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 500;
}

.navbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.navbar-icon-btn:hover {
    color: var(--primary);
    background: rgba(29,78,216,0.08);
}

.navbar-icon-btn.logout-btn:hover {
    color: var(--danger);
    background: rgba(239,68,68,0.08);
}

/* Mobile toggle button */
.mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-toggle:hover { background: var(--surface-100); }

/* Mobile menu panel */
.mobile-menu {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
    padding: 0.5rem;
    z-index: 1040;
}

.mobile-menu.open { display: block; }

.mobile-direct-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.mobile-direct-link:hover { background: rgba(29,78,216,0.05); color: var(--primary); }
.mobile-direct-link.active { color: var(--primary); font-weight: 600; background: rgba(29,78,216,0.08); }

.mobile-section { margin-bottom: 0.2rem; }

.mobile-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-section-toggle:hover { background: var(--surface-50); }

.mobile-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    opacity: 0.4;
}

.mobile-section.open .mobile-arrow { transform: rotate(180deg); }

.mobile-section-items { display: none; padding: 0 0 0.5rem; }
.mobile-section.open .mobile-section-items { display: block; }

.mobile-section-items a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem 0.5rem 2.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.mobile-section-items a:hover { color: var(--primary); background: rgba(29,78,216,0.05); }
.mobile-section-items a.active { color: var(--primary); background: rgba(29,78,216,0.1); font-weight: 600; }

.mobile-user-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.mobile-hotel-name {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mobile-user-actions a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: var(--surface-50);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.mobile-user-actions a:hover { color: var(--primary); border-color: var(--primary); }
.mobile-user-actions a.logout { color: var(--danger); }
.mobile-user-actions a.logout:hover { background: rgba(239,68,68,0.05); border-color: var(--danger); }

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}

.page-content {
    padding: 24px;
}

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

.page-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-header-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ========== CARDS ========== */
.card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-body { padding: 20px; }

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== STAT CARDS (KPI) ========== */
.stat-card {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.stat-card-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-meta { font-size: 12px; color: var(--text-muted); }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: white;
}

.stat-icon.bg-primary { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); box-shadow: 0 4px 15px rgba(29,78,216,0.35); }
.stat-icon.bg-success { background: linear-gradient(135deg, #059669 0%, #10b981 100%); box-shadow: 0 4px 15px rgba(16,185,129,0.35); }
.stat-icon.bg-warning { background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%); box-shadow: 0 4px 15px rgba(245,158,11,0.35); }
.stat-icon.bg-danger  { background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%); box-shadow: 0 4px 15px rgba(239,68,68,0.35); }
.stat-icon.bg-info    { background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%); box-shadow: 0 4px 15px rgba(6,182,212,0.35); }
.stat-icon.bg-purple  { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); box-shadow: 0 4px 15px rgba(124,58,237,0.35); }

/* ========== ROOM GRID ========== */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.room-card {
    border-radius: var(--radius-md);
    padding: 14px 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface-white);
    position: relative;
}

.room-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.room-card.disponible  { border-color: #10b981; background: #f0fdf4; }
.room-card.occupee     { border-color: #ef4444; background: #fef2f2; }
.room-card.nettoyage   { border-color: #f59e0b; background: #fffbeb; }
.room-card.maintenance { border-color: #94a3b8; background: #f8fafc; }
.room-card.inspection  { border-color: #06b6d4; background: #ecfeff; }

.room-card-number { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.room-card-type   { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-card-status { margin-top: 8px; }

/* ========== TABLES ========== */
.table { font-size: 13.5px; }

.table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--surface-50);
    border-bottom: 2px solid var(--border-color);
    padding: 10px 14px;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--surface-50); }

/* ========== BADGES ========== */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.2px;
}

/* ========== FORMS ========== */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    font-size: 13.5px;
    transition: var(--transition);
    background: var(--surface-white);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    outline: none;
}

.form-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ========== BUTTONS ========== */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 13.5px;
    padding: 8px 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(29,78,216,0.3);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 6px 18px rgba(29,78,216,0.4); transform: translateY(-1px); color: white; }

.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover { background: var(--primary-ultra-light); }

.btn-sm  { padding: 5px 12px; font-size: 12.5px; }
.btn-lg  { padding: 11px 22px; font-size: 15px; }

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

/* ========== ACTIVITY FEED ========== */
.activity-feed {
    list-style: none;
    position: relative;
    padding: 0;
}

.activity-feed::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.activity-feed li {
    display: flex;
    gap: 14px;
    padding: 8px 0;
    position: relative;
}

.activity-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
    position: relative;
    z-index: 1;
}

.activity-time { font-size: 11px; color: var(--text-muted); }

/* ========== OCCUPANCY BAR ========== */
.occupancy-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.occupancy-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1s ease;
}

/* ========== SEARCH BOX ========== */
.search-box { position: relative; }
.search-box input { padding-left: 38px; }
.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== STATUS DOTS ========== */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-dot.green  { background: var(--success); }
.status-dot.red    { background: var(--danger); }
.status-dot.yellow { background: var(--warning); }
.status-dot.gray   { background: var(--text-muted); }
.status-dot.blue   { background: var(--info); }

/* ========== ALERTS ========== */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13.5px;
}

/* ========== MODAL ========== */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 18px 24px;
}

.modal-title  { font-size: 16px; font-weight: 600; }
.modal-body   { padding: 24px; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 14px 24px; }

/* ========== TOAST NOTIFICATIONS ========== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast-item {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    min-width: 280px;
    animation: slideIn 0.3s ease;
}

.toast-item.success { border-color: var(--success); }
.toast-item.danger  { border-color: var(--danger); }
.toast-item.warning { border-color: var(--warning); }

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ========== CALENDAR / GANTT ========== */
.gantt-wrapper { overflow-x: auto; border-radius: var(--radius-md); }

.gantt-table {
    min-width: 900px;
    border-collapse: collapse;
}

.gantt-table th, .gantt-table td {
    border: 1px solid var(--border-color);
    padding: 0;
    height: 40px;
    font-size: 12px;
}

.gantt-table .room-label {
    padding: 8px 12px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 120px;
    background: var(--surface-50);
}

.gantt-cell { text-align: center; font-size: 11px; color: var(--text-muted); }
.gantt-cell.today { background: rgba(29,78,216,0.06); }

.gantt-bar {
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    background: linear-gradient(135deg, #1d4ed8, #7c3aed);
    margin: 4px 2px;
}

/* ========== POS INTERFACE ========== */
.pos-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    height: calc(100vh - var(--navbar-height) - 48px);
}

.pos-items { overflow-y: auto; padding-right: 4px; }

.pos-cart {
    background: var(--surface-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pos-cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-50);
}

.pos-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.pos-cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-50);
}

.pos-item-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface-white);
    text-align: center;
}

.pos-item-card:hover {
    border-color: var(--primary-light);
    background: var(--primary-ultra-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pos-item-name  { font-weight: 600; font-size: 13px; color: var(--text-primary); }
.pos-item-price { font-size: 12px; color: var(--primary); font-weight: 700; margin-top: 4px; }

/* ========== LOGIN PAGE ========== */
.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29,78,216,0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.login-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
}

.login-logo         { text-align: center; margin-bottom: 32px; }
.login-logo-icon    {
    width: 64px; height: 64px;
    background: var(--gradient);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: white;
    margin: 0 auto 14px;
    box-shadow: 0 8px 30px rgba(29,78,216,0.4);
}
.login-logo-name    { font-size: 22px; font-weight: 800; color: white; letter-spacing: -0.3px; }
.login-logo-sub     { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }

.login-card .form-control {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    color: white;
    height: 46px;
}
.login-card .form-control::placeholder { color: rgba(255,255,255,0.3); }
.login-card .form-control:focus { background: rgba(255,255,255,0.1); border-color: rgba(59,130,246,0.6); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.login-card .form-label { color: rgba(255,255,255,0.7); }
.login-card .btn-primary { width: 100%; height: 46px; font-size: 15px; font-weight: 600; }

/* ========== UTILITIES ========== */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.rounded-xl { border-radius: var(--radius-xl); }
.cursor-pointer { cursor: pointer; }
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.bg-gradient-primary   { background: var(--gradient); }
.bg-gradient-warning   { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.bg-gradient-success   { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.bg-gradient-secondary { background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%); }
.text-primary-custom   { color: var(--primary) !important; }
.text-success-custom   { color: var(--success) !important; }
.text-warning-custom   { color: var(--warning) !important; }
.text-danger-custom    { color: var(--danger) !important; }
.bg-primary-light      { background: var(--primary-ultra-light); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; margin-bottom: 1rem; display: block; }

.btn-action { padding: 0.25rem 0.5rem; font-size: 0.8rem; border-radius: 6px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
    .navbar-menu { display: none; }
    .navbar-user .user-badge:first-of-type { display: none !important; }
    .mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
    .page-content { padding: 16px; }
    .stat-value { font-size: 20px; }
    .room-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .pos-grid { grid-template-columns: 1fr; height: auto; }
}

@media (max-width: 576px) {
    .page-content { padding: 12px; }
    .navbar-user .user-badge { display: none !important; }
    .mobile-toggle { display: flex !important; }
}
