/* ═══════════════════════════════════════════════════════
   HotDesk Design System — White Minimal
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Thai:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
    /* Palette — white minimal */
    --bg-primary: #f8f9fb;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-glass-hover: rgba(0, 0, 0, 0.04);
    --bg-input: rgba(0, 0, 0, 0.03);

    --text-primary: #1a1a2e;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-dim: #cbd5e1;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dark: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.10);

    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.08);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.08);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.08);

    --border: rgba(0, 0, 0, 0.06);
    --border-light: rgba(0, 0, 0, 0.10);
    --border-accent: rgba(99, 102, 241, 0.18);

    /* Shadows — soft */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 12px var(--accent-glow);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 120ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;

    /* Spacing */
    --nav-height: 52px;
    --sidebar-width: 260px;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    letter-spacing: -0.01em;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

/* ── Typography ── */
h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-right: 28px;
}

.nav-brand-icon {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-notif {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    border: none;
    font-size: 1.2rem;
}

.nav-notif:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.nav-notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    cursor: pointer;
    transition: box-shadow var(--transition-fast);
}

.nav-avatar:hover {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* User dropdown */
.nav-user-menu {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    z-index: 1001;
    animation: dropdown-in 200ms ease;
}

.nav-dropdown.open {
    display: block;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown a,
.nav-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

.nav-dropdown a:hover,
.nav-dropdown button:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* ── Notification Panel ── */
.nav-notif-wrapper {
    position: relative;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: -40px;
    width: 360px;
    max-height: 480px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    display: none;
    z-index: 1002;
    overflow: hidden;
    animation: notif-slide-in 200ms ease;
}

.notif-panel.open {
    display: block;
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.notif-panel-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

@keyframes notif-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-link:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.notif-panel-body {
    max-height: 400px;
    overflow-y: auto;
}

.notif-panel-body::-webkit-scrollbar {
    width: 4px;
}

.notif-panel-body::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 2px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.notif-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item.unread {
    background: rgba(99, 102, 241, 0.04);
}

.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.notif-msg {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.notif-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notif-empty::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-full);
    animation: empty-pulse 3s ease-in-out infinite;
}

@keyframes empty-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Hamburger for mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
}

/* ══════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════ */
.main-content {
    padding-top: calc(var(--nav-height) + 24px);
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-header {
    margin-bottom: 28px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: border-color var(--transition-normal);
}

.card:hover {
    border-color: var(--border-light);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    display: none;
}

.stat-card:hover {
    border-color: var(--border-light);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    text-transform: uppercase;
}

.stat-icon.blue {
    background: var(--info-bg);
    color: var(--info);
}

.stat-icon.green {
    background: var(--success-bg);
    color: var(--success);
}

.stat-icon.yellow {
    background: var(--warning-bg);
    color: var(--warning);
}

.stat-icon.red {
    background: var(--danger-bg);
    color: var(--danger);
}

.stat-icon.purple {
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    color: white;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.btn-danger:hover {
    background: rgba(248, 113, 113, 0.15);
}

.btn-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(74, 222, 128, 0.15);
}

.btn-success:hover {
    background: rgba(74, 222, 128, 0.15);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ══════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.04);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.form-select option {
    background: #ffffff;
    color: var(--text-primary);
}

.form-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ══════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.badge-available {
    background: var(--success-bg);
    color: var(--success);
}

.badge-reserved {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-checked-in {
    background: var(--info-bg);
    color: var(--info);
}

.badge-confirmed {
    background: var(--info-bg);
    color: var(--info);
}

.badge-completed {
    background: var(--success-bg);
    color: var(--success);
}

.badge-cancelled {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-no-show {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.badge-out-of-service {
    background: rgba(107, 114, 128, 0.12);
    color: #9ca3af;
}

.badge-open {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-in-progress {
    background: var(--info-bg);
    color: var(--info);
}

.badge-resolved {
    background: var(--success-bg);
    color: var(--success);
}

.badge-closed {
    background: rgba(107, 114, 128, 0.12);
    color: #9ca3af;
}

.badge-admin {
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
}

.badge-employee {
    background: var(--info-bg);
    color: var(--info);
}

/* ══════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead {
    background: rgba(0, 0, 0, 0.02);
}

th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 12px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-glass);
}

/* ══════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* ══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    right: 16px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 280px;
    max-width: 420px;
    animation: toast-in 300ms ease;
}

.toast.toast-out {
    animation: toast-out 300ms ease forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: var(--success);
}

.toast-error .toast-icon {
    color: var(--danger);
}

.toast-info .toast-icon {
    color: var(--info);
}

.toast-warning .toast-icon {
    color: var(--warning);
}

/* ══════════════════════════════════════════════
   LOADING / EMPTY STATES
   ══════════════════════════════════════════════ */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.4;
    border: 2px dashed rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-dim);
}

.empty-state-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ══════════════════════════════════════════════
   FLOOR PLAN CANVAS
   ══════════════════════════════════════════════ */
.floor-plan-container {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: grab;
}

.floor-plan-container:active {
    cursor: grabbing;
}

.floor-plan-canvas {
    display: block;
    width: 100%;
    touch-action: none;
}

.floor-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.floor-controls button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.floor-controls button:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

/* Filter sidebar */
.floor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.floor-sidebar .filter-group h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-chip {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip.active {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

.filter-chip:hover:not(.active) {
    border-color: var(--border-light);
    color: var(--text-primary);
}

/* Legend */
.floor-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot.available {
    background: var(--success);
}

.legend-dot.reserved {
    background: var(--warning);
}

.legend-dot.checked-in {
    background: var(--info);
}

.legend-dot.out-of-service {
    background: #6b7280;
}

/* ══════════════════════════════════════════════
   AUTH PAGES (Login / Register)
   ══════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    animation: auth-in 500ms ease;
}

@keyframes auth-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    display: none;
}

.auth-logo h1 {
    font-size: 1.5rem;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   BOOKING CARDS
   ══════════════════════════════════════════════ */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.booking-card:hover {
    border-color: var(--border-light);
}

.booking-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    text-transform: uppercase;
}

.booking-icon.desk {
    background: var(--info-bg);
    color: var(--info);
}

.booking-icon.room {
    background: rgba(124, 58, 237, 0.10);
    color: #7c3aed;
}

.booking-info {
    flex: 1;
    min-width: 0;
}

.booking-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.booking-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.booking-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   TEAM MEMBER CARDS
   ══════════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.member-card:hover {
    border-color: var(--border-light);
}

.member-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.member-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.member-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.member-status {
    font-size: 0.75rem;
    color: var(--success);
}

/* ══════════════════════════════════════════════
   TABS
   ══════════════════════════════════════════════ */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-glass);
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: none;
    border: none;
}

.tab.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.tab:hover:not(.active) {
    color: var(--text-primary);
}

/* ══════════════════════════════════════════════
   GRID LAYOUTS
   ══════════════════════════════════════════════ */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.floor-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

/* ══════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
.fade-in {
    animation: fadeIn 400ms ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger>* {
    animation: fadeIn 400ms ease backwards;
}

.stagger>*:nth-child(1) {
    animation-delay: 50ms;
}

.stagger>*:nth-child(2) {
    animation-delay: 100ms;
}

.stagger>*:nth-child(3) {
    animation-delay: 150ms;
}

.stagger>*:nth-child(4) {
    animation-delay: 200ms;
}

.stagger>*:nth-child(5) {
    animation-delay: 250ms;
}

.stagger>*:nth-child(6) {
    animation-delay: 300ms;
}

/* ══════════════════════════════════════════════
   FOCUS & ACCESSIBILITY
   ══════════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible,
.filter-chip:focus-visible,
.tab:focus-visible {
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ══════════════════════════════════════════════
   MICRO-INTERACTIONS & POLISH
   ══════════════════════════════════════════════ */
.empty-state {
    animation: fadeIn 500ms ease;
}

.stat-card::before {
    display: none;
}

.booking-card {
    transition: border-color var(--transition-normal);
}

.booking-card:hover {
    border-color: var(--border-light);
}

.member-card {
    transition: border-color var(--transition-normal);
}

.member-card:hover {
    border-color: var(--border-light);
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .floor-layout {
        grid-template-columns: 1fr;
    }

    .floor-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .floor-sidebar>.card {
        flex: 1 1 200px;
    }

    .page-header.flex-between {
        flex-wrap: wrap;
        gap: 12px;
    }

    .main-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-link span {
        display: none;
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        padding: 8px;
        animation: dropdown-in 200ms ease;
        z-index: 999;
    }

    .nav-links.open .nav-link {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .main-content {
        padding: 80px 16px 32px;
    }

    .page-header.flex-between,
    .flex-between {
        flex-wrap: wrap;
        gap: 12px;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .floor-layout {
        grid-template-columns: 1fr;
    }

    .floor-sidebar {
        order: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .booking-card {
        flex-wrap: wrap;
        padding: 14px;
    }

    .booking-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }

    .modal {
        padding: 20px;
        width: 95%;
        border-radius: var(--radius-lg);
    }

    h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 20px;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .table-wrap {
        font-size: 0.8rem;
    }

    th,
    td {
        padding: 10px 12px;
    }

    /* Floor plan page-specific */
    .floor-plan-canvas {
        height: 400px !important;
    }

    .floor-select-mobile {
        width: 100%;
    }

    /* Notification panel — full width on mobile */
    .notif-panel-wrapper .notif-panel {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    /* QR Scanner section — stack vertically on mobile */
    .card>[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ══════════════════════════════════════════════ */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .nav {
        padding: 0 12px;
    }

    .nav-brand span {
        display: none;
    }

    .auth-card {
        padding: 24px;
    }

    .card {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .main-content {
        padding: 76px 12px 24px;
    }

    .page-subtitle {
        font-size: 0.8rem;
    }

    .floor-plan-canvas {
        height: 300px !important;
    }

    .modal {
        padding: 16px;
        border-radius: var(--radius-md);
    }

    .booking-card {
        padding: 12px;
        gap: 10px;
    }

    .booking-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 12px 24px;
    }
}

/* ══════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════ */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-sm {
    gap: 8px;
}

.gap-md {
    gap: 16px;
}

.gap-lg {
    gap: 24px;
}

.mt-sm {
    margin-top: 8px;
}

.mt-md {
    margin-top: 16px;
}

.mt-lg {
    margin-top: 24px;
}

.mb-md {
    margin-bottom: 16px;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.8rem;
}

.text-muted {
    color: var(--text-muted);
}

.w-full {
    width: 100%;
}

.hidden {
    display: none !important;
}