:root {
    --header-height: 70px;
    --sidebar-width: 280px;
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #25d366;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: var(--header-height);
}

/* Sticky Header */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #fbbf24;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: scale(1.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
    text-decoration: none;
}

.logo:hover {
    color: #f59e0b;
    text-decoration: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: #111827;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-login:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #111827;
    transform: translateY(-2px);
}

.btn-register {
    background: transparent;
    border: 2px solid #fbbf24;
    color: #fbbf24;
    padding: 6px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-register:hover {
    background: #fbbf24;
    color: #111827;
    transform: translateY(-2px);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
}

.user-menu-toggle:hover {
    background: rgba(251, 191, 36, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: bold;
    font-size: 0.9rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #f3f4f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-dropdown a:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.user-dropdown .divider {
    height: 1px;
    background: #374151;
    margin: 8px 0;
}

/* Main Content */
.main-content {
    margin-left: 0;
    padding-top: 10px; /* Reduced padding to create less space between header and content */
    transition: margin-left 0.3s ease;
}

.main-content.sidebar-open {
    margin-left: var(--sidebar-width);
}

/* Responsive */
@media (max-width: 768px) {
    .main-content.sidebar-open {
        margin-left: 0;
    }

    .header-content {
        padding: 0 15px;
    }

    .auth-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .btn-login, .btn-register {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .user-menu-toggle {
        padding: 5px 8px;
        gap: 4px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* Small mobile responsive */
@media (max-width: 576px) {
    .user-menu-toggle {
        padding: 4px 6px;
        gap: 3px;
    }
    
    .user-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
    
    .user-dropdown {
        min-width: 180px;
        right: -10px;
    }
}