/* ==========================
   LAYOUT GERAL
========================== */

* {
    box-sizing: border-box; /* Evita que padding altere a largura dos elementos */
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ==========================
   CABEÇALHO
========================== */

.cabecalho {
    background: #003366;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    flex-shrink: 0;
}

.logo {
    width: 42px;
    height: auto;
}

.titulo-evento p {
    margin: 0;
    font-size: 13px;
}

/* ==========================
   CONTEÚDO
========================== */

.conteudo {
    flex: 1;
    display: flex;
    min-height: 0;
}

/* ==========================
   MENU LATERAL
========================== */

#sidebar {
    width: 280px;
    background: #f4f4f4;
    border-right: 1px solid #ccc;
    padding: 15px;
    overflow-y: auto;
}

#sidebar h2,
#sidebar h3 {
    margin-top: 0;
}

.voltar {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: #003366;
    font-weight: bold;
}

.btn-voltar {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: rgba(255,255,255,0.15);

    color: white;

    text-decoration: none;

    font-size: 24px;
    font-weight: bold;

    transition: 0.3s;
}

.btn-voltar:hover {

    background: rgba(255,255,255,0.3);

}


/* ==========================
   MAPA
========================== */

#map {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* ==========================
   CURSOS
========================== */

.curso {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: white;
    text-align: left;
    cursor: pointer;
}

.curso:hover {
    background: #d8eaff;
}

.curso.ativo {
    background: #1976d2;
    color: white;
}

/* ==========================
   BOTÃO MOBILE
========================== */

#menu-btn {
    display: none;
}

/* ==========================
   MOBILE (Corrigido)
========================== */

@media (max-width: 768px) {
    #menu-btn {
        display: block;
    }

    #sidebar {
        position: absolute;
        top: 50px; /* Ajuste conforme a altura do seu cabeçalho */
        left: -280px;
        height: calc(100vh - 50px);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    #sidebar.ativo {
        left: 0;
    }
}
@media (max-width: 768px) {
    #menu-btn {
        display: block; /* Garante que o botão apareça no celular */
        background: none;
        border: 1px solid white;
        color: white;
        padding: 5px 10px;
        cursor: pointer;
    }

    #sidebar {
        position: absolute;
        top: 50px; /* Altura do seu cabeçalho */
        left: -280px;
        height: calc(100vh - 50px);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    /* Deve ser igual ao JS: .aberto */
    #sidebar.aberto {
        left: 0;
    }
}

.cabecalho {
    background: #003366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espaça o logo, título e o botão */
    gap: 10px;
    padding: 8px 12px;
    flex-shrink: 0;
}

/* Visibilidade do Botão Mobile */
#menu-btn {
    display: none; /* Escondido em telas grandes */
}

@media (max-width: 768px) {
    #menu-btn {
        display: inline-block; /* Aparece no celular */
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid white;
        color: white;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 14px;
        cursor: pointer;
    }
}

