:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --sidebar-bg: #1A1A2E;
    --sidebar-text: #B0B3B8;
    --sidebar-hover: #2A2A4A;
    --sidebar-active: #2563EB;
    --content-bg: #F5F6FA;
    --card-bg: #FFFFFF;
    --heading-color: #1A1A2E;
    --text-color: #333333;
    --text-secondary: #65676B;
    --text-muted: #8A8D91;
    --border-color: #E4E6EB;
    --success: #00C853;
    --success-bg: #E8F5E9;
    --warning: #F9A825;
    --warning-bg: #FFF8E1;
    --danger: #FF1744;
    --danger-bg: #FFEBEE;
    --info: #2196F3;
    --info-bg: #E3F2FD;
    --purple: #7C4DFF;
    --purple-bg: #EDE7F6;
    --orange: #FF6D00;
    --orange-bg: #FFF3E0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --sidebar-width: 260px;
    --topbar-height: 70px;
    --transition: 0.25s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--content-bg);
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===================== LOGIN ===================== */
.login-screen {
    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 {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-logo {
    margin-bottom: 36px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    border-radius: 18px;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.login-logo h1 {
    font-size: 26px;
    color: var(--heading-color);
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-color);
    background: #FAFAFA;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: #fff;
}

.login-error {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    text-align: left;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn:hover {
    background: var(--primary-dark);
}

.login-btn:active {
    transform: scale(0.98);
}

.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===================== LAYOUT ===================== */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border-radius: 10px;
    letter-spacing: -0.5px;
}

.sidebar-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    margin: 2px 0;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #fff;
}

.nav-item.active {
    background: rgba(255, 45, 45, 0.15);
    color: #fff;
    border-left-color: var(--primary);
}

.nav-item.active .nav-icon {
    color: var(--primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.sidebar-logout-btn:hover {
    background: rgba(255,23,68,0.15);
    color: var(--danger);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* ===================== TOPBAR ===================== */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger svg {
    width: 24px;
    height: 24px;
    color: var(--heading-color);
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
}

.topbar-section {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.topbar-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--danger-bg);
    color: var(--danger);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.topbar-logout:hover {
    background: var(--danger);
    color: #fff;
}

/* ===================== CONTENT ===================== */
.content {
    flex: 1;
    padding: 28px 32px;
}

/* ===================== LOADING ===================== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

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

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

/* ===================== STAT CARDS ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 4px solid var(--primary);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-card.users { border-left-color: var(--info); }
.stat-card.jobs { border-left-color: var(--purple); }
.stat-card.payments { border-left-color: var(--success); }
.stat-card.messages { border-left-color: var(--warning); }
.stat-card.conversations { border-left-color: var(--orange); }
.stat-card.reviews { border-left-color: #E91E63; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-card.users .stat-icon { background: var(--info-bg); color: var(--info); }
.stat-card.jobs .stat-icon { background: var(--purple-bg); color: var(--purple); }
.stat-card.payments .stat-icon { background: var(--success-bg); color: var(--success); }
.stat-card.messages .stat-icon { background: var(--warning-bg); color: var(--warning); }
.stat-card.conversations .stat-icon { background: var(--orange-bg); color: var(--orange); }
.stat-card.reviews .stat-icon { background: #FCE4EC; color: #E91E63; }

.stat-info {
    flex: 1;
    min-width: 0;
}

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

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.1;
}

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

.stat-change .positive { color: var(--success); }
.stat-change .negative { color: var(--danger); }

/* ===================== TABLES SECTION ===================== */
.tables-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--heading-color);
}

/* ===================== TOOLBAR ===================== */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--card-bg);
    outline: none;
    transition: border-color var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text-color);
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
}

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

/* ===================== TABLE ===================== */
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-wrapper {
    overflow-x: auto;
}

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

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

tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover {
    background: #F8F9FA;
}

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

/* ===================== AVATAR ===================== */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

/* ===================== BADGES ===================== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-client { background: var(--info-bg); color: var(--info); }
.badge-provider { background: var(--purple-bg); color: var(--purple); }
.badge-active { background: var(--success-bg); color: #00894D; }
.badge-paused { background: var(--warning-bg); color: #E68A00; }
.badge-draft { background: #F0F0F0; color: #888; }
.badge-completed { background: var(--success-bg); color: #00894D; }
.badge-pending { background: var(--warning-bg); color: #E68A00; }
.badge-cancelled { background: var(--danger-bg); color: var(--danger); }
.badge-refunded { background: var(--orange-bg); color: var(--orange); }
.badge-banned { background: var(--danger-bg); color: var(--danger); }
.badge-admin { background: #1A1A2E; color: #FFF; }

.verified-yes {
    color: var(--success);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.verified-no {
    color: var(--danger);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===================== STARS ===================== */
.stars {
    color: #FFC107;
    letter-spacing: 1px;
    font-size: 14px;
}

/* ===================== ACTION BUTTONS ===================== */
.actions {
    display: flex;
    gap: 4px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: transparent;
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon.view { color: var(--info); }
.btn-icon.view:hover { background: var(--info-bg); }

.btn-icon.edit { color: var(--warning); }
.btn-icon.edit:hover { background: var(--warning-bg); }

.btn-icon.delete { color: var(--danger); }
.btn-icon.delete:hover { background: var(--danger-bg); }

.btn-icon.verify { color: var(--success); }
.btn-icon.verify:hover { background: var(--success-bg); }

.btn-icon.ban { color: var(--danger); }
.btn-icon.ban:hover { background: var(--danger-bg); }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

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

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

.btn-secondary {
    background: var(--border-color);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: #D0D2D6;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #D50000;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #00A844;
}

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

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.pagination button {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
    padding: 0 12px;
}

/* ===================== SLIDE PANEL ===================== */
.slide-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    animation: fadeIn 0.2s ease;
}

.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 520px;
    max-width: 100%;
    background: var(--card-bg);
    z-index: 201;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.slide-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.slide-panel-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
}

.slide-panel-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition);
}

.slide-panel-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.slide-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Panel detail sections */
.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.detail-row .label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-row .value {
    color: var(--heading-color);
    font-weight: 600;
    text-align: right;
}

.detail-user-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-user-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--heading-color);
    border: none;
    padding: 0;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.detail-user-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* ===================== CONFIRM MODAL ===================== */
.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
}

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 28px;
    width: 400px;
    max-width: 90%;
    z-index: 301;
    box-shadow: var(--shadow-lg);
}

.confirm-modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.confirm-modal p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.confirm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

.toast-success { background: #00894D; }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }

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

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

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

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 15px;
}

/* ===================== MESSAGES LIST ===================== */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #F0F2F5;
}

.message-item .message-sender {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.message-item .message-text {
    font-size: 14px;
    color: var(--text-color);
    word-break: break-word;
}

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

/* ===================== TEXT TRUNCATE ===================== */
.truncate {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tables-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .sidebar-overlay.active {
        display: block;
    }

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

    .hamburger {
        display: block;
    }

    .topbar {
        padding: 0 16px;
    }

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

    .topbar-logout span {
        display: none;
    }

    .content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .slide-panel {
        width: 100%;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }

    .stat-card {
        padding: 16px;
    }

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

    table {
        font-size: 12px;
    }

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