/* ═══════════════════════════════════════════════════════════════
   NOVICORE BC — Admin Theme
   Modern dark sidebar + light content area
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 68px;
    --topbar-height: 56px;
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    --sidebar-active: rgba(59, 130, 246, 0.2);
    --sidebar-hover: rgba(148, 163, 184, 0.12);
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --sidebar-accent: #3b82f6;
    --sidebar-section: #475569;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --blue: #3b82f6;
    --green: #10b981;
    --orange: #f59e0b;
    --red: #ef4444;
    --purple: #8b5cf6;
    --teal: #14b8a6;
    --slate: #64748b;
    --pink: #ec4899;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
.hold-transition {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f1f5f9;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.wrapper {
    min-height: 100vh;
    display: flex;
}

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

/* Scrollbar custom */
.sidebar {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 12px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,0.25) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.25); border-radius: 10px; }

/* Brand */
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    min-height: var(--topbar-height);
}
.brand-logo {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--sidebar-accent) 0%, #6366f1 100%);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}
.brand-text {
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
}

/* Sidebar Nav */
.nav-sidebar {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-sidebar .nav-item {
    list-style: none;
}

.nav-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}
.nav-sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    color: #e2e8f0;
}
.nav-sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text-active);
}
.nav-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--sidebar-accent);
    border-radius: 0 4px 4px 0;
}

/* Nav icons */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.7;
}
.nav-sidebar .nav-link:hover .nav-icon,
.nav-sidebar .nav-link.active .nav-icon {
    opacity: 1;
}
.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Section labels */
.sidebar-section-label {
    padding: 20px 14px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sidebar-section);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(71,85,105,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--topbar-height);
    padding: 0 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

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

.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.sidebar-toggle:hover {
    background: var(--border-light);
    color: var(--text-primary);
}
.sidebar-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar-breadcrumb {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.topbar-env {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}
.topbar-user:hover {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.topbar-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sidebar-accent), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Remove old navbar-nav in topbar */
.main-header .navbar-nav { display: none; }

/* ═══════════════════════════════════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════════════════════════════════ */
.content-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    flex: 1;
    transition: margin-left var(--transition);
}

.content {
    padding: 24px;
    max-width: 1400px;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════════ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.dashboard-section {
    margin-bottom: 28px;
}
.dashboard-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.dashboard-section__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
}
.dashboard-section__icon svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dashboard-section__icon--blue    { background: #dbeafe; color: #2563eb; }
.dashboard-section__icon--orange  { background: #ffedd5; color: #ea580c; }
.dashboard-section__icon--green   { background: #dcfce7; color: #16a34a; }
.dashboard-section__icon--purple  { background: #ede9fe; color: #7c3aed; }

.dashboard-section__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   STATS GRID & CARDS
   ═══════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 0;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    border-top: none;
    box-shadow: var(--shadow-sm);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Color accent bar on left */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    background: var(--stat-accent, #cbd5e1);
}

.stat-card--blue   { --stat-accent: var(--blue); }
.stat-card--green  { --stat-accent: var(--green); }
.stat-card--orange { --stat-accent: var(--orange); }
.stat-card--red    { --stat-accent: var(--red); }
.stat-card--purple { --stat-accent: var(--purple); }
.stat-card--teal   { --stat-accent: var(--teal); }
.stat-card--slate  { --stat-accent: var(--slate); }
.stat-card--pink   { --stat-accent: var(--pink); }

.stat-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.stat-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-card__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.stat-card__icon--blue   { background: #dbeafe; color: #2563eb; }
.stat-card__icon--green  { background: #dcfce7; color: #16a34a; }
.stat-card__icon--orange { background: #ffedd5; color: #ea580c; }
.stat-card__icon--red    { background: #fee2e2; color: #dc2626; }
.stat-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.stat-card__icon--teal   { background: #ccfbf1; color: #0d9488; }
.stat-card__icon--slate  { background: #f1f5f9; color: #475569; }
.stat-card__icon--pink   { background: #fce7f3; color: #db2777; }

.stat-card__label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.2;
}
.stat-card__value {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-card__sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION BOX (sync, tables)
   ═══════════════════════════════════════════════════════════════ */
.section-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.section-box__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.section-box__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-box__title-icon {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}
.section-box__title-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.section-box__body { padding: 20px; }

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.card-body { padding: 18px; }
.card-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    background: var(--surface-alt);
}
.card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}
.card-outline.card-primary   { border-top: 3px solid var(--blue); }
.card-outline.card-secondary { border-top: 3px solid var(--slate); }
.card-outline.card-success   { border-top: 3px solid var(--green); }

/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */
.table-responsive { overflow: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}
.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 13.5px;
}
.table thead th {
    background: var(--surface-alt);
    text-align: left;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
}
.table tbody tr {
    transition: background var(--transition);
}
.table-hover tbody tr:hover {
    background: #f8fafc;
}
/* Zebra striping */
.table tbody tr:nth-child(even) {
    background: rgba(248,250,252,0.5);
}
.table-sm th,
.table-sm td { padding: 10px 12px; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-xs { padding: 4px 8px; font-size: 11.5px; }

.btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 1px 3px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

.btn-success {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    box-shadow: 0 1px 3px rgba(16,185,129,0.3);
}
.btn-success:hover {
    background: #059669;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16,185,129,0.3);
}

.btn-danger {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }

.btn-warning {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}
.btn-warning:hover { background: #d97706; border-color: #d97706; }

.btn-outline-primary {
    color: var(--blue);
    border-color: #bfdbfe;
    background: transparent;
}
.btn-outline-primary:hover { background: #eff6ff; border-color: var(--blue); }

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
    background: transparent;
}
.btn-outline-secondary:hover { background: var(--surface-alt); border-color: #cbd5e1; }

.btn-outline-warning {
    color: #92400e;
    border-color: #fde68a;
    background: transparent;
}
.btn-outline-warning:hover { background: #fffbeb; border-color: var(--orange); }

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-success   { background: #dcfce7; color: #166534; }
.badge-warning   { background: #fef3c7; color: #92400e; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f1f5f9; color: #475569; }
.badge-purple    { background: #ede9fe; color: #5b21b6; }
.badge-teal      { background: #ccfbf1; color: #0f766e; }
.badge-open      { background: #dcfce7; color: #166534; }
.badge-closed    { background: #f1f5f9; color: #475569; }
.badge-result    { background: #dbeafe; color: #1e40af; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.form-control {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-sizing: border-box;
    font-size: 14px;
    transition: all var(--transition);
    color: var(--text-primary);
}
.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.bg-dark       { background: #0f172a; }
.text-light    { color: #f8fafc; }
.rounded       { border-radius: var(--radius); }
.p-0           { padding: 0; }
.p-3           { padding: 12px; }
.py-3          { padding-top: 12px; padding-bottom: 12px; }
.pt-3          { padding-top: 12px; }
.mb-0          { margin-bottom: 0; }
.mt-2          { margin-top: 8px; }
.mb-2          { margin-bottom: 8px; }
.border-bottom { border-bottom: 1px solid var(--border); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.d-flex        { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2         { gap: 8px; }

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}
.col-12, .col-md-2, .col-md-3, .col-md-5, .col-md-7 {
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
    width: 100%;
}
@media (min-width: 768px) {
    .col-md-2 { width: 16.6667%; }
    .col-md-3 { width: 25%; }
    .col-md-5 { width: 41.6667%; }
    .col-md-7 { width: 58.3333%; }
}

/* ═══════════════════════════════════════════════════════════════
   SYNC BUTTONS GROUP
   ═══════════════════════════════════════════════════════════════ */
.sync-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sync-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   RUNS TABLE — enhanced
   ═══════════════════════════════════════════════════════════════ */
.run-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.run-count {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   USERS / FILTERS (preserve existing)
   ═══════════════════════════════════════════════════════════════ */
.users-filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: 14px;
}
.filter-group {
    display: flex;
    flex-direction: column;
}

.user-row--inactive td { opacity: 0.55; }
.user-row--inactive:hover td { opacity: 0.8; }

.user-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}
@media (max-width: 900px) { .user-edit-grid { grid-template-columns: 1fr; } }

.user-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
}

.current-sub-card {
    border-radius: var(--radius);
    padding: 14px 16px;
    border: 1px solid var(--border);
}
.current-sub-card--active {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.current-sub-card--none {
    background: var(--surface-alt);
    border-color: var(--border);
}
.current-sub-card__plan {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.current-sub-card__meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* Old nav-icon-dot — keep for compat but hide */
.nav-icon-dot { display: none; }

/* ═══════════════════════════════════════════════════════════════
   QUICK ACTIONS BAR (dashboard header)
   ═══════════════════════════════════════════════════════════════ */
.quick-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR COLLAPSED STATE
   ═══════════════════════════════════════════════════════════════ */
.wrapper.sidebar-collapsed .main-sidebar {
    width: var(--sidebar-collapsed-width);
}
.wrapper.sidebar-collapsed .brand-text,
.wrapper.sidebar-collapsed .sidebar-section-label,
.wrapper.sidebar-collapsed .nav-sidebar .nav-link p {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 0.15s;
}
.wrapper.sidebar-collapsed .nav-sidebar .nav-link {
    justify-content: center;
    padding: 10px;
}
.wrapper.sidebar-collapsed .sidebar-section-label::after {
    display: none;
}
.wrapper.sidebar-collapsed .sidebar-section-label {
    padding: 12px 0 4px;
    justify-content: center;
    height: 8px;
    overflow: hidden;
}
.wrapper.sidebar-collapsed .brand-link {
    justify-content: center;
    padding: 16px 8px;
}
.wrapper.sidebar-collapsed .content-wrapper {
    margin-left: var(--sidebar-collapsed-width);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR OVERLAY (mobile)
   ═══════════════════════════════════════════════════════════════ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .main-sidebar {
        transform: translateX(-100%);
    }
    .wrapper.sidebar-open .main-sidebar {
        transform: translateX(0);
    }
    .wrapper.sidebar-collapsed .main-sidebar {
        width: var(--sidebar-width);
        transform: translateX(-100%);
    }
    .wrapper.sidebar-collapsed.sidebar-open .main-sidebar {
        transform: translateX(0);
    }
    .content-wrapper,
    .wrapper.sidebar-collapsed .content-wrapper {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    .content { padding: 16px; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .quick-actions { width: 100%; }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card { padding: 14px; }
    .stat-card__value { font-size: 24px; }
    .sync-actions { flex-direction: column; }
    .sync-actions .btn { width: 100%; }
    .topbar-breadcrumb { display: none; }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   COMMAND OUTPUT (pre)
   ═══════════════════════════════════════════════════════════════ */
pre.command-output {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px;
    border-radius: var(--radius);
    font-size: 12.5px;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 14px;
}
.empty-state svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    margin-bottom: 10px;
    opacity: 0.5;
}
