/* ===== HEADER STYLES ===== */
.main-header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.nav-brand .logo:hover {
    color: white;
    transform: translateY(-2px);
}

.nav-brand .logo i {
    font-size: 2.2rem;
    color: var(--secondary);
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.nav-brand .logo:hover i {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.logo-text h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    background: rgba(255,255,255,0.15);
    font-weight: 600;
}

.nav-link.active::before {
    width: 100%;
}

.login-btn {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid var(--secondary);
}

.login-btn:hover {
    background: rgba(46, 204, 113, 0.3);
}

.register-btn {
    background: var(--secondary);
    border: 1px solid var(--secondary);
}

.register-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    padding-right: 35px !important;
}

.dropdown-arrow {
    font-size: 0.8rem;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--light);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    color: var(--dark);
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
    padding-right: 25px;
}

.dropdown-divider {
    height: 1px;
    background: var(--light);
    margin: 8px 0;
    border: none;
}

.dropdown-item.text-danger {
    color: var(--accent);
}

.dropdown-item.text-danger:hover {
    color: #c0392b;
    background: rgba(231, 76, 60, 0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(255,255,255,0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Notification */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: rgba(39, 174, 96, 0.9);
}

.notification.error {
    background: rgba(231, 76, 60, 0.9);
}

.notification.warning {
    background: rgba(243, 156, 18, 0.9);
}

.notification.info {
    background: rgba(52, 152, 219, 0.9);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - 80px);
        background: var(--dark);
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 10px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .nav-link {
        padding: 15px 20px;
        width: 100%;
        border-radius: 8px;
        justify-content: flex-start;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.1);
        margin: 10px 0 0 0;
        display: none;
        width: 100%;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,0.2);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        color: white;
        padding: 12px 15px;
    }
    
    .dropdown-item:hover {
        background: rgba(255,255,255,0.1);
        color: var(--secondary);
    }
    
    .dropdown-divider {
        background: rgba(255,255,255,0.2);
    }
}

@media (max-width: 576px) {
    .logo-text h2 {
        font-size: 1.2rem;
    }
    
    .logo-text span {
        font-size: 0.8rem;
    }
    
    .nav-brand .logo i {
        font-size: 1.8rem;
        padding: 8px;
    }
    
    .nav-menu {
        width: 90%;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}