/* ==========================================================================
   GRANDLUXE PMS - CAKEPHP 4 DESIGN SYSTEM & STYLESHEET
   ========================================================================== */
:root {
    --bg-base: #090d16;
    --bg-surface: #111827;
    --bg-surface-elevated: #1e293b;
    --bg-glass: rgba(17, 24, 39, 0.75);
    --bg-glass-hover: rgba(30, 41, 59, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(217, 119, 6, 0.3);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --gold-primary: #d97706;
    --gold-light: #fbbf24;
    --gold-glow: rgba(217, 119, 6, 0.25);

    --status-success: #10b981;
    --status-success-bg: rgba(16, 185, 129, 0.15);
    --status-warning: #f59e0b;
    --status-warning-bg: rgba(245, 158, 11, 0.15);
    --status-danger: #ef4444;
    --status-danger-bg: rgba(239, 68, 68, 0.15);
    --status-info: #3b82f6;
    --status-info-bg: rgba(59, 130, 246, 0.15);
    --status-purple: #8b5cf6;
    --status-purple-bg: rgba(139, 92, 246, 0.15);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 10px 30px -5px rgba(217, 119, 6, 0.2);
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --sidebar-width: 280px;
}

[data-theme="light"] {
    --bg-base: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-hover: rgba(241, 245, 249, 0.9);
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(217, 119, 6, 0.4);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-fast);
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-elevated); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

.app-container { display: flex; width: 100vw; min-height: 100vh; }

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 100;
    transition: transform var(--transition-fast);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.brand-logo {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 1.4rem; font-weight: 800;
    box-shadow: var(--shadow-glow);
}

.brand-title {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem; font-weight: 700;
    letter-spacing: 0.5px; color: var(--text-main);
}
.brand-title span {
    color: var(--gold-primary); font-size: 0.75rem;
    display: block; font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 1.5px; font-weight: 600;
}

.sidebar-menu {
    padding: 20px 14px;
    flex: 1; overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px;
}

.menu-label {
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-dim); margin: 14px 10px 6px 10px;
}

.nav-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px; color: var(--text-muted);
    text-decoration: none; border-radius: var(--radius-md);
    font-size: 0.92rem; font-weight: 500;
    transition: all var(--transition-fast);
}
.nav-item i { font-size: 1.2rem; transition: transform var(--transition-fast); }
.nav-item:hover { color: var(--text-main); background-color: var(--bg-surface-elevated); }
.nav-item:hover i { transform: translateX(3px); color: var(--gold-primary); }
.nav-item.active {
    color: var(--gold-light);
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.15), transparent);
    border-left: 3px solid var(--gold-primary);
    font-weight: 600;
}
.nav-item.active i { color: var(--gold-primary); }

.nav-badge {
    margin-left: auto; background: var(--gold-primary);
    color: #000; font-size: 0.72rem; font-weight: 700;
    padding: 2px 8px; border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 16px 20px; border-top: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 12px;
    background: rgba(0,0,0,0.1);
}

.user-avatar {
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; position: relative;
}
.online-indicator {
    position: absolute; bottom: 2px; right: 2px;
    width: 10px; height: 10px; background: var(--status-success);
    border: 2px solid var(--bg-surface); border-radius: 50%;
}

.user-info { flex: 1; overflow: hidden; }
.user-name { font-size: 0.88rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.user-role { font-size: 0.75rem; color: var(--text-dim); }

/* Main Wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1; display: flex; flex-direction: column; min-width: 0;
}

.top-header {
    height: 75px; background-color: var(--bg-glass);
    backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; position: sticky; top: 0; z-index: 90;
}

.mobile-toggle { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

.search-bar { position: relative; width: 340px; }
.search-bar input {
    width: 100%; padding: 10px 16px 10px 42px;
    background: var(--bg-surface-elevated); border: 1px solid var(--border-color);
    border-radius: var(--radius-full); color: var(--text-main); font-size: 0.88rem; outline: none;
    transition: all var(--transition-fast);
}
.search-bar input:focus { border-color: var(--gold-primary); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-bar i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-dim); }
.search-shortcut { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.7rem; background: var(--bg-base); padding: 2px 6px; border-radius: 4px; color: var(--text-dim); border: 1px solid var(--border-color); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.hotel-selector {
    background: var(--bg-surface-elevated); border: 1px solid var(--border-color);
    color: var(--text-main); padding: 8px 14px; border-radius: var(--radius-md);
    font-size: 0.85rem; font-weight: 500; cursor: pointer; outline: none;
}

.icon-btn {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    background: var(--bg-surface-elevated); border: 1px solid var(--border-color);
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; transition: all var(--transition-fast);
    text-decoration: none;
}
.icon-btn:hover { color: var(--gold-light); border-color: var(--border-highlight); transform: translateY(-2px); }
.icon-btn .badge-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: var(--status-danger); border-radius: 50%; }

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), #b45309);
    color: #fff; border: none; padding: 10px 20px; border-radius: var(--radius-md);
    font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 8px;
    cursor: pointer; box-shadow: var(--shadow-glow); transition: all var(--transition-fast);
    text-decoration: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 35px -5px rgba(217, 119, 6, 0.4); filter: brightness(1.1); }

.dashboard-body { padding: 30px; display: flex; flex-direction: column; gap: 30px; }

.page-header { display: flex; align-items: center; justify-content: space-between; }
.page-header h1 { font-family: 'Cinzel', serif; font-size: 1.8rem; font-weight: 700; }
.page-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

.date-badge {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    padding: 8px 16px; border-radius: var(--radius-full);
    font-size: 0.82rem; color: var(--gold-light); font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.kpi-card {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 22px; position: relative;
    overflow: hidden; transition: all var(--transition-fast); box-shadow: var(--shadow-card);
}
.kpi-card:hover { transform: translateY(-4px); border-color: var(--border-highlight); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.kpi-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.kpi-icon.gold { background: rgba(217, 119, 6, 0.15); color: var(--gold-light); }
.kpi-icon.emerald { background: var(--status-success-bg); color: var(--status-success); }
.kpi-icon.blue { background: var(--status-info-bg); color: var(--status-info); }
.kpi-icon.purple { background: var(--status-purple-bg); color: var(--status-purple); }

.kpi-trend { font-size: 0.78rem; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-full); display: flex; align-items: center; gap: 4px; }
.kpi-trend.up { background: var(--status-success-bg); color: var(--status-success); }
.kpi-trend.down { background: var(--status-danger-bg); color: var(--status-danger); }

.kpi-value { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 4px; }
.kpi-label { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

.content-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 1200px) { .content-layout { grid-template-columns: 1fr; } }

.panel {
    background: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card);
}

.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.panel-title { font-family: 'Cinzel', serif; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.panel-title i { color: var(--gold-primary); }

.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pill-btn {
    background: var(--bg-surface-elevated); border: 1px solid var(--border-color);
    color: var(--text-muted); padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: all var(--transition-fast);
}
.pill-btn:hover, .pill-btn.active { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3); }

.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }

.room-card {
    background: var(--bg-surface-elevated); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); padding: 16px; display: flex; flex-direction: column;
    justify-content: space-between; gap: 12px; position: relative; transition: all var(--transition-fast);
}
.room-card:hover { transform: translateY(-3px); border-color: var(--border-highlight); box-shadow: var(--shadow-sm); }

.room-top { display: flex; justify-content: space-between; align-items: flex-start; }
.room-number { font-size: 1.2rem; font-weight: 800; font-family: 'Cinzel', serif; }
.room-type { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; margin-top: 2px; }

.status-badge { font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 5px; }
.status-badge.occupied { background: var(--status-danger-bg); color: var(--status-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.status-badge.vacant { background: var(--status-success-bg); color: var(--status-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-badge.cleaning { background: var(--status-warning-bg); color: var(--status-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.status-badge.maintenance { background: var(--status-purple-bg); color: var(--status-purple); border: 1px solid rgba(139, 92, 246, 0.3); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

.room-guest-info { border-top: 1px dashed var(--border-color); padding-top: 10px; display: flex; align-items: center; gap: 10px; }
.guest-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-glow); color: var(--gold-light); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.guest-details { font-size: 0.78rem; }
.guest-name { font-weight: 600; color: var(--text-main); }
.guest-stay { color: var(--text-dim); font-size: 0.7rem; }

.room-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 700; color: var(--gold-light); }
.room-action-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); width: 28px; height: 28px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.room-action-btn:hover { color: var(--text-main); background: var(--bg-surface); border-color: var(--gold-primary); }

.table-responsive { overflow-x: auto; }
.custom-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: 0.88rem; }
.custom-table th { padding: 14px 16px; color: var(--text-dim); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.8px; border-bottom: 1px solid var(--border-color); background: rgba(0,0,0,0.1); }
.custom-table td { padding: 16px; border-bottom: 1px solid var(--border-color); color: var(--text-main); vertical-align: middle; }
.custom-table tbody tr:hover { background-color: var(--bg-surface-elevated); }

.client-cell { display: flex; align-items: center; gap: 12px; }
.client-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #a855f7); color: white; font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; }
.client-name { font-weight: 600; }
.client-email { font-size: 0.75rem; color: var(--text-dim); }

.analytics-card { display: flex; flex-direction: column; gap: 20px; }
.chart-container { position: relative; height: 240px; width: 100%; }

.service-list { display: flex; flex-direction: column; gap: 14px; }
.service-item { display: flex; align-items: center; justify-content: space-between; padding: 12px; background: var(--bg-surface-elevated); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.service-info { display: flex; align-items: center; gap: 12px; }
.service-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--gold-glow); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity var(--transition-fast); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 90%; max-width: 650px; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); transform: scale(0.95); transition: transform var(--transition-bounce); }
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: 'Cinzel', serif; font-size: 1.3rem; font-weight: 700; color: var(--gold-light); }
.close-modal { background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-control { background: var(--bg-surface-elevated); border: 1px solid var(--border-color); color: var(--text-main); padding: 10px 14px; border-radius: var(--radius-md); font-size: 0.88rem; outline: none; transition: border-color var(--transition-fast); }
.form-control:focus { border-color: var(--gold-primary); }
.modal-footer { padding: 18px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 12px; background: rgba(0,0,0,0.1); }
.btn-secondary { background: var(--bg-surface-elevated); border: 1px solid var(--border-color); color: var(--text-muted); padding: 10px 20px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.88rem; cursor: pointer; text-decoration: none; }

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .mobile-toggle { display: block; }
    .search-bar { width: 200px; }
    .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CAKEPHP FLASH MESSAGES STYLING
   ========================================================================== */
.message {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.86rem;
    font-weight: 600;
    text-align: center;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.message.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}
.message.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* ==========================================================================
   SIDEBAR ACCORDION SUBMENU SYSTEM
   ========================================================================== */
.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-item-parent {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    position: relative;
}
.nav-item-parent i:first-child { font-size: 1.2rem; transition: transform var(--transition-fast); }
.nav-item-parent:hover { color: var(--text-main); background-color: var(--bg-surface-elevated); }
.nav-item-parent:hover i:first-child { color: var(--gold-primary); }
.nav-item-parent.active-group {
    color: var(--gold-light);
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.08), transparent);
}
.nav-item-parent.active-group i:first-child { color: var(--gold-primary); }

.submenu-arrow {
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dim);
}
.nav-group.open .submenu-arrow { transform: rotate(180deg); color: var(--gold-primary); }

.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    opacity: 0;
    padding-left: 0;
}
.nav-group.open .nav-submenu {
    max-height: 600px;
    opacity: 1;
}

.sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 48px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}
.sub-item::before {
    content: '';
    position: absolute;
    left: 30px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all var(--transition-fast);
}
.sub-item:hover { color: var(--text-main); background-color: rgba(255,255,255,0.03); }
.sub-item:hover::before { background: var(--gold-primary); transform: scale(1.3); }
.sub-item.active {
    color: var(--gold-light);
    font-weight: 600;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.1), transparent);
}
.sub-item.active::before { background: var(--gold-primary); box-shadow: 0 0 8px var(--gold-glow); transform: scale(1.3); }

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 14px;
}

/* Language selector in sidebar */
.sidebar-control {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 48px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
}
.sidebar-control select {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    outline: none;
    flex: 1;
}
.sidebar-control select:focus { border-color: var(--gold-primary); }

/* Theme toggle in sidebar */
.theme-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 48px;
    font-size: 0.85rem;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.theme-switch:hover { color: var(--text-main); background-color: rgba(255,255,255,0.03); }
.theme-switch-track {
    width: 36px; height: 20px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    position: relative;
    transition: all var(--transition-fast);
}
.theme-switch-thumb {
    width: 14px; height: 14px;
    background: var(--gold-primary);
    border-radius: 50%;
    position: absolute;
    top: 2px; left: 2px;
    transition: transform var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
[data-theme="light"] .theme-switch-thumb { transform: translateX(16px); }

/* Placeholder page styles */
.placeholder-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    gap: 16px;
}
.placeholder-page i {
    font-size: 4rem;
    color: var(--gold-primary);
    opacity: 0.4;
}
.placeholder-page h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--text-main);
}
.placeholder-page p {
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 400px;
}

/* Header language selector */
.lang-selector {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}
.lang-selector:focus { border-color: var(--gold-primary); }

/* ==========================================================================
   RTL SUPPORT (Arabic Language)
   ========================================================================== */
[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border-color);
}
[dir="rtl"] .main-wrapper {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}
@media (max-width: 992px) {
    [dir="rtl"] .sidebar { transform: translateX(100%); }
    [dir="rtl"] .sidebar.mobile-open { transform: translateX(0); }
    [dir="rtl"] .main-wrapper { margin-right: 0; }
}
[dir="rtl"] .nav-item-parent, [dir="rtl"] .sub-item {
    text-align: right;
}
[dir="rtl"] .submenu-arrow {
    margin-left: 0;
    margin-right: auto;
}
[dir="rtl"] .sub-item {
    padding: 9px 48px 9px 16px;
}
[dir="rtl"] .sub-item::before {
    left: auto;
    right: 30px;
}
[dir="rtl"] .sidebar-control, [dir="rtl"] .theme-switch {
    padding: 9px 48px 9px 16px;
}
[dir="rtl"] .theme-switch-thumb {
    left: auto;
    right: 2px;
}
[data-theme="light"][dir="rtl"] .theme-switch-thumb {
    transform: translateX(-16px);
}
[dir="rtl"] .search-bar input {
    padding: 10px 42px 10px 16px;
}
[dir="rtl"] .search-bar i {
    left: auto;
    right: 15px;
}
[dir="rtl"] .search-shortcut {
    right: auto;
    left: 12px;
}
[dir="rtl"] .header-actions {
    margin-left: 0;
    margin-right: auto;
}
[dir="rtl"] .nav-badge {
    margin-left: 0;
    margin-right: auto;
}
[dir="rtl"] .dashboard-body {
    text-align: right;
}
[dir="rtl"] .kpi-card {
    text-align: right;
}
[dir="rtl"] .room-card {
    text-align: right;
}
[dir="rtl"] .custom-table {
    text-align: right;
}
[dir="rtl"] .form-group {
    text-align: right;
}
[dir="rtl"] .input-icon {
    left: auto !important;
    right: 16px !important;
}
[dir="rtl"] .login-form input {
    padding: 12px 46px 12px 16px !important;
}
[dir="rtl"] .theme-toggle-top {
    right: auto !important;
    left: 24px !important;
}
