/* --- Menu Toggle (Hamburger) --- */
.menu-toggle {
    position: fixed;
    top: 0; /* Colado no topo */
    left: 0; /* Colado na esquerda */
    z-index: 1100;
    background-color: #6a1b9a; /* Fundo roxo */
    border: none;
    padding: 20px; /* Ajustar padding se necessário */
    cursor: pointer;
    border-bottom-right-radius: 10px; /* Canto arredondado */
    overflow: hidden; /* Garante que o ícone não saia do canto arredondado */
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2); /* Adiciona sombra para destacar */
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    background-color: #fff; /* Ícone branco */
    height: 3px;
    width: 25px;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(5px);
}

/* Animação para 'X' */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
    background-color: #fff; /* Mantém branco no 'X' */
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-3px) rotate(-45deg);
    background-color: #fff; /* Mantém branco no 'X' */
}

/* --- Drawer --- */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #6a1b9a;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    padding-top: 60px;
}

.drawer.open {
    transform: translateX(0);
}

.drawer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.drawer li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.drawer li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- Overlay --- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}
