/* ============================================
   KUSANAGI - White Premium Theme
   ============================================ */

body.theme-white {
    /* Core Colors - Light Palette */
    --white-bg: #ffffff;
    --white-surface: #f8f9fa;
    --white-accent: #0066ff;
    --white-text-primary: #1a1a1a;
    --white-text-secondary: #666666;
    --white-border: #e0e0e0;
    --white-shadow: rgba(0, 0, 0, 0.05);

    /* Overrides for Kusanagi Variables */
    --dark-bg: var(--white-bg);
    --darker-bg: #f1f3f5;
    --text-primary: var(--white-text-primary);
    --text-secondary: var(--white-text-secondary);
    --neon-cyan: #0055cc;
    --neon-green: #00aa28;
    --neon-pink: #cc1155;
    --sidebar-bg: var(--white-surface);
    --sidebar-border: var(--white-border);
    --sidebar-text: #333333;

    background-color: var(--white-bg);
    color: var(--white-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Specific UI Overrides */
body.theme-white .grid-bg,
body.theme-white .scanlines {
    display: none;
}

body.theme-white .sidebar {
    background: var(--white-surface);
    border-right: 1px solid var(--white-border);
    box-shadow: 2px 0 10px var(--white-shadow);
}

/* Status Bar & Links Fixes */
body.theme-white .status-bar,
body.theme-white .system-status-bar {
    background: #f1f3f5 !important;
    color: #1a1a1a !important;
    /* Stronger contrast */
    font-weight: 700 !important;
}

body.theme-white .links-bar,
body.theme-white .quick-links-bar {
    background: #e9ecef !important;
    border-bottom: 1px solid var(--white-border) !important;
}

body.theme-white .service-link {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #ced4da !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    font-weight: 600 !important;
}

/* Metric Cards & Numbers Fixes */
body.theme-white .metric-box,
body.theme-white .metric-card {
    background: #ffffff !important;
    border: 1px solid var(--white-border) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

body.theme-white .metric-value {
    color: #0066ff !important;
    /* Blue for visibility */
    font-weight: 800 !important;
    text-shadow: none !important;
}

body.theme-white .metric-label {
    color: #495057 !important;
    font-weight: 600 !important;
}

body.theme-white .metric-bar {
    background: #e9ecef !important;
    border-radius: 4px !important;
}

body.theme-white .metric-bar-fill {
    background: #0066ff !important;
}

body.theme-white #solar-24h-graph {
    background: #f8f9fa !important;
    border: 1px solid var(--white-border) !important;
}

/* Live Feed / Tables - One Line Adaptive Fix */
body.theme-white .issues-table tr {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 15px !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
}

body.theme-white .issues-table td {
    border: none !important;
    padding: 5px 10px !important;
}

body.theme-white .sidebar-logo-text {
    color: var(--white-text-primary);
}

body.theme-white .nav-link {
    color: var(--white-text-secondary);
    border-radius: 6px;
}

body.theme-white .nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--white-text-primary);
}

body.theme-white .nav-link.active {
    background: rgba(0, 102, 255, 0.08);
    color: var(--white-accent);
    border-left: 4px solid var(--white-accent);
}

body.theme-white .stat-box {
    background: #fff;
    border: 1px solid var(--white-border);
    box-shadow: 0 2px 4px var(--white-shadow);
}

body.theme-white .issues-table-container {
    background: #fff;
    border: 1px solid var(--white-border);
    box-shadow: 0 4px 6px var(--white-shadow);
}

body.theme-white .issues-table-header {
    background: #fdfdfd;
    border-bottom: 1px solid var(--white-border);
}

body.theme-white .content-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--white-border);
    backdrop-filter: blur(10px);
}

body.theme-white .header-title {
    color: #111;
    text-shadow: none;
}

body.theme-white .cyber-btn {
    background: #fff;
    border: 1px solid var(--white-border);
    color: #333;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.theme-white .cyber-btn:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tables */
body.theme-white .issues-table th {
    background: #f8f9fa;
    color: #555;
    border-bottom: 1px solid var(--white-border);
}

body.theme-white .issues-table td {
    border-bottom: 1px solid #f1f1f1;
}

/* Cards */
body.theme-white .node-card,
body.theme-white .pod-card {
    background: #fff;
    border: 1px solid var(--white-border);
}