/* public/css/header.css */
.main-header {
    background-color: #1f1f3a;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid #3a3a5e;
}

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

.logo-container h1 {
    color: #e94560;
    font-size: 1.0rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 10px rgba(248, 197, 55, 0.5);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #e94560;
    transition: all 0.3s ease-in-out;
}

.main-nav a:hover, .main-nav a.active {
    color: #e94560;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
    left: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ffc107;
    /* AJUSTE: Reduz o tamanho da fonte para que as informações do usuário
       se encaixem melhor no cabeçalho, especialmente em telas menores. */
    font-size: 0.85rem;
}

.logout-button {
    background-color: #e94560;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #c7304a;
}

/* Estilos para o menu mobile */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
        background-color: #161625;
        flex-direction: column;
        padding-top: 80px;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #2a2a4e;
    }

    .main-nav a::after {
        display: none; /* Remove a linha de baixo no mobile */
    }

    body.menu-open .main-nav {
        transform: translateX(0);
    }
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999; /* Abaixo do menu (1000), mas acima do conteúdo */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

body.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}
