/* Header Component Styles */
body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
}

/* Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: -2;
}

/* Dark overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.85) 0%, rgba(20, 20, 40, 0.95) 100%);
    z-index: -1;
}

/* Main Header */
.app-header {
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.header-logo:hover .header-logo-img {
    transform: scale(1.05);
}

.header-logo-fallback {

    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8a63d2 0%, #6b46c1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.header-logo:hover .header-logo-fallback {
    transform: scale(1.05);
}

.header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-title h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header-title .page-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Navigation and Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-nav-link {
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(138, 99, 210, 0.15);
    border: 1px solid rgba(138, 99, 210, 0.3);
    white-space: nowrap;
}

.header-nav-link:hover {
    background: rgba(138, 99, 210, 0.25);
    border-color: rgba(138, 99, 210, 0.5);
    color: white;
    transform: translateY(-1px);
}

.header-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.header-btn:hover {
    background: rgba(214, 52, 71, 0.2);
    border-color: rgba(214, 52, 71, 0.4);
    transform: translateY(-1px);
}

.header-btn-admin {
    background: linear-gradient(135deg, #d63447 0%, #c71f37 100%);
    box-shadow: 0 3px 10px rgba(214, 52, 71, 0.3);
    border: none;
}

.header-btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 52, 71, 0.5);
}

/* User Info */
.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a63d2 0%, #6b46c1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.header-user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Admin Badge */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #d63447 0%, #c71f37 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}

/* Content Area */
.app-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .header-container {
        gap: 16px;
    }
    
    .header-title h1 {
        font-size: 18px;
    }
    
    .header-nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .app-header {
        padding: 10px 16px;
    }
    
    .header-container {
        gap: 12px;
    }
    
    .header-logo {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .header-actions {
        width: 100%;
        gap: 8px;
    }
    
    .header-nav {
        width: 100%;
        gap: 6px;
    }
    
    .header-nav-link {
        flex: 1;
        min-width: 120px;
        padding: 8px 12px;
        font-size: 12px;
        text-align: center;
    }
    
    .header-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .header-title h1 {
        font-size: 16px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .app-header {
        padding: 8px 12px;
    }
    
    .header-container {
        gap: 8px;
    }
    
    .header-logo {
        gap: 8px;
    }
    
    .header-logo-img,
    .header-logo-fallback {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .header-logo-fallback {
        font-size: 20px;
    }
    
    .header-title h1 {
        font-size: 14px;
    }
    
    .header-title .page-name {
        font-size: 10px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }
    
    .header-nav {
        width: 100%;
        gap: 4px;
    }
    
    .header-nav-link {
        flex: 1;
        min-width: auto;
        padding: 6px 8px;
        font-size: 11px;
        border: none;
        background: rgba(138, 99, 210, 0.2);
    }
    
    .header-nav-link:hover {
        background: rgba(138, 99, 210, 0.35);
    }
    
    .header-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .header-user-name {
        display: none;
    }
}
