/* RAD Repairs Documentation - Comprehensive Styles */

/* ========================================
   CSS Variables - Light Theme (Default)
   ======================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;

    --background: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --sidebar-width: 280px;
    --topbar-height: 60px;
    --content-max-width: 900px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ========================================
   Dark Theme
   ======================================== */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #1e3a5f;

    --background: #0f172a;
    --surface: #1e293b;
    --surface-hover: #334155;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #1e293b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

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

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

/* ========================================
   Topbar
   ======================================== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.topbar .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.topbar .logo img {
    height: 32px;
    width: auto;
}

.docs-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .docs-badge {
    background: var(--primary-light);
    color: var(--primary-color);
}

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

.theme-toggle {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.theme-toggle:hover {
    background: var(--border);
}

.back-to-app {
    background: var(--primary-color);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.back-to-app:hover {
    background: var(--primary-dark);
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--topbar-height);
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 20px 0;
    z-index: 900;
}

.search-box {
    padding: 0 16px 20px;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--background);
    color: var(--text);
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.nav-section {
    margin-bottom: 8px;
}

.nav-title {
    padding: 12px 20px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--surface-hover);
    color: var(--text);
    text-decoration: none;
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-icon img {
    height: 1.25rem;
    width: 1.25rem;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Fluent Emoji Icons */
.fluent-icon { height: 1em; width: 1em; vertical-align: -0.125em; display: inline-block; flex-shrink: 0; }

/* ========================================
   Main Content
   ======================================== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--topbar-height);
    padding: 40px;
    min-height: calc(100vh - var(--topbar-height));
}

.content-wrapper {
    max-width: var(--content-max-width);
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

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

.breadcrumb span {
    color: var(--text);
}

/* ========================================
   Typography
   ======================================== */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 48px 0 20px;
    color: var(--text);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text);
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text);
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

ul, ol {
    margin: 16px 0;
    padding-left: 24px;
}

li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

code {
    background: var(--surface-hover);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.875em;
    color: var(--primary-color);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 48px;
    border-radius: var(--radius-xl);
    margin-bottom: 48px;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Screenshots with Theme Toggle
   ======================================== */
.screenshot-container {
    margin: 32px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.screenshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.screenshot-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.screenshot-theme-toggle {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.screenshot-theme-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.screenshot-theme-btn.active {
    background: var(--primary-color);
    color: white;
}

.screenshot-theme-btn:hover:not(.active) {
    background: var(--surface-hover);
}

.screenshot-wrapper {
    position: relative;
    background: var(--background);
}

.screenshot {
    width: 100%;
    display: block;
    transition: opacity 0.3s;
}

.screenshot.hidden {
    display: none;
}

.screenshot-caption {
    padding: 12px 16px;
    background: var(--background);
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   Feature Grid
   ======================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Small Feature Cards */
.feature-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.feature-card-small {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}

.feature-card-small h4 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: var(--text);
}

.feature-card-small p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ========================================
   Info Boxes
   ======================================== */
.info-box {
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    border-left-width: 4px;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 24px 0;
}

.info-box strong {
    color: var(--primary-color);
}

.info-box p {
    margin: 0;
    color: var(--text);
}

.info-box.warning {
    background: #fef3c7;
    border-color: var(--warning-color);
}

[data-theme="dark"] .info-box.warning {
    background: #422006;
}

.info-box.warning strong {
    color: var(--warning-color);
}

.info-box.success {
    background: #d1fae5;
    border-color: var(--success-color);
}

[data-theme="dark"] .info-box.success {
    background: #064e3b;
}

.info-box.success strong {
    color: var(--success-color);
}

.info-box.danger {
    background: #fee2e2;
    border-color: var(--danger-color);
}

[data-theme="dark"] .info-box.danger {
    background: #450a0a;
}

.info-box.danger strong {
    color: var(--danger-color);
}

/* ========================================
   Steps
   ======================================== */
.steps {
    margin: 32px 0;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content h4 {
    margin: 0 0 8px;
    color: var(--text);
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* ========================================
   Tables
   ======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

thead {
    background: var(--background);
}

th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

tr:hover td {
    background: var(--surface-hover);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-item h3,
.faq-item h4 {
    margin: 0;
    padding: 16px 20px;
    background: var(--background);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    padding: 16px 20px;
    color: var(--text-secondary);
}

.faq-item ul {
    margin: 0;
    padding: 0 20px 16px 44px;
}

.faq-item li {
    margin-bottom: 6px;
}

/* ========================================
   Quick Start Box
   ======================================== */
.quick-start {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin: 32px 0;
}

.quick-start h3 {
    margin: 0 0 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-start ol {
    margin: 0;
    padding-left: 20px;
}

.quick-start li {
    padding: 10px 0;
    color: var(--text-secondary);
}

/* ========================================
   Related Pages
   ======================================== */
.related-pages {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}

.related-pages h3 {
    margin: 0 0 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.related-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.related-link:hover {
    border-color: var(--primary-color);
    background: var(--surface-hover);
    text-decoration: none;
}

.related-link .icon {
    font-size: 1.25rem;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    text-decoration: none;
}

/* ========================================
   Help Box
   ======================================== */
.help-box {
    background: linear-gradient(135deg, var(--primary-light), var(--surface));
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 48px 0;
    text-align: center;
}

[data-theme="dark"] .help-box {
    background: linear-gradient(135deg, var(--primary-light), var(--surface));
}

.help-box h3 {
    margin: 0 0 12px;
    color: var(--text);
}

.help-box p {
    margin: 0 0 20px;
    color: var(--text-secondary);
}

/* ========================================
   Footer
   ======================================== */
.doc-footer {
    margin-top: 64px;
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   Admin Section Cards
   ======================================== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.admin-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.admin-card .card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.admin-card h4 {
    margin: 0 0 8px;
    color: var(--text);
}

.admin-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ========================================
   Mobile Menu Button (Hamburger)
   ======================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-menu-btn:hover {
    background: var(--surface-hover);
}

.mobile-menu-btn .hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: all 0.3s;
}

.mobile-menu-btn .hamburger::before,
.mobile-menu-btn .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.mobile-menu-btn .hamburger::before {
    top: -6px;
}

.mobile-menu-btn .hamburger::after {
    top: 6px;
}

/* Hamburger animation when menu is open */
.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .mobile-menu-overlay {
        display: block;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        pointer-events: auto;
    }

    .topbar {
        padding: 0 12px;
        gap: 8px;
    }

    .topbar .logo {
        font-size: 1rem;
        gap: 8px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .topbar .docs-badge {
        display: none;
    }

    .topbar-actions {
        gap: 8px;
        margin-left: 0;
    }

    .topbar-actions .back-to-app {
        display: none;
    }

    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: var(--sidebar-width);
        transition: transform 0.3s ease;
        z-index: 999;
    }

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

    .main-content {
        margin-left: 0;
        padding: 24px 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 40px 24px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .feature-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .back-to-app {
        display: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .topbar,
    .sidebar,
    .theme-toggle,
    .screenshot-theme-toggle {
        display: none !important;
    }

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

    .screenshot.dark {
        display: none !important;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }

/* ========================================
   Section Anchors
   ======================================== */
section[id] {
    scroll-margin-top: 80px;
}

section[id]:target {
    animation: highlight-section 2s ease-out;
}

@keyframes highlight-section {
    from {
        background: var(--primary-light);
        border-radius: var(--radius-md);
    }
    to {
        background: transparent;
    }
}

/* ========================================
   Sub-Navigation (Nested under active nav item)
   ======================================== */
.sub-nav {
    display: none;
    padding: 4px 0 8px 0;
    margin-left: 20px;
    border-left: 1px solid var(--border);
}

.nav-item.active + .sub-nav {
    display: block;
}

.sub-nav-item {
    display: block;
    padding: 4px 12px 4px 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 2px solid transparent;
    margin-left: -1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-nav-item:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    text-decoration: none;
}

.sub-nav-item.active {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   Secondary Sidebar (Admin Settings)
   ======================================== */
.has-secondary-sidebar .sidebar {
    width: 220px;
}

.has-secondary-sidebar .main-content {
    margin-left: 460px;
}

.secondary-sidebar {
    position: fixed;
    left: 220px;
    top: var(--topbar-height);
    bottom: 0;
    width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    z-index: 850;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .secondary-sidebar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

.secondary-sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--primary-light);
}

.secondary-sidebar-header h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.section-shortcuts {
    padding: 8px 0;
}

.shortcut-category {
    padding: 12px 20px 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.shortcut-category:first-child {
    padding-top: 8px;
}

.shortcut-link {
    display: block;
    padding: 8px 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.shortcut-link:hover {
    background: var(--surface-hover);
    color: var(--text);
    text-decoration: none;
}

.shortcut-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

/* Responsive for secondary sidebar */
@media (max-width: 1200px) {
    .has-secondary-sidebar .sidebar {
        width: 200px;
    }
    .secondary-sidebar {
        left: 200px;
        width: 220px;
    }
    .has-secondary-sidebar .main-content {
        margin-left: 420px;
    }
}

@media (max-width: 1024px) {
    .secondary-sidebar {
        display: none;
    }
    .has-secondary-sidebar .sidebar {
        width: var(--sidebar-width);
    }
    .has-secondary-sidebar .main-content {
        margin-left: var(--sidebar-width);
    }
}

@media (max-width: 768px) {
    .has-secondary-sidebar .main-content {
        margin-left: 0;
    }

    /* Show secondary sidebar in mobile menu */
    .secondary-sidebar {
        display: block;
        position: fixed;
        left: 0;
        top: var(--topbar-height);
        width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: none;
    }

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

    /* Mobile menu tabs for switching between sidebars */
    .mobile-menu-tabs {
        display: none;
    }

    .has-secondary-sidebar .mobile-menu-tabs {
        display: flex;
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        width: var(--sidebar-width);
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .has-secondary-sidebar .mobile-menu-tabs.open {
        transform: translateX(0);
    }

    .mobile-menu-tab {
        flex: 1;
        padding: 12px 8px;
        background: var(--background);
        border: none;
        border-bottom: 2px solid transparent;
        cursor: pointer;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-muted);
        transition: all 0.2s;
    }

    .mobile-menu-tab.active {
        background: var(--surface);
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
    }

    /* Admin tab - blue background for visibility */
    .mobile-menu-tab[data-tab="admin"] {
        background: var(--primary-color);
        color: white;
    }

    .mobile-menu-tab[data-tab="admin"].active {
        background: var(--primary-color);
        color: white;
        border-bottom-color: white;
    }

    .has-secondary-sidebar .sidebar,
    .has-secondary-sidebar .secondary-sidebar {
        top: calc(var(--topbar-height) + 44px);
    }

    /* Hide non-active sidebar content on mobile */
    .has-secondary-sidebar .sidebar:not(.open),
    .has-secondary-sidebar .secondary-sidebar:not(.open) {
        visibility: hidden;
    }

    .has-secondary-sidebar .sidebar.open,
    .has-secondary-sidebar .secondary-sidebar.open {
        visibility: visible;
    }
}
