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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: #eff6ff;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --header-height: 0px;
    --sidebar-width: 240px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.brand {
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    user-select: none;
}

.search-container {
    flex: 1;
    max-width: 580px;
    margin: 0 40px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    padding: 8px 16px 8px 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: all 0.2s ease;
    outline: none;
}

.search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #dbeafe;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    user-select: none;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== APP LAYOUT ===== */
.app-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ===== SIDEBAR ===== */
.course-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
    border-right: 1px solid #1f1f1f;
    display: flex;
    flex-direction: column;
    z-index: 900;
}

/* Custom Scrollbar for Nav Menu */
.nav-menu::-webkit-scrollbar {
    width: 5px;
}
.nav-menu::-webkit-scrollbar-track {
    background: transparent;
}
.nav-menu::-webkit-scrollbar-thumb {
    background: #262626;
    border-radius: 99px;
}
.nav-menu::-webkit-scrollbar-thumb:hover {
    background: #404040;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #1f1f1f;
    flex-shrink: 0;
}

.sidebar-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.025em;
    user-select: none;
}

.sidebar-brand .brand-icon {
    font-size: 1.15rem;
    color: #6366f1; /* Brand Indigo */
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 24px;
}

.nav-group {
    display: flex;
    flex-direction: column;
}

.nav-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e5e5e5;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease;
}

.nav-group-header:hover {
    background-color: #1a1a1a;
}

.nav-group-header span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.nav-group-header .chevron-icon {
    font-size: 0.75rem;
    color: #a3a3a3;
    transition: transform 0.2s ease;
}



.nav-group.collapsed .nav-group-items {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-group-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 2px 0;
    max-height: 300px;
    overflow: hidden;
    opacity: 1;
    transition: max-height 0.35s ease-in-out, opacity 0.3s ease-in-out, padding 0.35s ease-in-out;
}

.nav-group:not(.collapsed) .nav-group-header .chevron-icon {
    transform: rotate(90deg);
}

.nav-sub-item {
    display: block;
    padding: 8px 24px 8px 36px;
    font-size: 0.825rem;
    font-weight: 500;
    color: #a3a3a3;
    text-decoration: none;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-sub-item:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.nav-sub-item.active {
    background-color: rgba(99, 102, 241, 0.12);
    color: #ffffff;
    border-left-color: #6366f1;
    font-weight: 600;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #1f1f1f;
    padding-top: 12px;
}

.sidebar-footer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #a3a3a3;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.sidebar-footer-item:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.sidebar-footer-item i {
    font-size: 0.95rem;
    color: #737373;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 84px 32px 40px;
    background-color: var(--bg-primary);
    overflow-y: auto;
}

.content-container {
    max-width: 100%;
    margin: 0;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.15s ease;
    font-weight: 500;
}

.breadcrumb-link:hover {
    color: var(--accent-blue-hover);
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
    font-size: 0.75rem;
}

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

/* ===== ARTICLE STYLING ===== */
.article-header {
    margin-bottom: 24px;
}

.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    letter-spacing: -0.02em;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.article-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-paragraph {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.article-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 12px;
    margin-bottom: -8px;
    letter-spacing: -0.015em;
}

.article-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 6px;
}

.article-list-item {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.article-list-item::before {
    content: "•";
    position: absolute;
    left: 4px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    top: -2px;
}

.article-list-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== NOTE BOX ===== */
.note-box {
    display: flex;
    gap: 16px;
    background-color: var(--accent-blue-light);
    border-left: 3px solid var(--accent-blue);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 16px;
}

.note-icon-wrapper {
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.note-icon {
    font-size: 1.1rem;
    color: var(--accent-blue);
}

.note-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.note-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.note-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .course-sidebar {
        width: 200px;
    }
    .main-content {
        margin-left: 200px;
        padding: 84px 24px 32px;
    }
    .content-header {
        left: 200px;
        width: calc(100% - 200px);
        padding: 0 24px;
    }
    :root {
        --sidebar-width: 200px;
    }
}

@media (max-width: 768px) {
    .course-sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
        padding: 84px 16px 24px;
    }
    .content-header {
        left: 0;
        width: 100%;
        padding: 0 16px;
    }
}

.content-header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: 64px;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 850;
    transition: all 0.2s ease;
}

.content-header .breadcrumbs {
    margin-bottom: 0;
}

.content-search {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.content-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.content-search .search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 0.825rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    outline: none;
    transition: all 0.2s ease;
}

.content-search .search-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
}

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-dropdown.show {
    display: block;
}

.search-item {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
    text-decoration: none;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover, .search-item.highlighted {
    background-color: var(--bg-secondary);
}

.search-item-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-category {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

.search-no-results {
    padding: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===== CUSTOM STYLE FOR TABLES ===== */
.hub-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.hub-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.hub-table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
}

.hub-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

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

.hub-table tr:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* ===== CUSTOM VISUAL CHARTS ===== */
.chart-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-bar-label {
    width: 140px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-bar-wrapper {
    flex: 1;
    background-color: var(--border-color);
    height: 16px;
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
    width: 100%; /* controlled in inline styles */
}

.chart-bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    width: 50px;
}

/* Pipeline timeline chart */
.pipeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 20px 0;
    margin: 24px 0 44px;
}

.pipeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

.pipeline-step {
    position: relative;
    z-index: 2;
    background-color: var(--bg-primary);
    border: 3px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.pipeline-step.active {
    border-color: #6366f1;
    color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.pipeline-step-label {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: center;
}


        /* Custom Styles for Server Monitoring UI */
        .grid-2-col {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            margin-bottom: 40px;
        }
        
        .card-box {
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.02);
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }

        .card-icon {
            font-size: 1.25rem;
            color: #10b981; 
        }
        
        .card-icon.blue {
            color: var(--accent-blue);
        }

        .card-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .check-list {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .check-list li {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .check-list li i {
            color: #10b981;
            margin-top: 3px;
        }

        .monitor-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 12px;
            margin-top: 20px;
        }

        .monitor-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            text-align: center;
        }
        
        .monitor-item i {
            font-size: 1.5rem;
            color: var(--text-secondary);
        }

        .monitor-item span {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Architecture Diagram */
        .architecture-section {
            margin-bottom: 40px;
        }

        .architecture-diagram {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 40px 24px;
            margin-top: 16px;
            position: relative;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .arch-node {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            padding: 16px;
            border-radius: 8px;
            min-width: 140px;
            z-index: 2;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }
        
        .arch-node.transparent {
            background: transparent;
            border: none;
            box-shadow: none;
            padding: 0;
            min-width: auto;
        }

        .arch-node i {
            font-size: 1.8rem;
            color: var(--accent-blue);
        }

        .arch-node-title {
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .arch-node-desc {
            font-size: 0.7rem;
            color: var(--text-muted);
        }

        .arch-arrow {
            color: var(--text-muted);
            font-size: 1rem;
            z-index: 2;
        }
        
        .monitoring-agent-node {
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--accent-blue-light);
            border: 1px solid var(--accent-blue);
            padding: 12px 24px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 3;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .monitoring-agent-node i {
            color: var(--accent-blue);
            font-size: 1.25rem;
        }

        /* Metrics Cards */
        .metrics-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 16px;
            margin-top: 16px;
            margin-bottom: 40px;
        }

        .metric-card {
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 16px;
        }

        .metric-title {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .metric-desc {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-bottom: 12px;
            min-height: 34px;
        }

        .metric-threshold {
            font-size: 0.75rem;
            color: var(--text-primary);
            font-weight: 600;
            margin-bottom: 16px;
        }
        
        .mock-chart {
            height: 30px;
            width: 100%;
            display: flex;
            align-items: flex-end;
            gap: 3px;
        }
        
        .mock-chart .bar {
            flex: 1;
            background: var(--accent-blue);
            border-radius: 2px 2px 0 0;
            opacity: 0.8;
        }

        .mock-chart.green .bar { background: #10b981; }
        .mock-chart.purple .bar { background: #8b5cf6; }
        .mock-chart.orange .bar { background: #f59e0b; }
        .mock-chart.red .bar { background: #ef4444; }

        /* Tables */
        .table-responsive {
            width: 100%;
            overflow-x: auto;
        }

        .styled-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 16px;
            margin-bottom: 40px;
            font-size: 0.85rem;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            overflow: hidden;
        }
        
        .styled-table th {
            background: var(--bg-secondary);
            padding: 14px 16px;
            text-align: left;
            font-weight: 700;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-color);
        }
        
        .styled-table td {
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-color);
            color: var(--text-secondary);
            vertical-align: middle;
        }

        .styled-table tr:last-child td {
            border-bottom: none;
        }

        .cat-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            color: var(--accent-blue);
            font-weight: 600;
            font-size: 0.75rem;
        }
        
        .cat-icon i {
            font-size: 1.5rem;
        }
        
        .cat-icon.green { color: #10b981; }
        .cat-icon.purple { color: #8b5cf6; }
        .cat-icon.orange { color: #f59e0b; }

        /* Real-Time Charts Grid */
        .realtime-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-top: 16px;
            margin-bottom: 40px;
        }
        
        .realtime-card {
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            padding: 20px;
        }
        
        .realtime-title {
            font-size: 0.85rem;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .mock-line-chart {
            height: 80px;
            width: 100%;
            border-bottom: 1px solid var(--border-color);
            border-left: 1px solid var(--border-color);
            position: relative;
            display: flex;
            align-items: flex-end;
            padding-left: 4px;
            gap: 4px;
        }

        .mock-line-chart .line-bar {
            flex: 1;
            background: var(--accent-blue);
            opacity: 0.6;
            border-radius: 2px 2px 0 0;
            position: relative;
        }

        .mock-line-chart .line-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--accent-blue);
            border-radius: 2px;
        }

        .mock-line-chart.green .line-bar { background: rgba(16,185,129,0.3); }
        .mock-line-chart.green .line-bar::after { background: #10b981; }

        .mock-line-chart.purple .line-bar { background: rgba(139,92,246,0.3); }
        .mock-line-chart.purple .line-bar::after { background: #8b5cf6; }

        .mock-line-chart.orange .line-bar { background: rgba(245,158,11,0.3); }
        .mock-line-chart.orange .line-bar::after { background: #f59e0b; }

        .chart-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.65rem;
            color: var(--text-muted);
            margin-top: 8px;
        }
        
        .chart-legend {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 6px;
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 16px;
        }
        .chart-legend span {
            display: inline-block;
            width: 12px;
            height: 3px;
            background: var(--accent-blue);
        }
        .chart-legend.green span { background: #10b981; }
        .chart-legend.purple span { background: #8b5cf6; }
        .chart-legend.orange span { background: #f59e0b; }

        /* Best Practices */
        .best-practices {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            margin-top: 16px;
            margin-bottom: 24px;
        }
        
        .bp-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 16px;
            background: #ffffff;
            border: 1px solid var(--border-color);
            border-radius: 8px;
        }
        
        .bp-item i {
            font-size: 1.25rem;
            color: var(--accent-blue);
            margin-top: 2px;
        }
        
        .bp-item p {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .info-alert {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--accent-blue-light);
            border: 1px solid #bfdbfe;
            color: #1e40af;
            padding: 16px 24px;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 500;
            margin-top: 32px;
        }

