/* DataTalk Admin Panel — Teal/Emerald Theme (matching smdplus/eIM design language) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Dark mode (default) ── */
:root, [data-theme="dark"] {
    --bg: #0f172a;
    --bg-secondary: #131c2e;
    --bg-card: #1e293b;
    --bg-card-hover: #263548;
    --bg-input: #1e293b;
    --bg-input-focus: #263548;
    --bg-hover: #334155;
    --border: #334155;
    --border-light: rgba(51, 65, 85, 0.5);
    --ring: rgba(15, 23, 42, 0.05);
    --text: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --primary: #14b8a6;
    --primary-hover: #0d9488;
    --primary-light: rgba(20, 184, 166, 0.15);
    --secondary: #10b981;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --danger: #f43f5e;
    --danger-light: rgba(244, 63, 94, 0.12);
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.12);
    --info: #06b6d4;
    --info-light: rgba(6, 182, 212, 0.12);
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --header-bg: rgba(30, 41, 59, 0.8);
    --header-border: rgba(51, 65, 85, 0.6);
    --modal-backdrop: rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #14b8a6, #10b981);
    --gradient-primary-hover: linear-gradient(135deg, #0d9488, #059669);
    --gradient-accent: linear-gradient(135deg, #06b6d4, #14b8a6);
    --logo-filter: none;
    --avatar-gradient: linear-gradient(135deg, #14b8a6, #10b981);
}

/* ── Light mode ── */
[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f1f5f9;
    --bg-input-focus: #ffffff;
    --bg-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.6);
    --ring: rgba(15, 23, 42, 0.05);
    --text: #1e293b;
    --text-secondary: #334155;
    --text-dim: #64748b;
    --text-muted: #94a3b8;
    --primary: #0d9488;
    --primary-hover: #0f766e;
    --primary-light: rgba(13, 148, 136, 0.08);
    --secondary: #059669;
    --accent: #0891b2;
    --accent-light: #06b6d4;
    --danger: #e11d48;
    --danger-light: rgba(225, 29, 72, 0.06);
    --success: #059669;
    --success-light: rgba(5, 150, 105, 0.06);
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.06);
    --info: #0891b2;
    --info-light: rgba(8, 145, 178, 0.06);
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    --header-bg: rgba(255, 255, 255, 0.8);
    --header-border: rgba(226, 232, 240, 0.6);
    --modal-backdrop: rgba(100, 116, 139, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #0d9488, #059669);
    --gradient-primary-hover: linear-gradient(135deg, #0f766e, #047857);
    --gradient-accent: linear-gradient(135deg, #0891b2, #0d9488);
    --logo-filter: brightness(0.85) saturate(1.2);
    --avatar-gradient: linear-gradient(135deg, #0d9488, #059669);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    transition: background 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }

/* ── Layout ── */
.layout { display: flex; min-height: 100vh; }

/* ── Sidebar (256px, always dark) ── */
.sidebar {
    width: 256px;
    background: var(--sidebar-bg);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 30;
    border-right: 1px solid rgba(51, 65, 85, 0.5);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.sidebar-header .logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #14b8a6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.sidebar-nav .nav-section {
    padding: 0 12px;
    margin-bottom: 4px;
}

.sidebar-nav .nav-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 8px 12px 6px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin: 1px 12px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
    color: #e2e8f0;
    background: rgba(51, 65, 85, 0.5);
}

.sidebar-nav a.active {
    color: #e2e8f0;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(16, 185, 129, 0.1));
    border-left-color: #14b8a6;
}

.sidebar-nav a .nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-nav a.active .nav-icon,
.sidebar-nav a:hover .nav-icon {
    opacity: 1;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}

.sidebar-footer .user-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sidebar-footer .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #14b8a6, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-footer .user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-footer .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .user-role {
    font-size: 11px;
    color: #64748b;
    text-transform: capitalize;
}

.sidebar-footer .footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-footer .logout-link {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s;
}
.sidebar-footer .logout-link:hover { color: #f43f5e; }

.sidebar-footer .version {
    font-size: 11px;
    color: #475569;
}

/* ── Top Header ── */
.top-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-header .page-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.top-header .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Enterprise Switcher ── */
.ent-switcher {
    position: relative;
}

.ent-switcher-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.ent-switcher-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text);
}

.ent-switcher-btn .ent-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.ent-switcher-btn .ent-chevron {
    width: 12px;
    height: 12px;
    opacity: 0.5;
    transition: transform 0.15s;
}

.ent-switcher.open .ent-chevron {
    transform: rotate(180deg);
}

.ent-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    z-index: 50;
    padding: 4px;
    max-height: 320px;
    overflow-y: auto;
}

.ent-switcher.open .ent-dropdown {
    display: block;
}

.ent-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.1s;
    text-align: left;
    font-family: inherit;
}

.ent-dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.ent-dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.ent-dropdown-item .ent-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}

.ent-dropdown-item.active .ent-dot {
    background: var(--primary);
}

.ent-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 8px;
}

/* Theme toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-dim);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.theme-toggle:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--primary);
}

/* ── Sidebar collapsed ── */
.layout.sidebar-collapsed .sidebar {
    width: 0;
    overflow: hidden;
    border-right: none;
}

.layout.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* ── Main Content ── */
.main-content {
    margin-left: 256px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

.content-area {
    flex: 1;
    padding: 24px;
}

/* ── Page header ── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding: 20px;
    margin-bottom: 20px;
    transition: background 0.25s, border-color 0.25s;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

/* ── Stats Grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.15s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.stat-card .stat-icon.teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(16, 185, 129, 0.15));
    color: #14b8a6;
}

.stat-card .stat-icon.cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(20, 184, 166, 0.15));
    color: #06b6d4;
}

.stat-card .stat-icon.emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.15));
    color: #10b981;
}

.stat-card .stat-icon.amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    color: #f59e0b;
}

.stat-card .stat-info { flex: 1; }

.stat-card .stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Tables ── */
table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
}

thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child { border-radius: 0 8px 0 0; }

tbody td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

tbody tr {
    transition: background 0.1s;
}

tbody tr:hover {
    background: var(--bg-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ── Buttons ── */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.9; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { opacity: 0.9; }

.btn-warning { background: var(--warning); color: #1e293b; }
.btn-warning:hover { opacity: 0.9; }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.btn-icon:hover {
    background: var(--bg-hover);
    color: var(--text);
}

/* ── Forms ── */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--modal-backdrop);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    width: 500px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal h2 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.15);
}
.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.15);
}
.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
    border-color: rgba(244, 63, 94, 0.15);
}
.badge-primary {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(20, 184, 166, 0.15);
}
.badge-info {
    background: var(--info-light);
    color: var(--info);
    border-color: rgba(6, 182, 212, 0.15);
}

/* ── URL display ── */
.url-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--accent-light);
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.url-box .copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    font-size: 13px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.url-box .copy-btn:hover { color: var(--primary); }

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    animation: toastIn 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }

@keyframes toastIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ── Login Page ── */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    position: relative;
    padding: 20px;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    filter: var(--logo-filter);
}

.login-logo .brand-name {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #14b8a6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.login-logo .brand-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}

.login-card .btn-primary {
    width: 100%;
    padding: 11px;
    font-size: 15px;
    margin-top: 8px;
}

.login-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

/* ── Connector Info Cards ── */
.connector-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.connector-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.15s;
}

.connector-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.connector-card .cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.connector-card .cc-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.connector-card .cc-meta {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.connector-card .cc-urls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.connector-card .cc-url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.connector-card .cc-url-label {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 50px;
}

.connector-card .cc-url-value {
    color: var(--accent-light);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-dim);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 16px;
}

/* ── Code ── */
code {
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--accent-light);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar { width: 0; overflow: hidden; }
    .main-content { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .login-card { padding: 28px 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
