/* Zheno - Bloomberg Terminal Theme */
/* Pure black background with signature green data visualization */

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

/* Import IBM Plex Mono for terminal aesthetic */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
    /* Bloomberg Terminal Theme */
    --primary: #00CC00;           /* Bloomberg signature green */
    --primary-dark: #006600;      /* Dark green for subtle elements */
    --primary-light: #00FF00;     /* Bright green for highlights */
    --background: #000000;        /* Pure black background */
    --surface: #0A0A0A;          /* Very dark surface */
    --surface-light: #0F0F0F;    /* Slightly lighter surface */
    --border: #003300;           /* Dark green border */
    --border-light: #004400;     /* Lighter green border */
    --text-primary: #00CC00;     /* Green primary text */
    --text-secondary: #808080;   /* Grey secondary text */
    --text-dim: #505050;         /* Dimmed grey text */
    --text-white: #E0FFE0;       /* Green-tinted white for important */
    --success: #00FF00;          /* Bright green success */
    --warning: #FFCC00;          /* Yellow warning */
    --danger: #CC0000;           /* Dark red danger */
    --info: #00CC00;             /* Green info */
    --grid: #001100;             /* Very subtle grid lines */
}

body {
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.02em;
    display: flex;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0 0 2px rgba(0, 204, 0, 0.3);
}

/* Global Typography - Bloomberg Terminal Style */
h1, h2, h3, h4, h5, h6 {
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
    font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 5px var(--primary);
}

/* Code and Pre */
code, pre {
    font-family: 'IBM Plex Mono', monospace;
    background: var(--surface);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    border: 1px solid var(--border);
}

/* Tables - Terminal Style */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
}

th {
    background: var(--surface);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: left;
}

td {
    padding: 0.75rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

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

/* Global Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 0;
    border: 1px solid var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 5px var(--primary);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) var(--background);
}

/* Sidebar - Bloomberg Terminal Style */
.sidebar {
    width: 220px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    overflow-y: hidden;
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.1);
}

/* Collapsed Sidebar */
.sidebar.collapsed {
    width: 60px;
}

/* Auto-expand on hover */
.sidebar.collapsed:hover {
    width: 220px;
    box-shadow: none;
}

.sidebar.collapsed .sidebar-header {
    padding: 1rem 0.5rem;
}

.sidebar.collapsed:hover .sidebar-header {
    padding: 1.5rem;
}

.sidebar.collapsed .sidebar-header::after {
    left: 0.5rem;
    right: 0.5rem;
}

.sidebar.collapsed:hover .sidebar-header::after {
    left: 2rem;
    right: 2rem;
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

.sidebar.collapsed:hover .sidebar-title {
    display: block;
}

.sidebar.collapsed .sidebar-toggle {
    margin-left: auto;
    margin-right: auto;
}

.sidebar.collapsed:hover .sidebar-toggle {
    width: 100%;
    margin: 0;
}

.sidebar.collapsed .sidebar-nav {
    padding: 1.5rem 0.5rem 2rem;
}

.sidebar.collapsed:hover .sidebar-nav {
    padding: 1.5rem 0.75rem 1rem;
}

.sidebar.collapsed .sidebar-item {
    padding: 0.75rem;
    margin: 0 0.5rem 0.25rem;
    justify-content: center;
}

.sidebar.collapsed:hover .sidebar-item {
    padding: 0.625rem 1rem;
    justify-content: flex-start;
}

.sidebar.collapsed .sidebar-item span {
    display: none;
}

.sidebar.collapsed:hover .sidebar-item span {
    display: inline-flex;
}

.sidebar.collapsed .sidebar-item.active {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Tooltip for collapsed sidebar - only when not hovering sidebar */
.sidebar.collapsed:not(:hover) .sidebar-item {
    position: relative;
}

.sidebar.collapsed:not(:hover) .sidebar-item:not(.active)::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.5);
}

.sidebar.collapsed:not(:hover) .sidebar-item:not(.active):hover::after {
    opacity: 1;
    transition-delay: 0.3s;
}

/* Tooltip for active items (using before) - only when not hovering sidebar */
.sidebar.collapsed:not(:hover) .sidebar-item.active::before {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    color: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 0;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
    display: block !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.sidebar.collapsed:not(:hover) .sidebar-item.active:hover::before {
    opacity: 1;
    transition-delay: 0.3s;
}

.sidebar-header {
    padding: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.sidebar-header::after {
    display: none; /* Remove divider line */
}

.sidebar-logo {
    width: 28px;
    height: 28px;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.5);
}

.sidebar-nav {
    padding: 1.5rem 0.75rem 1rem;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) transparent;
}

/* Custom scrollbar for sidebar nav */
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 0;
    border: 1px solid var(--primary);
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 5px var(--primary);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: none;
    margin-top: auto;
}

.sidebar-toggle {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-toggle:hover {
    background: var(--surface-light);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
}

.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

/* Flip icon horizontally when collapsed */
.sidebar.collapsed .toggle-icon {
    transform: scaleX(-1);
}

/* Flip back on hover */
.sidebar.collapsed:hover .toggle-icon {
    transform: scaleX(1);
}

.toggle-text {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Collapsed state for footer */
.sidebar.collapsed .sidebar-footer {
    padding: 0.75rem 0.5rem;
}

.sidebar.collapsed:hover .sidebar-footer {
    padding: 1rem;
}

.sidebar.collapsed .sidebar-toggle {
    padding: 0.75rem;
    aspect-ratio: 1;
}

.sidebar.collapsed:hover .sidebar-toggle {
    padding: 0.625rem 1rem;
    aspect-ratio: auto;
}

.sidebar.collapsed .toggle-text {
    display: none;
}

.sidebar.collapsed:hover .toggle-text {
    display: inline;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    margin: 0 0.5rem 0.25rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    line-height: 1;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.sidebar-item span {
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.01em;
}

.sidebar-item:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.5);
}

.sidebar-item:hover .sidebar-icon {
    transform: translateX(2px);
}

.sidebar-item:hover .sidebar-icon svg {
    stroke: var(--primary-light);
    filter: drop-shadow(0 0 3px var(--primary));
}

.sidebar-item.active {
    background: transparent;
    color: var(--primary-light);
    font-weight: 500;
    border: 1px solid var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 10px var(--primary);
}

.sidebar-item.active .sidebar-icon {
    transform: none;
}

.sidebar-item.active .sidebar-icon svg {
    stroke: var(--primary-light);
    filter: drop-shadow(0 0 5px var(--primary));
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.sidebar-icon svg {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

/* Main Content - Bloomberg Terminal Style */
.main-content {
    margin-left: 220px;
    flex: 1;
    overflow-y: auto;
    height: 100vh;
    transition: margin-left 0.3s ease;
    background: var(--background);
    position: relative;
}

/* Bloomberg Terminal Grid Background */
.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.main-content.expanded::before {
    left: 60px;
}

.main-content.expanded {
    margin-left: 60px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}


/* Analytics Sections */
.analytics-section {
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 204, 0, 0.3);
}

.section-icon {
    width: 24px;
    height: 24px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 204, 0, 0.2), inset 0 0 10px rgba(0, 204, 0, 0.05);
    background: var(--surface-light);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    font-family: 'IBM Plex Mono', monospace;
}

.stat-change {
    font-size: 0.875rem;
    color: var(--text-dim);
}

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

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

/* Chart Controls */
.chart-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-control {
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.btn-control:hover {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.2);
}

.btn-control.active {
    background: var(--surface-light);
    color: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3), inset 0 0 10px rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 5px var(--primary);
}

.select-control {
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.select-control:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 204, 0, 0.2);
}

/* Chart Row */
.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card.half {
    flex: 1;
}

/* Recommendations Card - Bloomberg Terminal */
.recommendations-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 0;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    position: relative;
}

.recommendations-card::before {
    content: 'REC';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0.5;
    letter-spacing: 0.1em;
}

.recommendations-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.125rem;
    text-shadow: 0 0 5px rgba(0, 204, 0, 0.3);
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scanner Controls */
.scanner-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    align-items: flex-end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--background);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

/* Data Table */
.table-card {
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

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

.data-table thead {
    background: var(--background);
    border-bottom: 2px solid var(--border);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.loading-cell {
    text-align: center;
    padding: 3rem !important;
}

/* Alerts Card */
.alerts-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.alerts-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Pattern Grid */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pattern-results {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

/* Prediction Card */
.prediction-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.prediction-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.prediction-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.prediction-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prediction-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.prediction-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.chart-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.spinner {
    animation: spin 1s linear infinite;
    width: 20px;
    height: 20px;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.header-icon {
    width: 48px;
    height: 48px;
    stroke-width: 2;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Status Card */
.status-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.status-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.live-indicator {
    width: 12px;
    height: 12px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--primary-light);
}

@keyframes pulse {
    0% { 
        opacity: 1;
        box-shadow: 0 0 10px var(--primary-light);
    }
    50% { 
        opacity: 0.5;
        box-shadow: 0 0 20px var(--primary-light);
    }
    100% { 
        opacity: 1;
        box-shadow: 0 0 10px var(--primary-light);
    }
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.status-item {
    display: flex;
    flex-direction: column;
    position: relative;
}

.status-icon {
    margin-bottom: 0.5rem;
}

.status-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.status-value {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-value.good {
    color: var(--success);
}

.status-value.bad {
    color: var(--danger);
}

.recommendation {
    font-size: 1rem;
    font-weight: 400;
}

/* Heatmap Section */
.heatmap-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.controls {
    display: flex;
    gap: 0.5rem;
}

.control-btn {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
}

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

.control-btn:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    color: var(--primary-light);
}

.control-btn.active {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.control-btn.active .btn-icon {
    stroke: var(--background);
}

.heatmap-container {
    position: relative;
    height: 400px;
    padding: 20px 0;
    margin-bottom: 1rem;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.legend-gradient {
    width: 200px;
    height: 10px;
    background: linear-gradient(to right, var(--surface), var(--primary));
    border-radius: 5px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stat-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.stat-card h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* Analysis Section */
.analysis-section {
    margin-bottom: 2rem;
}

.analysis-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chart-container h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.chart-container canvas {
    max-height: 250px;
}

/* Insights Section */
.insights-section {
    margin-bottom: 2rem;
}

.insights-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.insight-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--border);
}

.insight-card.success {
    border-left-color: var(--success);
}

.insight-card.warning {
    border-left-color: var(--warning);
}

.insight-card.info {
    border-left-color: var(--info);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.insight-card h4 {
    font-size: 1rem;
    font-weight: 600;
}

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

/* Icon Sizes */
.icon-small {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.icon-tiny {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .controls {
        width: 100%;
    }
    
    .control-btn {
        flex: 1;
    }
}