/* style.css para menu responsivo */
<style>

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
    
    .login-container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }
    
    .login-card {
        width: 100%;
        max-width: 450px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .login-header {
        background-color: #1565c0;
        color: white;
        padding: 20px;
        text-align: center;
    }
    
    .login-body {
        padding: 30px;
    }
    
    .btn-login {
        width: 100%;
        height: 45px;
        margin-top: 20px;
    }
    
    .login-container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
    }
    
    .login-card {
        width: 100%;
        max-width: 450px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .login-header {
        background-color: #1565c0;
        color: white;
        padding: 20px;
        text-align: center;
    }
    
    .login-body {
        padding: 30px;
    }
    
    .btn-login {
        width: 100%;
        height: 45px;
        margin-top: 20px;
    }
    
    .login-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        display: block;
        background-color: white;
        border-radius: 50%;
        padding: 15px;
    }
    
    .login-footer {
        text-align: center;
        margin-top: 20px;
    }
    
    .forgot-password {
        display: block;
        text-align: right;
        margin-top: 10px;
    }
    
    .login-logo {
        width: 80px;
        height: 80px;
        margin: 0 auto 20px;
        display: block;
        background-color: white;
        border-radius: 50%;
        padding: 15px;
    }
    
    .login-footer {
        text-align: center;
        margin-top: 20px;
    }
    
    .forgot-password {
        display: block;
        text-align: right;
        margin-top: 10px;
    }

/* Estilos gerais da navbar */
nav.blue.darken-3 {
    padding: 0 40px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Corrigindo a logo para ir à direita */
.brand-logo {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    position: static !important; /* Remove o posicionamento absoluto padrão do Materialize */
    margin-left: auto; /* Empurra a logo para a direita */
}


/* Menu desktop */
ul.right.hide-on-med-and-down {
    display: flex;
    margin: 0;
    padding: 0;
}

ul.right.hide-on-med-and-down li {
    margin: 0 5px;
}

ul.right.hide-on-med-and-down li a {
    padding: 0 10px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Menu mobile (sidenav) */
.sidenav {
    width: 250px;
    background-color: #1565c0; /* Mesma cor do navbar */
}

.sidenav li {
    padding: 0;
}

.sidenav li a {
    color: white;
    padding: 15px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

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

.sidenav-trigger {
    display: none !important; /* Escondido por padrão */
    margin: 0 10px;
}

/* Media queries para responsividade */
@media only screen and (max-width: 992px) {
    .brand-logo {
        font-size: 1.3rem;
        max-width: 150px;
    }

    ul.right.hide-on-med-and-down li a {
        padding: 0 8px;
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 768px) {
    .sidenav-trigger {
        display: block !important; /* Mostra o ícone do menu */
    }

    ul.right.hide-on-med-and-down {
        display: none; /* Esconde o menu desktop */
    }

    .brand-logo {
        font-size: 1.2rem;
        max-width: 120px;
    }
}

/* style.css - Menu Mobile Aprimorado */

/* ========== ESTILOS GERAIS ========== */
nav.blue.darken-3 {
    padding: 0 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    height: 64px;
    line-height: 64px;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    font-size: 1.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.brand-logo i {
    margin-right: 8px;
}

/* ========== MENU DESKTOP ========== */
ul.right.hide-on-med-and-down {
    display: flex;
    margin: 0;
    padding: 0;
}

ul.right.hide-on-med-and-down li {
    margin: 0 3px;
    transition: all 0.3s;
}

ul.right.hide-on-med-and-down li a {
    padding: 0 12px;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: 20px;
    height: 36px;
    line-height: 36px;
    margin: 14px 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

ul.right.hide-on-med-and-down li a i {
    margin-right: 6px;
    font-size: 1.1rem;
}

ul.right.hide-on-med-and-down li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ========== MENU MOBILE - SIDENAV ========== */
.sidenav {
    width: 280px;
    background-color: #0d47a1; /* Tom mais escuro para contraste */
    transform: translateX(-105%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidenav .user-view {
    padding: 32px 32px 16px;
    background-color: #1565c0;
    margin-bottom: 8px;
}

.sidenav .user-view .name {
    font-size: 1.2rem;
    margin-top: 10px;
    color: white;
    font-weight: 500;
}

.sidenav .user-view .email {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.sidenav li {
    padding: 0;
    transition: all 0.2s;
}

.sidenav li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.sidenav li a {
    color: white;
    padding: 16px 32px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sidenav li a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #ffeb3b;
    transform: scaleY(0);
    transition: transform 0.2s;
}

.sidenav li a:hover:before {
    transform: scaleY(1);
}

.sidenav li a i {
    margin-right: 16px;
    width: 24px;
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
}

.sidenav li.divider {
    margin: 8px 0;
    height: 1px;
    background-color: rgba(255,255,255,0.1);
}

.sidenav-trigger {
    display: none !important;
    margin: 0;
    transition: all 0.3s;
}

.sidenav-trigger:hover {
    transform: rotate(90deg);
}

/* Animação de abertura */
.sidenav.sidenav-close {
    transform: translateX(-105%);
}

.sidenav.sidenav-open {
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ========== MEDIA QUERIES ========== */
@media only screen and (max-width: 992px) {
    .brand-logo {
        font-size: 1.3rem;
        max-width: 160px;
    }

    ul.right.hide-on-med-and-down li a {
        padding: 0 10px;
        font-size: 0.85rem;
    }
}

@media only screen and (max-width: 768px) {
    .sidenav-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    ul.right.hide-on-med-and-down {
        display: none;
    }

    .brand-logo {
        font-size: 1.2rem;
        max-width: 140px;
    }
}

@media only screen and (max-width: 480px) {
    .sidenav {
        width: 85%;
    }

    .brand-logo {
        font-size: 1.1rem;
        max-width: 120px;
    }

    .sidenav li a {
        padding: 14px 24px;
    }
}

/* Efeito de overlay quando menu aberto */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 997;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 2px 25px;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Ajustes para telas muito pequenas */
@media only screen and (max-width: 400px) {
    .brand-logo {
        font-size: 1rem;
        max-width: 100px;
    }
}

/* Transições suaves */
.sidenav {
    transition: transform 0.3s ease-out;
}

/* Efeito de hover nos itens do menu desktop */
ul.right.hide-on-med-and-down li a {
    transition: background-color 0.3s;
    border-radius: 4px;
}

ul.right.hide-on-med-and-down li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

</style>