/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.logo-container img {
    height: 60px;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.header-text {
    margin-left: 20px;
}

.header-text h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.header-text p {
    font-size: 0.9rem;
    color: #a1b4c4;
    font-weight: 300;
}

.header-bottom {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0 5%;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    color: #4facfe;
    background: rgba(255, 255, 255, 0.05);
}



.user-menu {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    left: 450px;
}

.user-name {
    margin-right: 10px;
    font-weight: 500;
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-menu:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #1a2a3a;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    z-index: 1;
    border-top: 2px solid #4facfe;
}

.user-menu:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-content li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown-content li a:hover {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    padding-left: 25px;
}

/* Botão Mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px;
    top: 20px;
}

.mobile-menu-toggle:hover {
    color: #4facfe;
}

.mobile-menu-toggle.active {
    color: #4facfe;
}

/* Efeitos e Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 1200px) {
    .user-menu {
        left: 300px;
    }
}

@media (max-width: 992px) {
    .header-top {
        flex-direction: row;
        text-align: left;
        padding: 15px;
    }
    
    .header-text {
        margin-left: 20px;
        margin-top: 0;
    }
    
    .user-menu {
        left: auto;
        margin-left: auto;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .header-top {
        padding-bottom: 25px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-bottom {
        display: none;
        position: absolute;
        width: 100%;
        background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    nav ul {
        flex-direction: column;
        padding: 0;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    nav ul li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .user-menu {
        justify-content: center;
        padding: 15px;
        margin-left: 0;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        animation: none;
        display: none;
    }
    
    .dropdown-content li a {
        padding: 12px 15px;
        text-align: center;
    }
    
    /* Remove hover effects for mobile */
    .user-menu:hover .arrow {
        transform: none;
    }
    
    .user-menu:hover .dropdown-content {
        animation: none;
    }
}

@media (max-width: 576px) {
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .header-text p {
        font-size: 0.8rem;
    }
    
    .logo-container img {
        height: 50px;
    }
}

/* Estilos para o cabeçalho no mobile */
@media (max-width: 768px) {
    .header-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
    }
    
    .logo-container {
        order: 1;
        width: 30%;
    }
    
    .header-text {
        order: 3;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    .mobile-menu-toggle {
        order: 2;
        width: 30%;
        text-align: right;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
    }
    
    .header-bottom {
        display: none;
        width: 100%;
        order: 4;
    }
    
    .header-bottom.active {
        display: block;
    }
}