/* ===== MINIMALISTIC HEADER DESIGN ===== */
/* Clean, simple header with focus on content and usability */
/* Minimal visual elements, maximum clarity */

:root {
    --header-bg: #ffffff;
    --header-border: #e5e7eb;
    --header-text: #1f2937;
    --header-text-muted: #6b7280;
    --header-accent: #3b82f6;
    --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --hover-bg: #f3f4f6;
    --transition: all 0.2s ease;
}

/* Minimalistic Header Container */
.app-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10002;
    transition: var(--transition);
}

.app-header.scrolled {
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(8px);
}

/* Minimalistic Header Layout */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

/* Clean Brand Section */
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--header-text);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.header-brand:hover {
    background: var(--hover-bg);
}

.header-brand .brand-icon {
    font-size: 1.25rem;
    color: var(--header-accent);
}

.header-brand .brand-text h1 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
    color: var(--header-text);
}

.header-brand .brand-text p {
    display: none;
}

/* Clean Breadcrumb Navigation */
.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--header-text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

.breadcrumb-item {
    transition: var(--transition);
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.breadcrumb-item:hover {
    color: var(--header-accent);
}

.breadcrumb-separator {
    opacity: 0.5;
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: var(--header-text);
    font-weight: 500;
}

.header-breadcrumb .breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.header-breadcrumb .breadcrumb-separator {
    opacity: 0.6;
    margin: 0 0.25rem;
}

.header-breadcrumb .breadcrumb-current {
    color: var(--header-text);
    font-weight: 600;
}

/* Minimal Statistics Display */
.header-stats {
    display: none;
}

.stat-item {
    display: none;
}



/* Simple User Menu */
.header-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.user-profile:hover {
    background: var(--hover-bg);
    border-color: var(--header-border);
}

.user-profile.active {
    background: var(--hover-bg);
    border-color: var(--header-border);
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--header-bg);
    border: 1px solid var(--header-border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    min-width: 200px;
    z-index: 10003;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    margin-top: 0.5rem;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-content {
    padding: 0.5rem 0;
}

.dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--header-border);
    margin-bottom: 0.25rem;
}

.dropdown-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--header-text);
    margin: 0;
}

.dropdown-user-role {
    font-size: 0.75rem;
    color: var(--header-text-muted);
    margin: 0.125rem 0 0 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    color: var(--header-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--hover-bg);
    color: var(--header-accent);
}

.dropdown-item-icon {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--header-border);
    margin: 0.25rem 0;
}


.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--header-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--header-text);
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: var(--header-text-muted);
    line-height: 1;
    margin-top: 0.125rem;
}

.user-dropdown-arrow {
    font-size: 0.75rem;
    color: var(--header-text-muted);
    transition: var(--transition);
}

.user-profile:hover .user-dropdown-arrow {
    color: var(--header-text);
}

/* Theme Toggle */
.theme-toggle {
    padding: 0.375rem;
    border: 1px solid var(--header-border);
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--header-text-muted);
}

.theme-toggle:hover {
    background: var(--hover-bg);
    color: var(--header-text);
    border-color: var(--header-accent);
}

.theme-icon {
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        gap: 0.5rem;
    }
    
    .header-breadcrumb {
        display: none;
    }
    
    .header-brand .brand-text h1 {
        font-size: 1rem;
    }
    
    .user-info {
        display: none;
    }
}


@media (max-width: 480px) {
    .app-header {
        padding: 0.5rem 1rem;
    }
    
    .theme-toggle {
        padding: 0.25rem;
    }
    
    .user-profile {
        padding: 0.25rem 0.5rem;
    }
    
    .header-brand .brand-icon {
        font-size: 1rem;
    }
}

/* Focus states for accessibility */
.header-brand:focus,
.theme-toggle:focus,
.user-profile:focus {
    outline: 2px solid var(--header-accent);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark theme support */
body.dark-theme {
    --header-bg: #1f2937;
    --header-border: #374151;
    --header-text: #f9fafb;
    --header-text-muted: #9ca3af;
    --header-accent: #60a5fa;
    --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --hover-bg: #374151;
}

/* Responsive dropdown adjustments */
@media (max-width: 768px) {
    .user-dropdown {
        min-width: 180px;
        right: -0.5rem;
    }
    
    .dropdown-item {
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        min-width: 160px;
        right: -0.75rem;
    }
}