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

:root {
    /* Color Palette */
    --primary-gold: #9b9b7a;
    --secondary-gold: #797b3a;
    --cc-primary: #2f2f2f;
    --bg-secondary: #0f0f0f;
    --bg-card: rgba(255,255,255,0.03);
    --border-color: rgba(255,255,255,0.08);
    --text-primary: #fff;
    --text-secondary: #999;
    --text-muted: #888;
    --alert-red: #ff4444;
    --alert-yellow: #ffc107;
    --alert-blue: #2196f3;
    --success-green: #00ff41;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cc-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Main Container */
.command-center {
    width: 100%;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(155, 155, 122, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(155, 155, 122, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, var(--cc-primary) 0%, var(--bg-secondary) 100%);
}

/* KPI Cards Row - Horizontal Layout */
.kpi-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.kpi-row::-webkit-scrollbar {
    height: 6px;
}

.kpi-card {
    min-width: 140px;
    max-width: 180px;
    flex: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

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

.kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.kpi-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-icon {
    font-size: 12px;
    opacity: 0.5;
}

.kpi-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0;
}

.kpi-change {
    font-size: 10px;
    color: var(--success-green);
    display: flex;
    align-items: center;
    gap: 2px;
}

.kpi-change.negative {
    color: var(--alert-red);
}

/* Dashboard Content Area */
.dashboard-content {
    margin-left: 10px;
    margin-right: 10px;
    padding: 0px;
    transition: margin-left 0.3s ease;
}

.sidebar:hover ~ .dashboard-content {
    margin-left: 200px;
}

/* Grid Layouts */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

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

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 4px;
}
.sidebar {
    position: fixed;
    display: flex;
    height: calc(100vh - 73px);
    left: 0;
    width: 200px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 20px 0;
    z-index: 999;
    transition: width 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar:hover {
    width: 200px;
}

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

.nav-title {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    margin-bottom: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.sidebar:hover .nav-title {
    opacity: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(155, 155, 122, 0.05);
    color: #fff;
}

.nav-item.active {
    color: #9b9b7a;
    background: rgba(155, 155, 122, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #9b9b7a 0%, #797b3a 100%);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.nav-label {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-label {
    opacity: 1;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(155, 155, 122, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(155, 155, 122, 0.4); }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .widgets-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-content {
        margin-left: 0;
        padding: 16px;
    }
    
    .widgets-grid {
        grid-template-columns: 1fr;
    }
}
