/* Sticky Header Navigation */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #333333;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 70px;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-image {
    height: 70px;
    width: auto;
    margin-right: 8px;
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
}

/* Navigation Links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(80, 200, 120, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(80, 200, 120, 0.1);
    border-color: rgba(80, 200, 120, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.2);
}

.nav-link.active {
    background: rgba(80, 200, 120, 0.15);
    border-color: #50C878;
    color: #50C878;
    box-shadow: 0 0 20px rgba(80, 200, 120, 0.3);
}


/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #333333;
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.8);
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(80, 200, 120, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.action-btn:hover {
    border-color: #50C878;
    background: rgba(80, 200, 120, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(80, 200, 120, 0.3);
}

.settings-btn:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.logout-btn {
    width: auto;
    min-width: 80px;
    padding: 0 16px;
}

.logout-btn:hover {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.action-btn:hover .btn-icon {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 60px;
    }
    
    .logo-text {
        display: none;
    }
    
    .logo-image {
        height: 30px;
        margin-right: 0;
    }
    
    .header-nav {
        margin: 0 20px;
        gap: 4px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .action-btn {
        width: 40px;
        height: 40px;
    }
    
    .logout-btn {
        width: auto;
        min-width: 70px;
        padding: 0 12px;
    }
    
    .btn-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }
    
    .header-nav {
        margin: 0 12px;
        gap: 2px;
    }
    
    .nav-link {
        padding: 8px 12px;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .logout-btn {
        width: auto;
        min-width: 60px;
        padding: 0 10px;
    }
}

/* Scroll Effect */
.sticky-header.scrolled {
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

/* Animation for header appearance */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-header {
    animation: slideDown 0.5s ease-out;
}

/* Content spacing to account for fixed header */
body.with-header {
    padding-top: 30px;
}

@media (max-width: 768px) {
    body.with-header {
        padding-top: 30px;
    }
}
