/* =========================================
   CWH Live Chat - Global Design System
   Shared across Admin & Client panels
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* =========================================
   1. CSS VARIABLES (Design Tokens)
   ========================================= */
:root {
    /* Primary */
    --primary: #6366F1;
    --primary-hover: #5457E5;
    --primary-light: #EEF2FF;
    --primary-glow: rgba(99, 102, 241, 0.15);
    
    /* Accent */
    --accent: #8B5CF6;
    --accent-light: #F5F3FF;
    
    /* Neutrals */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-sidebar: #0F172A;
    --bg-sidebar-hover: #1E293B;
    --bg-sidebar-active: #6366F1;
    --bg-input: #F9FAFB;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-sidebar: #94A3B8;
    --text-white: #FFFFFF;
    
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    
    /* Status */
    --success: #22C55E;
    --success-bg: #F0FDF4;
    --success-text: #166534;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --danger-text: #991B1B;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --warning-text: #92400E;
    --info: #3B82F6;
    --info-bg: #EFF6FF;
    --info-text: #1E40AF;
    
    /* Sizing */
    --sidebar-w: 260px;
    --topbar-h: 64px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    
    /* Transitions */
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. GLOBAL RESET
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-secondary);
    display: flex;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

/* =========================================
   3. SIDEBAR
   ========================================= */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 1000;
    position: relative;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 32px;
    text-decoration: none;
}

.sidebar .logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.sidebar .logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.sidebar .logo-badge {
    font-size: 9px;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #475569;
    padding: 0 12px;
    margin: 20px 0 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-sidebar);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    text-decoration: none;
    position: relative;
}

.nav-link:hover {
    background: var(--bg-sidebar-hover);
    color: var(--text-white);
}

.nav-link.active {
    background: var(--bg-sidebar-active);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.nav-link .badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    background: var(--danger);
    color: white;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-spacer { margin-top: auto; }

.nav-link.logout { color: #F87171; }
.nav-link.logout:hover { background: rgba(248, 113, 113, 0.1); }

/* Impersonation banner */
.impersonation-bar {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.impersonation-bar a {
    color: white;
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

/* =========================================
   4. MAIN CONTENT
   ========================================= */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-body);
    width: calc(100% - var(--sidebar-w));
}

/* Top bar */
.top-bar {
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Scrollable content */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
}

/* =========================================
   5. STAT CARDS
   ========================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
}

.stat-card.purple::after { background: linear-gradient(90deg, #6366F1, #8B5CF6); }
.stat-card.blue::after { background: linear-gradient(90deg, #3B82F6, #06B6D4); }
.stat-card.green::after { background: linear-gradient(90deg, #22C55E, #10B981); }
.stat-card.orange::after { background: linear-gradient(90deg, #F59E0B, #EF4444); }

.stat-card .stat-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.stat-card.purple .stat-icon { background: #EEF2FF; color: #6366F1; }
.stat-card.blue .stat-icon { background: #EFF6FF; color: #3B82F6; }
.stat-card.green .stat-icon { background: #F0FDF4; color: #22C55E; }
.stat-card.orange .stat-icon { background: #FFF7ED; color: #F59E0B; }

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================================
   6. CARDS & GRID
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

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

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* =========================================
   7. BUTTONS
   ========================================= */
.btn {
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background: var(--bg-body);
    border-color: #CBD5E1;
}

.btn-danger {
    background: var(--danger);
    color: white;
}
.btn-danger:hover {
    background: #DC2626;
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { background: #16A34A; color: white; }

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 6px 10px;
}
.btn-ghost:hover { background: var(--border-light); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 8px; font-size: 11px; border-radius: 4px; }

/* =========================================
   8. TABLE
   ========================================= */
.table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-toolbar {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    flex: 1;
    max-width: 320px;
}

.search-box i { color: var(--text-muted); font-size: 14px; }

.search-box input {
    border: none;
    background: transparent;
    padding: 9px 0;
    font-size: 13px;
    outline: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--bg-body);
    border-bottom: 1px solid var(--border);
}

tbody td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

tbody tr:hover { background: #FAFBFC; }
tbody tr:last-child td { border-bottom: none; }

.table-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================
   9. STATUS BADGES
   ========================================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-info { background: var(--info-bg); color: var(--info-text); }
.badge-muted { background: var(--border-light); color: var(--text-muted); }

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.badge-success .badge-dot { background: var(--success); }
.badge-danger .badge-dot { background: var(--danger); }
.badge-warning .badge-dot { background: var(--warning); }

/* User avatar */
.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

/* =========================================
   10. FORMS
   ========================================= */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control { resize: vertical; min-height: 80px; }
select.form-control { cursor: pointer; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =========================================
   11. MODALS
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.show { display: flex; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    border: none;
    background: none;
    font-size: 16px;
}
.modal-close:hover { background: var(--border-light); color: var(--text-primary); }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

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

.toast {
    background: var(--bg-sidebar);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 280px;
    max-width: 400px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }

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

/* =========================================
   13. CHAT LAYOUT
   ========================================= */
.chat-layout {
    display: flex;
    height: calc(100vh - var(--topbar-h));
    background: var(--bg-card);
    overflow: hidden;
}

.chat-sidebar {
    width: 320px;
    min-width: 320px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-body);
}

.chat-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.chat-user-list {
    flex: 1;
    overflow-y: auto;
}

.chat-user {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}
.chat-user:hover { background: var(--bg-card); }
.chat-user.active { background: var(--primary-light); border-left: 3px solid var(--primary); }

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.messages-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #FAFBFC;
}

.msg {
    padding: 12px 18px;
    border-radius: 14px;
    max-width: 65%;
    font-size: 14px;
    line-height: 1.5;
    animation: msgIn 0.2s ease;
}

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

.msg-user {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.msg-admin {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-bot {
    align-self: flex-start;
    background: var(--accent-light);
    color: var(--text-primary);
    border: 1px solid #DDD6FE;
    border-bottom-left-radius: 4px;
}

.msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.input-bar {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
}

.input-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
}

.input-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* =========================================
   14. VISITOR LAYOUT
   ========================================= */
.split-layout {
    display: flex;
    height: calc(100vh - var(--topbar-h));
    overflow: hidden;
}

.visitor-panel {
    width: 380px;
    min-width: 380px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
}

.visitor-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.visitor-header h2 { font-size: 17px; }
.visitor-header span { font-size: 13px; color: var(--text-muted); }

.visitor-list { flex: 1; overflow-y: auto; }

.visitor-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}
.visitor-item:hover { background: var(--bg-body); }

.v-avatar {
    width: 42px; height: 42px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    position: relative;
    flex-shrink: 0;
}

.v-status {
    width: 10px; height: 10px;
    background: var(--success);
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    bottom: -1px; right: -1px;
}

.v-info { flex: 1; min-width: 0; }
.v-name { font-size: 14px; font-weight: 600; color: var(--text-primary); display: block; }
.v-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-top: 2px; }

.map-panel { flex: 1; position: relative; }
#map { width: 100%; height: 100%; }

/* Brand icons */
.icon-windows { color: #0078D7 !important; }
.icon-android { color: #3DDC84 !important; }
.icon-apple { color: #000000 !important; }
.icon-linux { color: #FCC624 !important; }
.icon-mobile { color: #8B5CF6 !important; }
.icon-desktop { color: #64748B !important; }
.icon-chrome { color: #EA4335 !important; }

/* =========================================
   15. SETTINGS PAGE
   ========================================= */
.settings-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 800px;
}

.settings-section {
    padding: 28px;
    border-bottom: 1px solid var(--border);
}
.settings-section:last-child { border-bottom: none; }

.settings-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Toggle switch */
.toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.toggle {
    width: 44px; height: 24px;
    background: #CBD5E1;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.toggle.active { background: var(--primary); }

.toggle::after {
    content: '';
    width: 20px; height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px; left: 2px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle.active::after { left: 22px; }

/* =========================================
   16. EMPTY STATES
   ========================================= */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 16px;
}

.empty-state p {
    font-size: 14px;
    max-width: 360px;
    margin: 0 auto 20px;
}

/* =========================================
   17. UTILITIES
   ========================================= */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.fw-600 { font-weight: 600; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* =========================================
   18. SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* =========================================
   19. PAGINATION
   ========================================= */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination .page-btn {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.pagination .page-btn:hover { background: var(--bg-body); }
.pagination .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* =========================================
   20. SELECT DROPDOWN (Custom)
   ========================================= */
.select-filter {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    background: var(--bg-card);
    cursor: pointer;
    outline: none;
}

.select-filter:focus { border-color: var(--primary); }
