/* ============================================
   CRM Thanos v3.0 - Modern Dark Sidebar Theme
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sidebar-width: 260px;
    --sidebar-collapsed: 70px;
    --sidebar-bg: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --sidebar-text: #a8b2c1;
    --sidebar-active: #6366f1;
    --sidebar-hover: rgba(99, 102, 241, 0.15);
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --success: #22c55e;
    --success-light: #4ade80;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --bg-main: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    z-index: 1050;
    transition: var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 8px;
}

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.sidebar-brand .brand-text {
    margin-left: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

.sidebar-brand .brand-version {
    font-size: 10px;
    color: var(--sidebar-text);
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 500;
}

.sidebar-menu {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.sidebar-menu .menu-header {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 16px 12px 8px;
}

.sidebar-menu .menu-item {
    margin-bottom: 2px;
}

.sidebar-menu .menu-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--sidebar-text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
}

.sidebar-menu .menu-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.sidebar-menu .menu-link.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.sidebar-menu .menu-link i {
    width: 20px;
    font-size: 15px;
    margin-right: 12px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-menu .menu-link .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 3px 8px;
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.2);
}

.sidebar-user .user-info {
    display: flex;
    align-items: center;
}

.sidebar-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user .user-details {
    margin-left: 10px;
    flex: 1;
    min-width: 0;
}

.sidebar-user .user-name {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user .user-role {
    color: var(--sidebar-text);
    font-size: 11px;
    text-transform: capitalize;
}

.sidebar-user .btn-logout {
    color: var(--sidebar-text);
    font-size: 16px;
    transition: var(--transition);
    padding: 4px;
}

.sidebar-user .btn-logout:hover {
    color: var(--danger);
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* Top bar */
.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-sm);
}

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

.topbar .breadcrumb {
    margin: 0;
    font-size: 12px;
    background: none;
    padding: 0;
}

.topbar .breadcrumb-item a {
    color: var(--text-secondary);
}

.topbar .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .btn-toggle-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.topbar .btn-toggle-sidebar:hover {
    background: var(--bg-main);
}

/* Content area */
.content-wrapper {
    padding: 24px 28px;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header i {
    margin-right: 8px;
    color: var(--primary);
}

.card-body {
    padding: 20px;
}

/* Stat Cards - Layout ngang: icon trái, text phải */
.stat-card {
    border: none;
    border-radius: var(--radius);
    padding: 16px 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    pointer-events: none;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.stat-card .stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card .stat-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.stat-card.bg-gradient-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.stat-card.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-card.bg-gradient-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.stat-card.bg-gradient-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.stat-card.bg-gradient-dark {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

/* ============================================
   Tables
   ============================================ */
.table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
    font-size: 13px;
}

.table thead th {
    background: #f8fafc;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    white-space: nowrap;
}

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

.table tbody tr:hover {
    background: #f8fafc;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table .form-control, .table .form-select {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

/* Highlight animation */
.highlight {
    animation: highlightPulse 3s ease-out;
}

@keyframes highlightPulse {
    0% { background-color: rgba(99, 102, 241, 0.15); }
    100% { background-color: transparent; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
}

.btn i {
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

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

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-warning {
    background: var(--warning);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-info {
    background: var(--info);
    color: #fff;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.btn-info:hover {
    background: #0891b2;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #64748b;
    color: #fff;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

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

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
}

/* ============================================
   Forms
   ============================================ */
.form-control, .form-select {
    font-family: 'Inter', sans-serif;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

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

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #ecfeff;
    color: #155e75;
    border-left: 4px solid var(--info);
}

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

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

.modal-title {
    font-weight: 600;
    font-size: 16px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 24px;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    font-weight: 500;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.badge-status.online::before { background: var(--success); }
.badge-status.offline::before { background: var(--text-muted); }
.badge-status.busy::before { background: var(--warning); }

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

.toast-notification {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 380px;
}

.toast-notification.success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.toast-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.toast-notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.toast-notification.info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

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

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

/* ============================================
   Notification Panel
   ============================================ */
.notification-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 1060;
    transition: var(--transition);
    overflow-y: auto;
}

.notification-panel.open {
    right: 0;
}

.notification-panel .panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.notification-panel .panel-header h5 {
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}

.notification-panel .notification-item {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
    font-size: 13px;
    line-height: 1.5;
}

.notification-panel .notification-item:hover {
    background: #f8fafc;
}

.notification-panel .notification-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1055;
    display: none;
}

.notification-overlay.show {
    display: block;
}

/* ============================================
   Loading Spinner
   ============================================ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 9990;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading {
    display: none;
    text-align: center;
    padding: 30px;
}

#loading .spinner-border {
    color: var(--primary) !important;
}

/* ============================================
   Pagination
   ============================================ */
.pagination .page-link {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background: #f8fafc;
}

/* Ô nhập số trang */
.page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.page-jump input {
    width: 56px;
    padding: 6px 8px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.page-jump input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    outline: none;
}

.page-jump .btn-go {
    padding: 6px 10px;
    font-size: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.page-jump .btn-go:hover {
    background: var(--primary-dark);
}

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.filter-bar .form-control,
.filter-bar .form-select {
    font-size: 13px;
    padding: 8px 12px;
}

/* ============================================
   Login Page
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.login-card .login-header {
    background: var(--primary);
    padding: 32px 32px 28px;
    text-align: center;
    color: #fff;
}

.login-card .login-header .logo-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.login-card .login-header h3 {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 4px;
}

.login-card .login-header p {
    opacity: 0.85;
    font-size: 13px;
    margin: 0;
}

.login-card .login-body {
    padding: 32px;
}

.login-card .form-floating {
    margin-bottom: 16px;
}

.login-card .form-floating .form-control {
    border-radius: var(--radius-sm);
    padding: 16px 14px 6px;
    height: 52px;
}

.login-card .btn-login {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card .login-footer {
    text-align: center;
    padding: 0 32px 24px;
}

.login-card .login-footer a {
    font-size: 13px;
    color: var(--text-secondary);
}

.login-card .login-footer a:hover {
    color: var(--primary);
}

/* ============================================
   Report / Chart
   ============================================ */
.chart-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow);
}

/* ============================================
   Empty state
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

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

.empty-state h5 {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   jQuery UI Autocomplete
   ============================================ */
.ui-autocomplete {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-md) !important;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif !important;
}

.ui-menu-item-wrapper {
    padding: 8px 14px !important;
    font-size: 13px !important;
}

.ui-state-active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 4px !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .topbar .btn-toggle-sidebar {
        display: block;
    }

    .content-wrapper {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 10px 16px;
    }

    .topbar .page-title {
        font-size: 15px;
    }

    .notification-panel {
        width: 100%;
        right: -100%;
    }

    .table {
        font-size: 12px;
    }

    .table thead th,
    .table tbody td {
        padding: 8px 10px;
    }

    .filter-bar .row > div {
        margin-bottom: 8px;
    }
}

@media (max-width: 576px) {
    .login-card {
        border-radius: var(--radius);
    }

    .login-card .login-header {
        padding: 24px;
    }

    .login-card .login-body {
        padding: 24px;
    }
}

/* ============================================
   Utilities
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-soft-primary { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.bg-soft-success { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.bg-soft-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.bg-soft-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.bg-soft-info { background: rgba(6, 182, 212, 0.1); color: var(--info); }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }

.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
