/* ====================================
   🎯 HEADER STYLES - Business1 v2.0
   ==================================== */

/* Main Header Container */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1000;
    background: var(--bg-primary, #0f172a);
    border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.1));
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Header Content - Flex Row */
#main-header .header-content {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 1.5rem;
    height: 100%;
    max-width: 100%;
}

/* Logo/Title */
#main-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Center Group - Time + Stats + Last Update */
.header-center {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

/* System Time */
.system-time {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    color: #60a5fa;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Last Data Update */
.last-update {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    color: #22c55e;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Header Stats */
#main-header .header-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.9rem;
}

#main-header .header-stats .stat {
    white-space: nowrap;
}

/* User Section - Right */
.header-user {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-shrink: 0;
}

.user-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 2px;
}

.user-info .user-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.user-info .user-role {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
    background: rgba(99, 102, 241, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Responsive - Hide on small screens */
@media (max-width: 1000px) {
    .system-time,
    .last-update {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-stats {
        display: none !important;
    }
}
