/* css/header.css */

/* Estilos para o header */
.main-header {
    background: linear-gradient(135deg, #02416D 0%, #CDD071 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-2px);
    color: #CDD071;
}

.logo-link i {
    margin-right: 10px;
    font-size: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 1rem;
}

.nav-list a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Estilo para botão de login */
.nav-list .register-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.nav-list .register-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #CDD071;
}

/* Estilo para links de admin */
.nav-list a[href*="cadastro"],
.nav-list a[href*="gerenciar"] {
    background: rgba(205, 208, 113, 0.2);
    border: 1px solid rgba(205, 208, 113, 0.3);
}

.nav-list a[href*="cadastro"]:hover,
.nav-list a[href*="gerenciar"]:hover {
    background: rgba(205, 208, 113, 0.3);
    border-color: #CDD071;
}

/* Dropdown menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    list-style: none;
    margin-top: 10px;
    padding: 10px 0;
    z-index: 1001;
    animation: fadeIn 0.2s ease-out;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu a {
    color: #333 !important;
    padding: 10px 20px;
    display: block;
    border-radius: 0;
    white-space: nowrap;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #02416D !important;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .nav-list a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.95);
        margin-top: 5px;
    }
}