@import url("../css/global.css");
@import url(index.css);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f4;
    margin: 60px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #114694;
    padding: 14px 20px;
    border-radius: 12px;
    margin: 20px;
    width: calc(100% - 40px);
    max-width: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    position: relative;

}

/* LOGO (Lado esquerdo) */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 60px;
}

.logo img {
    height: 45px;
    width: auto;
}

/* MENU DE LINKS  */
.menu {
    display: flex;
    list-style: none;
    gap: 35px;
    margin-right: auto;
}


.menu li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.menu li a:hover {
    color: #cecece;
}

/* ÍCONES DO MENU */
.menu .icon {
    height: 20px;
    width: auto;
    object-fit: contain;
}



/* --- ESTILOS DO CONTEÚDO E CALENDÁRIO --- */
.main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.container h1 {
    color: #003b8e;
    margin-bottom: 20px;
}

.container h3 {
    color: #003b8e;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 20px;
}

.calendario_API button {
    background: #003b8e;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.calendario_API button:hover {
    background: #00255a;
}

#lista-eventos li {
    background: white;
    padding: 12px;
    margin-bottom: 8px;
    border-left: 5px solid #ff6600;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}


/* --- CONFIGURAÇÃO PADRÃO DO BOTÃO (DESKTOP) --- */
.menu-toggle {
    display: none;
    /* Fica escondido no computador */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* As 3 barrinhas do hambúrguer */
.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}


@media (max-width: 885px) {
    body {
        margin: 20px;
    }

    .header {
        padding: 14px 20px;
        justify-content: space-between;/
    }

    .logo {
        margin-right: 0;
    }


    .menu-toggle {
        display: flex;
        order: 2;
    }

    .profile {
        order: 3;
    }


    .menu {
        display: flex;
        flex-direction: column;
        gap: 25px;

        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: #114694;
        padding: 80px 30px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease;
        z-index: 1000;
    }


    .menu.active {
        right: 0;
    }


    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}