/**
 * app.css — HotelCRM Design System
 * Premium dark sidebar + glassmorphism cards
 */

/* ── Google Fonts (Local) ─────────────────────────────────── */
@import url('../vendor/fonts/google-fonts.css');

:root {
    /* ── Typography ─────────────────────────────────────────── */
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Inter', sans-serif;

    /* ── Color Palette (HSL for premium feel) ───────────────── */
    --primary-h: 239;
    --primary-s: 84%;
    --primary-l: 67%;
    
    --primary:       hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark:  hsl(var(--primary-h), var(--primary-s), 55%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);
    
    --success:       #10b981;
    --warning:       #f59e0b;
    --danger:        #ef4444;
    --info:          #06b6d4;

    /* ── Sidebar (Premium Dark) ────────────────────────────── */
    --sidebar-bg:          #0f111a;
    --sidebar-width:       260px;
    --sidebar-hover:       rgba(255, 255, 255, 0.05);
    --sidebar-active-bg:   rgba(99, 102, 241, 0.15);
    --sidebar-border:      rgba(255, 255, 255, 0.08);
    --sidebar-text:        rgba(255, 255, 255, 0.7);
    --sidebar-text-bright: #ffffff;

    /* ── Surface & UI ──────────────────────────────────────── */
    --bg-page:    #f8fafc;
    --bg-card:    #ffffff;
    --border:     #e2e8f0;
    
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,.05);
    --shadow-lg:  0 10px 30px rgba(0,0,0,.08);
    --shadow-premium: 0 20px 50px rgba(0,0,0,.15);

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

    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    
    --topnav-h:   70px;
    --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    background: var(--bg-page);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-display { 
    font-family: var(--font-display); 
    font-weight: 700; 
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transition: transform var(--transition);
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-brand {
    display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px;
    border-bottom: 1px solid var(--sidebar-border);
}
.brand-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: grid; place-items: center; color: #fff; font-size: 20px; flex-shrink: 0;
}
.brand-name { display: block; font-size: 18px; font-weight: 800; color: var(--sidebar-text-bright); letter-spacing: -.3px; }
.brand-tagline { display: block; font-size: 10px; color: var(--sidebar-text); text-transform: uppercase; letter-spacing: .6px; }

.hotel-badge {
    background: rgba(99,102,241,.15); color: var(--primary); border: 1px solid rgba(99,102,241,.3);
    border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

.sidebar-nav { list-style: none; margin: 0; padding: 8px 12px; flex: 1; overflow-y: auto; scrollbar-width: thin; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 99px; }

.nav-section-label { font-size: 10px; font-weight: 700; color: var(--sidebar-text); text-transform: uppercase; letter-spacing: .8px; padding: 16px 8px 6px; }
.nav-item { margin: 2px 0; }
.nav-link-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm);
    color: var(--sidebar-text); text-decoration: none; font-size: 13.5px; font-weight: 500;
    transition: all var(--transition); position: relative;
}
.nav-link-item i { font-size: 16px; flex-shrink: 0; }
.nav-link-item:hover { background: var(--sidebar-hover); color: var(--sidebar-text-bright); }
.nav-item.active .nav-link-item { background: var(--sidebar-active-bg); color: var(--primary); font-weight: 600; }
.nav-item.active .nav-link-item::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--primary); border-radius: 0 3px 3px 0; }
.nav-badge { margin-left: auto; background: var(--primary); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 2px 7px; min-width: 20px; text-align: center; display: none; }
.nav-badge:not(:empty) { display: inline-block; }

.sidebar-footer { padding: 16px; border-top: 1px solid var(--sidebar-border); }
.user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.user-name { color: var(--sidebar-text-bright); font-size: 13px; font-weight: 600; }
.user-role { font-size: 10px; color: var(--sidebar-text); text-transform: uppercase; letter-spacing: .5px; }

/* ═══════════════════════════════════════════════════════════
   MAIN WRAPPER
   ═══════════════════════════════════════════════════════════ */
.main-wrapper { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; transition: margin var(--transition); }

.topnav {
    height: var(--topnav-h); background: var(--bg-card); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; padding: 0 24px; position: sticky; top: 0; z-index: 999;
    box-shadow: var(--shadow-sm); gap: 12px;
}
.page-title { font-size: 17px; font-weight: 700; margin: 0; color: var(--text-primary); }
.btn-icon { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-size: 18px; cursor: pointer; transition: all var(--transition); }
.btn-icon:hover { background: var(--bg-page); color: var(--text-primary); }

.btn-hotel-switch { background: var(--bg-page); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-primary); padding: 6px 14px; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.hotel-dropdown { min-width: 240px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }
.hotel-switch-item.active { background: var(--primary-light); color: var(--primary); }

.notif-dot { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; position: absolute; top: 4px; right: 4px; border: 2px solid #fff; display: none; }
#notif-dot:not([style*="none"]) { display: block; }

.btn-user { background: var(--bg-page); border: 1px solid var(--border); border-radius: 99px; display: flex; align-items: center; font-size: 13px; font-weight: 600; padding: 5px 12px; }
.user-avatar-sm { width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }

.page-content { flex: 1; padding: 24px; max-width: 1600px; width: 100%; }

/* ═══════════════════════════════════════════════════════════
   GLOBAL SEARCH
   ═══════════════════════════════════════════════════════════ */
.global-search {
    flex: 1;
    max-width: 400px;
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}
.search-input-wrap .form-control {
    padding-left: 42px;
    padding-right: 50px;
    height: 42px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition);
}
.search-input-wrap .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}
.search-kbd {
    position: absolute;
    right: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

/* ── Mobile Search Overlay ── */
.mobile-search-overlay {
    position: fixed;
    top: var(--topnav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    z-index: 998;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.mobile-search-overlay.active {
    max-height: 100px;
}
.mobile-search-overlay .form-control {
    height: 46px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--border);
    font-weight: 500;
}
.mobile-search-overlay .form-control:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   CRM CARD
   ═══════════════════════════════════════════════════════════ */
.crm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.crm-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.crm-card-title { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.crm-card-body { padding: 20px; }

/* ═══════════════════════════════════════════════════════════
   KPI CARDS
   ═══════════════════════════════════════════════════════════ */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.kpi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; display: flex; align-items: flex-start; gap: 16px; box-shadow: var(--shadow-sm); transition: transform var(--transition); position: relative; }
.kpi-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kpi-color, var(--primary)); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-icon { width: 48px; height: 48px; background: color-mix(in srgb, var(--kpi-color, var(--primary)) 12%, transparent); border-radius: var(--radius-sm); display: grid; place-items: center; font-size: 22px; color: var(--kpi-color, var(--primary)); flex-shrink: 0; }
.kpi-value { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--text-primary); }
.kpi-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 500; }
.kpi-bookings  { --kpi-color: #6366f1; }
.kpi-revenue   { --kpi-color: #10b981; }
.kpi-occupancy { --kpi-color: #f59e0b; }
.kpi-pending   { --kpi-color: #ef4444; }

.occupancy-bar { height: 4px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.occupancy-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #ef4444); border-radius: 99px; transition: width .8s ease; }

/* ═══════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════ */
.crm-table thead th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--text-muted); border-bottom: 2px solid var(--border); padding: 10px 16px; white-space: nowrap; background: #fafbfc; }
.crm-table tbody td { padding: 12px 16px; vertical-align: middle; color: var(--text-primary); border-bottom: 1px solid #f1f5f9; font-size: 13.5px; line-height: 1.4; }
.crm-table tbody tr:hover { background: rgba(99,102,241,.03); }

/* ═══════════════════════════════════════════════════════════
   PREMIUM CALENDAR GRID
   ═══════════════════════════════════════════════════════════ */
.calendar-container { overflow-x: auto; background: #fff; border-radius: var(--radius-md); position: relative; }
.booking-calendar { min-width: 1200px; }
.cal-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.cal-date-header { min-width: 48px; text-align: center; padding: 12px 4px; background: #fff; border: 1px solid var(--border); border-bottom: 2px solid var(--border); }
.cal-date-header.weekend { background: #fafbfc; }
.cal-date-header.today { background: var(--primary-light); color: var(--primary); }
.cal-date-num { font-size: 1.1rem; line-height: 1; margin-bottom: 2px; font-weight: 700; }
.cal-day-name { font-size: 0.7rem; text-transform: uppercase; opacity: 0.6; font-weight: 700; }
.cal-day-label { white-space: nowrap; padding: 12px 15px; font-weight: 700; font-size: 11px; min-width: 180px; background: #f8fafc; position: sticky; left: 0; z-index: 10; border-right: 2px solid var(--border) !important; }
.cal-room-label { white-space: nowrap; padding: 12px 15px; font-size: 12px; font-weight: 600; color: var(--text-primary); background: #fff; position: sticky; left: 0; z-index: 9; border-right: 2px solid var(--border) !important; box-shadow: 4px 0 8px rgba(0,0,0,0.02); }
.cal-cell { padding: 3px !important; height: 50px; min-width: 48px; border: 1px solid var(--border); }
.cal-cat-row td { background: #f1f5f9; font-size: 11px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: 1px; padding: 8px 15px; }

/* Booking UI Blocks */
.booking-cell { cursor: pointer; position: relative; padding: 0 !important; }
.booking-start { border-radius: 8px 0 0 8px; margin-left: 5px; }
.status-confirmed   { background: rgba(99, 102, 241, 0.12); border-left: 4px solid var(--status-confirmed); color: #4338ca; }
.status-checked_in  { background: rgba(34, 197, 94, 0.12); border-left: 4px solid var(--status-checked_in); color: #15803d; }
.status-checked_out { background: rgba(148, 163, 184, 0.12); border-left: 4px solid var(--status-checked_out); color: #475569; }
.status-cancelled   { background: rgba(239, 68, 68, 0.08); border-left: 4px solid var(--status-cancelled); color: #b91c1c; opacity: 0.7; }

/* Maintenance UI Blocks (OOO) */
.maintenance-cell { cursor: pointer; position: relative; padding: 0 !important; background: repeating-linear-gradient(45deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.1) 10px, rgba(245, 158, 11, 0.05) 10px, rgba(245, 158, 11, 0.05) 20px); border-top: 1px solid rgba(245, 158, 11, 0.2); border-bottom: 1px solid rgba(245, 158, 11, 0.2); }

/* General Block UI Blocks (BLK) */
.block-cell { cursor: pointer; position: relative; padding: 0 !important; background: #f1f5f9; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); opacity: 0.8; }

.maint-start { border-left: 4px solid var(--warning); border-radius: 8px 0 0 8px; margin-left: 5px; }
.block-cell.maint-start { border-left: 4px solid var(--text-muted); }
.cal-maint-label { font-size: 10px; font-weight: 800; color: #92400e; padding: 4px 8px; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; }

.cal-booking-label { font-size: 11px; font-weight: 700; padding: 4px 8px; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; }
.legend-badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--sidebar-border); }

/* ═══════════════════════════════════════════════════════════
   INVENTORY GRID
   ═══════════════════════════════════════════════════════════ */
.inventory-grid-container { overflow-x: auto; }
.inventory-table { font-size: 12px; border-collapse: separate; border-spacing: 0; }
.inventory-table th { white-space: nowrap; text-align: center; padding: 6px 8px; background: #fafbfc; border: 1px solid var(--border); min-width: 40px; }
.sticky-col { position: sticky; left: 0; z-index: 1; background: #fafbfc; min-width: 100px; font-weight: 600; }
.inv-cell { text-align: center; padding: 4px; border: 1px solid var(--border); font-weight: 600; font-size: 13px; }
.inv-cell-ok   { background: #d1fae5; color: #059669; }
.inv-cell-low  { background: #fef3c7; color: #d97706; }
.inv-cell-full { background: #fee2e2; color: #dc2626; }

/* ═══════════════════════════════════════════════════════════
   BUTTON EXTRAS
   ═══════════════════════════════════════════════════════════ */
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 5px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════
   KPI BODY (dashboard + payments kpi cards)
   ═══════════════════════════════════════════════════════════ */
.kpi-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kpi-trend { font-size: 11px; margin-top: 5px; font-weight: 600; }
.kpi-trend.up   { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════
   GUEST LIST (dashboard today check-ins / check-outs)
   ═══════════════════════════════════════════════════════════ */
.guest-list { display: flex; flex-direction: column; }
.guest-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.guest-list-item:last-child { border-bottom: none; }
.guest-list-item:hover { background: rgba(99,102,241,.03); }
.guest-li-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    font-size: 13px; font-weight: 700; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.guest-li-name  { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.guest-li-meta  { font-size: 11px; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   BOOKING WIZARD — STEP INDICATOR
   ═══════════════════════════════════════════════════════════ */
.booking-steps { display: flex; align-items: center; padding: 4px 0 20px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 90px; }
.step-num {
    width: 38px; height: 38px; border-radius: 50%;
    background: #e2e8f0; color: var(--text-muted);
    font-size: 14px; font-weight: 700;
    display: grid; place-items: center;
    border: 2px solid #e2e8f0;
    transition: all .3s ease;
    box-shadow: none;
}
.step-label { font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; transition: color .3s; }
.step-line  { flex: 1; height: 2px; background: #e2e8f0; border-radius: 1px; margin-bottom: 24px; transition: background .3s; }

.step.active .step-num  { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 4px 14px rgba(99,102,241,.35); }
.step.active .step-label { color: var(--primary); }
.step.done   .step-num  { background: var(--success); color: #fff; border-color: var(--success); }
.step.done   .step-label { color: var(--success); }
/* active/done step's right-side connector line turns colored */
.step.active + .step-line,
.step.done   + .step-line { background: var(--primary); }

/* ═══════════════════════════════════════════════════════════
   BOOKING STEP PANELS
   ═══════════════════════════════════════════════════════════ */
.booking-step-panel { animation: stepFadeIn .25s ease; }
@keyframes stepFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ═══════════════════════════════════════════════════════════
   BOOKING SUMMARY ITEMS (create booking Step 2 sidebar)
   ═══════════════════════════════════════════════════════════ */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.summary-item span {
    color: var(--crm-text-muted);
}
.summary-item strong {
    color: var(--crm-text-main);
    font-weight: 600;
}
.summary-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--crm-border);
    font-size: 1.1rem;
}
.summary-total strong {
    font-size: 1.4rem;
    color: var(--crm-success);
}

/* ═══════════════════════════════════════════════════════════
   AVAILABILITY CATEGORY CARDS (bookings.js renderCategoryCards)
   ═══════════════════════════════════════════════════════════ */
.category-avail-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all .2s ease; height: 100%;
}
.category-avail-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 24px rgba(99,102,241,.14);
    transform: translateY(-3px);
}
.category-avail-card.unavailable { opacity: .55; background: #f8fafc; pointer-events: none; }

.cat-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.cat-name        { font-size: 16px; font-weight: 700; color: var(--text-primary); line-height: 1.3; }

.avail-pill  { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .3px; white-space: nowrap; flex-shrink: 0; }
.avail-green { background: #d1fae5; color: #065f46; }
.avail-yellow{ background: #fef3c7; color: #92400e; }
.avail-red   { background: #fee2e2; color: #991b1b; }

.cat-card-prices { margin-bottom: 12px; }
.cat-price  { display: block; font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.cat-total  { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cat-card-meta { color: var(--text-muted); margin-bottom: 4px; }

/* ═══════════════════════════════════════════════════════════
   BOOKING DETAIL MODAL (bookings.js viewBooking)
   ═══════════════════════════════════════════════════════════ */
.booking-detail  { padding: 4px 0; }
.detail-group    { margin-bottom: 6px; }
.detail-label    { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); margin-bottom: 3px; }
.detail-value    { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   ROLE BADGES (sidebar footer user role)
   ═══════════════════════════════════════════════════════════ */
.badge-role-superadmin      { color: #b45309; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.badge-role-admin           { color: #7c3aed; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-role-accountent      { color: #059669; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-role-tour_co-ordinetor { color: #ea580c; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-role-sales_person    { color: #0284c7; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* ═══════════════════════════════════════════════════════════
   QUICK ACTIONS BAR (mobile sticky bottom)
   ═══════════════════════════════════════════════════════════ */
.quick-actions-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border);
    display: flex; justify-content: space-around;
    padding: 8px 0; z-index: 900;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.quick-action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--text-secondary); font-size: 11px; font-weight: 600;
    text-decoration: none; padding: 6px 16px;
    border-radius: var(--radius-sm); transition: all var(--transition);
}
.quick-action-btn i  { font-size: 22px; }
.quick-action-btn:hover { color: var(--primary); background: var(--primary-light); }

/* ═══════════════════════════════════════════════════════════
   HOTEL PROPERTY CARDS (hotels/index.php)
   ═══════════════════════════════════════════════════════════ */
.hotel-property-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 20px 24px;
    box-shadow: var(--shadow-sm); display: flex;
    align-items: center; gap: 18px;
    transition: all var(--transition);
}
.hotel-property-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }
.hotel-prop-icon {
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; font-size: 24px; flex-shrink: 0;
}
.hotel-prop-name { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.hotel-prop-city { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* ═══════════════════════════════════════════════════════════
   FORM LABEL SM UTILITY
   ═══════════════════════════════════════════════════════════ */
.form-label-sm { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; display: block; text-transform: uppercase; letter-spacing: .4px; }

/* ═══════════════════════════════════════════════════════════
   AUTH LAYOUT
   ═══════════════════════════════════════════════════════════ */
.auth-body { margin: 0; padding: 0; background: #f1f5f9; }

.auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left branding panel */
.auth-brand-panel {
    flex: 1;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 80%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    pointer-events: none;
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 440px;
}

.auth-brand-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.15) 100%);
    pointer-events: none;
}

.auth-logo-wrap {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.25);
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin: 0 auto 28px;
    font-size: 38px;
    color: #fff;
    backdrop-filter: blur(10px);
}

.auth-brand-title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -1px;
}

.auth-brand-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    margin: 0 0 40px;
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.9);
    font-size: 15px;
    font-weight: 500;
}

.auth-feature-item i {
    font-size: 18px;
    color: #a5f3fc;
    flex-shrink: 0;
}

/* Right form panel */
.auth-form-panel { width: 480px; display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.auth-form-inner { width: 100%; max-width: 400px; }
.auth-form-title { font-size: 26px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
.auth-form-sub { color: var(--text-muted); margin-bottom: 28px; }
.input-group-auth .input-group-text { background: #f8fafc; border-right: none; color: var(--text-muted); }
.input-group-auth .form-control { border-left: none; }
.btn-primary-crm {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none; color: #fff; padding: 12px; font-weight: 700; font-size: 15px;
    border-radius: var(--radius-sm); transition: all var(--transition);
}
.btn-primary-crm:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,.35); color: #fff; }
.demo-creds { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.btn-demo { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; padding: 8px 12px; text-align: left; color: var(--text-primary); transition: all var(--transition); }
.btn-demo:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ── Premium UI v2 ───────────────────────────────────────── */
.glass-effect {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ── Dash Hero ── */
.dash-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 80%, #6366f1 100%);
    border-radius: var(--radius-lg);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.dash-hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.dash-hero-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 22px;
    margin-bottom: 1rem;
}

.dash-hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.85rem;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    color: #fff !important;
}

.dash-hero-subtitle {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 500;
    max-width: 600px;
    color: #fff !important;
}

.auth-form-inner {
    animation: authFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.input-group-auth {
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

.input-group-auth:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.input-group-auth .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
}

.btn-shimmer:hover::after {
    left: 120%;
    top: 120%;
}

.auth-brand-content {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.social-login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
}

.social-login-separator::before,
.social-login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.social-login-separator::before { margin-right: .75em; }
.social-login-separator::after { margin-left: .75em; }

.btn-social {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all var(--transition);
}

.btn-social:hover {
    background: #f8fafc;
    border-color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE & TOGGLE STATES
   ═══════════════════════════════════════════════════════════ */
.sidebar-collapsed .sidebar { transform: translateX(-100%); }
.sidebar-collapsed .main-wrapper { margin-left: 0; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); box-shadow: var(--shadow-premium); }
    .main-wrapper { margin-left: 0; }
    .page-content { padding: 16px; }
    .auth-form-panel { width: 100%; }
    
    .sidebar-collapsed .sidebar { transform: translateX(-100%); }
    .sidebar-collapsed .main-wrapper { margin-left: 0; }
}
