#headerTitle {
    margin: 0;
}

/* Efeito Shimmer para carregamento */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Shimmer para o headerTitle */
#headerTitle.shimmer {
    color: transparent;
    min-width: 150px;
    height: 22px;
    display: inline-block;
}

/* Shimmer para o drawerAvatar */
.drawer-avatar.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    opacity: 0.7;
}

/* Shimmer para o homeAvatar */
#homeAvatar.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    opacity: 0.7;
    border-radius: 50%;
}

.app-title-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    flex: 1;
    align-items: flex-start;
}

.app-subtitle {
    font-size: 0.60rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-top: 2px;
}

.home-hero {
    position: relative;
    padding-top: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 20px;
}

.home-avatar-wrapper {
    position: absolute;
    top: -12px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background: linear-gradient(135deg, #1e88e5, #102f6b);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
    overflow: hidden;
    z-index: 200;
}

.home-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background: #f9f9f9;
}

@media (max-width: 480px) {
    .home-avatar-wrapper {
        width: 90px;
        height: 90px;
        top: -8px;
    }
    .home-hero {
        padding-top: 50px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* Bloquear scroll quando tela de login está ativa */
body.not-logged-in {
    overflow: hidden;
    height: 100vh;
}

/* Forçar visibilidade do reCAPTCHA quando ativo em produção */
.recaptcha-active #recaptchaField {
    display: block !important;
}

/* App Bar */
.app-bar {
    background-color: #1976d2;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100%;
}

/* Header (para páginas que usam class="header") */
.header {
    background: #1976d2 !important;
    color: white !important;
    padding: 15px 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.menu-btn, .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn:hover, .close-btn:hover {
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.app-title {
    margin-left: 16px;
    font-size: 22px;
    font-weight: 500;
}

/* Navigation Drawer */
.drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    transition: left 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    transform: translateX(-100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

/* Garantir que drawer comece fechado */
.drawer:not(.open) {
    left: -280px !important;
    transform: translateX(-100%) !important;
}

.drawer-header {
    background-color: #1976d2;
    color: white;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.drawer-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.drawer-nome {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.drawer-menu {
    list-style: none;
    padding: 8px 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    max-height: calc(100vh - 120px); /* altura máxima considerando o header do drawer */
}

/* Comentário: estilizar scrollbar do drawer-menu em desktop */
.drawer-menu::-webkit-scrollbar {
    width: 8px;
}

.drawer-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.drawer-menu::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.drawer-menu::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.drawer-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    position: relative;
    gap: 12px; /* Espaçamento entre ícone e texto */
}

/* Menu expansível */
.menu-expandable {
    position: relative;
}

.menu-expandable .menu-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.menu-expandable .menu-toggle > span:first-child {
    margin-right: 12px;
    flex-shrink: 0;
}

.menu-expandable .menu-toggle-text {
    flex-grow: 1;
    text-align: left;
}

.menu-toggle {
    justify-content: space-between;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.menu-arrow {
    transition: transform 0.3s ease;
    font-size: 20px;
}

.menu-expandable.expanded .menu-arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f5f5f5;
    max-height: 0;
    overflow: hidden; /* Ocultar quando fechado */
    transition: max-height 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.menu-expandable.expanded .submenu {
    max-height: 50vh !important; /* altura máxima baseada na viewport para permitir scroll */
    overflow-y: auto !important; /* Mostrar scrollbar vertical quando expandido */
    overflow-x: hidden !important; /* Ocultar scrollbar horizontal */
}

/* Comentário: estilizar scrollbar do submenu */
.submenu::-webkit-scrollbar {
    width: 6px;
}

.submenu::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 3px;
}

.submenu::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 3px;
}

.submenu::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.submenu li a {
    padding: 12px 16px 12px 48px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.submenu li a:hover {
    background-color: #e0e0e0;
}

.drawer-menu li a:hover {
    background-color: #f5f5f5;
}

.drawer-menu li a .material-icons {
    margin-right: 16px;
    color: #666;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Main Content */
.content {
    margin-top: 64px;
    padding: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    overflow-x: hidden;
}

/* Container para páginas com header fixo */
body:has(.header) .container,
body:has(.app-bar) .container {
    padding-top: 70px !important;
}

/* Garantir que páginas com header tenham padding-top */
body > .container:first-of-type {
    padding-top: 70px;
}

/* Ajuste para páginas que usam header diretamente no body */
body:has(> .header) {
    padding-top: 0;
}

body:has(> .header) > .container {
    padding-top: 70px !important;
}

/* Ajuste específico para páginas com header e container */
.header + .container {
    padding-top: 70px !important;
    margin-top: 0 !important;
}
/* Cards de Avisos/Comunicados na Home */
.home-section { background:#fff; border-radius:12px; box-shadow:0 2px 10px rgba(0,0,0,.06); padding:16px; margin-top:16px; }
.home-section h3 { margin:0 0 12px 0; color:#1976d2; }
.home-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:12px; }
.home-card { background:#fafafa; border-radius:10px; padding:12px 14px; border:1px solid #eee; display:flex; flex-direction:column; gap:8px; }
.home-card .data-destaque { font-size:13px; color:#f35518; font-weight:600; margin-bottom:4px; text-transform:capitalize; }
.home-card .title { font-weight:600; color:#333; }
.home-card .meta { font-size:12px; color:#888; }
/* Links de anexos nos comunicados (mobile/desktop) */
.home-card a {
    color: #1976d2;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}
/* Estilos para "Ler mais" / "Ler menos" */
.mensagem-conteudo {
    display: block;
}
.mensagem-texto {
    display: inline;
}
.mensagem-completa {
    display: none;
}
.ler-mais-link {
    color: #1976d2 !important;
    text-decoration: none !important;
    font-weight: 500;
    margin-left: 4px;
    cursor: pointer;
    display: inline !important;
    align-items: unset !important;
    gap: unset !important;
}
.ler-mais-link:hover {
    text-decoration: underline !important;
}
@media (max-width: 768px) {
    .home-card a { font-size: 14px; }
    .ler-mais-link { font-size: 14px; }
}

.page {
    display: none;
    animation: fadeIn 0.3s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page h2 {
    color: #333;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 500;
}

/* Form */
.form {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 14px;
}

.form-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: #1976d2;
}

.btn-primary {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1565c0;
}

/* List */
.list {
    list-style: none;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item .material-icons {
    margin-right: 16px;
    color: #666;
}

.placeholder {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #666;
    text-align: center;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(25, 118, 210, 0.45), rgba(21, 101, 192, 0.45)), url('praia-grande.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto; /* garante rolagem em telas pequenas */
    padding: 16px 0; /* espaço para botão não ficar colado na borda */
}

.login-screen.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0;
    pointer-events: none;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    padding: 40px;
    width: 90%;
    max-width: 420px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    font-size: 72px;
    color: #1976d2;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}
img.login-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 16px;
}

.login-header h1 {
    color: #1976d2;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.login-form {
    margin-top: 24px;
}

.login-form .form-field input {
    background-color: rgba(255, 255, 255, 0.9);
}

.login-form .form-field input:focus {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.remember-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: -8px;
}

.remember-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox input {
    width: 16px;
    height: 16px;
}

.btn-block {
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
    transition: all 0.3s ease;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 118, 210, 0.4);
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 8px;
}

#captchaQuestion {
    font-weight: bold;
    color: #1976d2;
    font-size: 16px;
    min-width: 80px;
}

#captcha {
    width: 80px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
}

#captcha:focus {
    border-color: #1976d2;
    outline: none;
}

/* Botão de login com loading */
#loginBtn {
    position: relative;
    overflow: hidden;
}

.btn-loading {
    display: none;
}

.btn-loading.show {
    display: inline;
}

/* Honeypot - garantir que seja invisível */
input[name="website"], 
input[name="url"] {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide app content when not logged in */
body.not-logged-in .app-bar,
body.not-logged-in .drawer,
body.not-logged-in .content,
body.not-logged-in .overlay {
    display: none !important;
    visibility: hidden !important;
}

/* Garantir que o login apareça apenas quando não logado */
/* Removido - agora usando opacity e pointer-events */

/* Modal de Logout */
.logout-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff3e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.logout-icon .material-icons {
    font-size: 48px;
    color: #f57c00;
}

.text-info {
    color: #666;
    font-size: 14px;
    margin-top: 12px;
}

/* Modal genérico */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
}

.modal-small {
    max-width: 450px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.modal-header .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-header .close-btn:hover {
    background: #f5f5f5;
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #eee;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #f57c00;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #e64a19;
}

/* Responsive */
@media (max-width: 768px) {
    .app-bar {
        padding: 15px 20px;
    }
    
    .app-title {
        font-size: 18px;
        margin-left: 12px;
    }
    
    .user-info {
        gap: 6px;
    }
    
    .user-info span:last-child {
        display: none;
    }
    
    .drawer {
        width: 80%; /* ocupar 80% da largura no mobile */
        left: -80%;
        z-index: 1001;
        transform: translateX(-100%);
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        box-shadow: 6px 0 16px rgba(0,0,0,0.25);
    }
    
    .drawer.open {
        left: 0;
        transform: translateX(0);
    }
    
    .drawer:not(.open) {
        left: -80% !important;
        transform: translateX(-100%) !important;
    }
    
    .content {
        margin-top: 64px;
        padding: 16px;
    }
    
    .form {
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .login-container {
        padding: 24px;
        max-width: 95%;
        margin: 0 16px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .login-icon {
        font-size: 56px;
    }
    img.login-icon {
        width: 64px;
        height: 64px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 16px;
    }
    
    .modal-actions {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .modal-actions button {
        width: 100%;
    }
    
    .drawer-menu li a {
        padding: 16px;
        font-size: 16px;
    }
    
    .submenu li a {
        padding: 12px 16px 12px 48px;
        font-size: 14px;
    }
    
    .submenu a .material-icons {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .app-bar {
        padding: 15px 20px;
    }
    
    .app-title {
        font-size: 18px;
        margin-left: 8px;
    }
    
    .back-btn {
        margin-right: 8px;
        padding: 8px;
    }
    
    .content {
        margin-top: 64px;
        padding: 12px;
    }
    
    .form {
        padding: 16px;
        margin: 0 -12px;
        border-radius: 0;
    }
    
    .login-container {
        padding: 20px;
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
    
    .login-icon {
        font-size: 48px;
    }
    img.login-icon {
        width: 56px;
        height: 56px;
    }
    
    .login-form .form-group {
        margin-bottom: 20px;
    }
    
    .login-form input {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .login-form button {
        padding: 14px;
        font-size: 16px;
    }
    
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        padding: 16px;
    }
    
    .drawer {
        width: 80%;
        left: -80%;
        z-index: 1001;
        transform: translateX(-100%);
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        box-shadow: 6px 0 16px rgba(0,0,0,0.25);
    }
    
    .drawer.open {
        left: 0;
        transform: translateX(0);
    }
    
    .drawer:not(.open) {
        left: -80% !important;
        transform: translateX(-100%) !important;
    }
    
    .drawer-menu li a {
        padding: 14px;
        font-size: 15px;
    }
    
    .submenu li a {
        padding: 10px 14px 10px 42px;
        font-size: 13px;
    }
    
    .submenu a .material-icons {
        font-size: 16px;
    }
}

/* Melhorias para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .content {
        padding: 24px;
        max-width: 100%;
    }
    
    .form {
        padding: 24px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .login-container {
        max-width: 450px;
    }
    
    .modal-content {
        max-width: 600px;
    }
}

/* Melhorias para telas grandes */
@media (min-width: 1200px) {
    .content {
        max-width: 1400px;
        margin: 64px auto 0;
        padding: 24px;
    }
    
    /* Comentário: garantir scroll no submenu administrativo em desktop */
    .menu-expandable.expanded .submenu {
        max-height: calc(100vh - 200px) !important; /* altura máxima baseada na viewport menos header */
        overflow-y: auto !important; /* Forçar scrollbar vertical */
        overflow-x: hidden !important; /* Ocultar scrollbar horizontal */
    }
    
    /* Estilizar scrollbar do submenu em desktop */
    .submenu::-webkit-scrollbar {
        width: 8px;
    }
    
    .submenu::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .submenu::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }
    
    .submenu::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .form {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .login-container {
        max-width: 500px;
    }
    
    .modal-content {
        max-width: 700px;
    }
}

@media (min-width: 1600px) {
    .content {
        max-width: 1600px;
        padding: 32px;
    }
    
    .form {
        max-width: 800px;
    }
    
    .modal-content {
        max-width: 800px;
    }
}

/* Estilos para submenu administrativo */
.menu-section {
    margin: 10px 0;
}

.menu-section-title {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #1976d2;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 5px;
}

.menu-section-title .material-icons {
    margin-right: 8px;
    font-size: 20px;
}

/* Comentário: esta definição de .submenu é para outros contextos (não menu administrativo) */
/* Usar seletor mais específico para não interferir com o menu administrativo */
.menu-section .submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    margin-left: 10px;
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-radius: 6px;
    margin: 2px 8px;
}

.submenu a:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.submenu a .material-icons {
    margin-right: 8px;
    font-size: 20px;
}