@charset "UTF-8";

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: rgba(242, 242, 242, 1);
}

/* HEADER */
header {
    background-color: rgba(242, 242, 242, 1);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO PRINCIPAL */
.logo img {
    height: 45px;
}

/* LINK MATRÍCULA */
.matricula-link {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
    margin-right: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.matricula-link:hover {
    color: #355a8a;
    background-color: #e8eef9;
    text-shadow: 0 0 6px rgba(53, 90, 138, 0.4);
    transform: scale(1.05);
}

.matricula-link:active {
    transform: scale(0.92);
    background-color: #cfdaf0;
}

/* BOTÃO HAMBÚRGUER */
.hamburger-menu {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    z-index: 3000;
    transition: transform 0.25s ease;
}

.hamburger-menu span {
    height: 3px;
    background: #1e3a5f;
    border-radius: 5px;
    transition: transform 0.35s ease, opacity 0.35s ease, background-color 0.35s ease;
}

.hamburger-menu:hover {
    transform: translateY(-3px) scale(1.1);
}

.hamburger-menu:hover span {
    background: #7488ff;
}

.hamburger-menu:active {
    transform: translateY(1px) scale(0.9);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hamburger-menu.active:hover {
    transform: translateY(-3px) scale(1.1);
}
.hamburger-menu.active:active {
    transform: translateY(1px) scale(0.9);
}

/* MENU LATERAL */
.menu {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background-color: rgba(242, 242, 242, 1);
    list-style: none;
    transition: left 0.4s ease;
    z-index: 2500;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    overflow-y: auto;
    padding-top: 0;
}

/* LOGO TOPO DO MENU */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(242, 242, 242, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    height: 70px;
    width: 100%;
    margin-bottom: 20px;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-header img {
    height: 34px;
    width: auto;
}

/* LISTA DO MENU */
.menu li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu li a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
}

.menu li a:hover {
    color: #355a8a;
    background-color: #e8eef9;
    text-shadow: 0 0 6px rgba(53, 90, 138, 0.4);
    transform: scale(1.05);
}

.menu li a:active {
    transform: scale(0.92);
    background-color: #cfdaf0;
}

.menu li a .menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    filter: brightness(0.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.menu li a:hover .menu-icon {
    transform: scale(1.1);
    filter: brightness(0.4);
}

.menu.active {
    left: 0;
}

.menu.active .menu-header,
.menu.active li {
    opacity: 1;
    transform: translateX(0);
}

.menu li:nth-of-type(1) { transition-delay: 0.1s; }
.menu li:nth-of-type(2) { transition-delay: 0.2s; }
.menu li:nth-of-type(3) { transition-delay: 0.3s; }
.menu li:nth-of-type(4) { transition-delay: 0.4s; }
.menu li:nth-of-type(5) { transition-delay: 0.5s; }
.menu li:nth-of-type(6) { transition-delay: 0.6s; }
.menu li:nth-of-type(7) { transition-delay: 0.7s; }
.menu li:nth-of-type(8) { transition-delay: 0.8s; }

.menu-footer {
    margin-top: 20px;
    padding: 14px 16px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #6b6b6b;
    font-size: 0.8rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
}

.menu-footer span {
    display: block;
    font-weight: 600;
    color: #1e3a5f;
}

.menu-footer small {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    opacity: 0.85;
}

body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

/* HAMBÚRGUER SEMPRE VISÍVEL */
@media (min-width: 769px) {
    .hamburger-menu {
        display: flex;
    }
}

/* CORREÇÃO RESPONSIVA HEADER - CELULAR */
@media (max-width: 768px) {
    .container {
        display: flex;
        flex-wrap: wrap; /* permite quebra de linha se não couber */
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        position: relative;
    }

    .logo {
        flex: 0 0 auto;
    }

    .matricula-link,
    .btn-admin {
        flex: 1 1 auto; /* crescem/encolhem conforme espaço */
    }

    .hamburger-menu {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        flex: 0 0 auto;
    }
}
