/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Layout principal */
body {
    background: #f4f7fb;
    color: #333;
}

/* ===================== Navbar superior ===================== */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(180deg, #04b695, #04b695);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 2000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    color: #fff;
}

/* Logo */
.top-navbar .logo {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
}

/* Área direita da navbar */
.top-navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
}

.top-navbar .nav-right span#clock {
    font-weight: bold;
}

.top-navbar .nav-right button#dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #fff;
}

.top-navbar .nav-right .profile {
    padding: 5px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    gap: 8px;
}

.top-navbar .nav-right .profile .profile-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-navbar .nav-right .profile .logout-link {
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.top-navbar .nav-right .profile .logout-link:hover {
    text-decoration: underline;
}

/* Botão hambúrguer */
#toggle-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 15px;
}

#toggle-btn span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#toggle-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#toggle-btn.active span:nth-child(2) {
    opacity: 0;
}

#toggle-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================== Sidebar ===================== */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #04b695, #03473a);
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 60px; /* abaixo da navbar */
    left: 0;
    transform: translateX(-100%); /* inicialmente escondida */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 1500;
    padding-top: 20px;
}

/* Sidebar aberta */
.sidebar.open {
    transform: translateX(0); /* desliza para dentro */
}

/* ===================== Conteúdo principal ===================== */
.content {
    margin-top: 60px; /* altura da navbar */
    padding: 30px;
    flex: 1;
    transition: filter 0.3s ease; /* só escurece ao abrir sidebar */
}

/* Efeito visual opcional (escurece levemente o fundo quando sidebar aberta) */
.sidebar.open ~ .content {
    filter: brightness(0.9);
}

/* Sidebar colapsada (modo compacto, se quiser usar no futuro) */
.sidebar.collapsed {
    transform: translateX(-70%);
}

/* Impede cliques/interações quando fechada */
.sidebar.collapsed .menu-section,
.sidebar.collapsed .panel,
.sidebar.collapsed .single-link {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}


/* Header do menu */
.sidebar-header {
    display: flex;
    align-items: center;
    padding: 25px 25px;
}

.sidebar-header .logo {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .logo {
    opacity: 0;
    pointer-events: none;
}

/* Accordion menu */
.menu-section {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.accordion {
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    width: 100%;
    padding: 15px 20px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.accordion:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Ícones + textos */
.accordion i:first-child,
.panel a i,
.single-link i {
    margin-right: 12px;
    min-width: 20px;
    text-align: center;
}

/* Texto do menu */
.menu-text {
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 12px;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    pointer-events: none;
}

/* Arrow rotation */
.arrow {
    transition: transform 0.3s ease;
}

.arrow.rotated {
    transform: rotate(180deg);
}

/* Submenu panel */
.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.panel a {
    display: flex;
    align-items: center;
    padding: 12px 40px;
    text-decoration: none;
    color: #f6f6f6;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.panel a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Links diretos */
.single-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.single-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Banners de acessos recentes */
.recent-banners {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    cursor: pointer;
}

.recent-banners::-webkit-scrollbar {
    height: 8px;
}

.recent-banners::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.banner {
    flex: 0 0 290px;
    height: 170px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.banner:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Vídeo principal */
.video-banner {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.video-banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid de colaboradores */
.colaboradores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.colaborador {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.colaborador:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.colaborador img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.colaborador h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.btn-planilha {
    display: inline-block;
    padding: 8px 12px;
    background: #04b695;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-planilha:hover {
    background: #048a71;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 260px;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .content {
        margin-left: 0;
    }
}

/* ===================== Menu principal (Accordion) ===================== */
.sidebar .accordion {
  display: flex;
  align-items: center;
  position: relative;    /* necessário para posicionar o vídeo */
  padding-left: 55px;    /* espaço para o ícone à esquerda */
}

/* Vídeo ícone do menu principal à esquerda, atrás da linha vertical */
.sidebar .accordion .icon {
  position: absolute;
  left: 12px;            /* distância da borda da sidebar */
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  border-radius: 4px;
  object-fit: cover;
  pointer-events: none;  /* evita que clique bloqueie o botão */
  z-index: 0;            /* atrás do texto */
}

/* Texto acima do vídeo */
.sidebar .accordion .menu-text {
  position: relative;
  z-index: 1;
}

/* ===================== Submenus ===================== */
.sidebar .panel a.submenu-link {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 55px;    /* espaço para o vídeo */
  text-decoration: none;
  color: #f6f6f6;
  transition: background 0.2s;
}

/* Vídeo do submenu à esquerda */
.sidebar .panel a.submenu-link .icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  pointer-events: none;
  z-index: 0;
}

/* Texto acima do vídeo no submenu */
.sidebar .panel a.submenu-link .menu-text {
  position: relative;
  z-index: 1;
}

/* ===================== Seção principal ===================== */
.main-section {
    display: grid;
    grid-template-columns: 65% 30%;
    justify-content: space-between;
    align-items: start;
    gap: 30px;
    margin-top: 40px;
}

/* Vídeo */
.video-banner {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #000;
}

.video-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Atualizações */
.updates-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 0.95rem;
    height: 100%;
    width: 100%;
    max-width: 400px;
    overflow-y: auto;
}

.updates-box h3 {
    margin-bottom: 10px;
    color: #40a28f;
}

/* ===================== Banners fixos em linha ===================== */
.recent-banners {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.banner {
    width: 23%; /* mantém 4 banners na linha */
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ===================== Ajuste fino ===================== */
.updates-box h3 {
    margin-bottom: 12px;
    color: #40a28f;
}

.updates-box ul {
    list-style: none;
}

.updates-box li {
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}

.updates-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #40a28f;
    font-weight: bold;
}


/* ===================== Vídeos nos banners ===================== */
.banner {
    position: relative; /* necessário para o vídeo ficar dentro */
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px; /* mesma borda do banner */
}

@media (max-width: 900px) {
    .main-section {
        grid-template-columns: 1fr; /* empilha */
    }

    .video-banner {
        padding-top: 56.25%; /* volta ao normal em mobile */
    }
}

/* ===================== Ícone do single-link (Justificativas) ===================== */
.sidebar .single-link {
    display: flex;
    align-items: center;
    padding-left: 55px; /* espaço p/ o vídeo + texto */
    position: relative;
    color: #f6f6f6;
    text-decoration: none;
    transition: background 0.2s;
}

.sidebar .single-link .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;   /* mesmo tamanho dos outros ícones */
    height: 35px;
    border-radius: 4px;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;
}

.sidebar .single-link .menu-text {
    position: relative;
    z-index: 1;
}

/* ===================== Orçamento por Área - Responsivo real ===================== */
.banners-orcamento {
    display: flex;
    justify-content: center;  /* centraliza horizontalmente */
    align-items: flex-start;
    gap: 20px;                /* espaço entre banners */
    margin-top: 40px;
    flex-wrap: wrap;           /* quebra linha em telas menores */
}

.banner-area {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;         /* largura máxima */
    padding: 10px;
    box-sizing: border-box;
}

.banner-area img {
    width: 100%;
    height: auto;             /* mantém proporção da imagem */
    display: block;
    object-fit: contain;      /* nunca corta a imagem */
}

.banner-area .btn-planilha {
    display: block;
    width: 80%;
    margin-top: 10px;
    padding: 10px 0;
    background: #04b695;
    color: #fff;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.banner-area .btn-planilha:hover {
    background: #048a71;
}

/* RESPONSIVIDADE TOTAL */
@media (max-width: 800px) {
    .banners-orcamento {
        gap: 15px;
    }

    .banner-area {
        max-width: 90%;       /* ocupa quase toda largura em telas pequenas */
    }
}

/* ===================== Formulário de Sugestões ===================== */
.form-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 30px;
    padding-bottom: 50px;
}

.form-sugestao {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: box-shadow 0.3s ease;
}

.form-sugestao:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.form-sugestao label {
    font-weight: 600;
    color: #03473a;
    margin-bottom: 5px;
}

.form-sugestao input,
.form-sugestao textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    resize: vertical;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-sugestao input:focus,
.form-sugestao textarea:focus {
    border-color: #04b695;
    box-shadow: 0 0 5px rgba(4,182,149,0.3);
    outline: none;
}

.form-sugestao button {
    margin-top: 10px;
    padding: 12px 0;
    background: #04b695;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.form-sugestao button:hover {
    background: #048a71;
}

/* ===================== Página de login (centralizada, sem sidebar) ===================== */
body.pagina-login #toggle-btn {
    display: none;
}

body.pagina-login .login-central {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    box-sizing: border-box;
}

body.pagina-login .login-card {
    width: 100%;
    max-width: 440px;
    text-align: center;
    background: #fff;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.pagina-login .login-card h1 {
    font-size: 1.75rem;
    color: #03473a;
    margin-bottom: 12px;
}

body.pagina-login .login-descricao {
    font-size: 1rem;
    color: #555;
    margin-bottom: 28px;
    line-height: 1.5;
}

body.pagina-login .login-acoes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

body.pagina-login .form-bitrix-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

body.pagina-login .btn-bitrix-login,
body.pagina-login .btn-login-submit {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #2fc6f6;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

body.pagina-login .btn-login-submit {
    background: #04b695;
    margin-top: 8px;
}

body.pagina-login .btn-bitrix-login:hover {
    background: #1db3e0;
    color: #fff !important;
}

body.pagina-login .btn-login-submit:hover {
    background: #048a71;
}

body.pagina-login .login-divider {
    width: 100%;
    margin: 24px 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

body.pagina-login .login-subtitulo {
    margin-bottom: 12px;
    font-size: 0.9rem;
    opacity: 0.85;
}

body.pagina-login .form-sugestao.form-login {
    max-width: 100%;
    width: 100%;
    text-align: left;
    margin-top: 0;
    box-shadow: none;
    padding: 20px 0 0;
    background: transparent;
}

body.pagina-login .form-sugestao.form-login:hover {
    box-shadow: none;
}

body.pagina-login .login-erro-msg {
    color: #c62828;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

body.dark-mode.pagina-login {
    background: #1a1a2e;
}

body.dark-mode.pagina-login .login-card {
    background: #252538;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

body.dark-mode.pagina-login .login-card h1 {
    color: #04b695;
}

body.dark-mode.pagina-login .login-descricao {
    color: #ccc;
}

/* Formulário de login (mesma família visual, largura contida) */
.form-sugestao.form-login {
    max-width: 420px;
}

.form-sugestao .login-erro-msg {
    color: #c62828;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.25rem;
}

body.dark-mode .form-sugestao,
body.dark-mode .form-sugestao.form-login {
    background: #222;
    border: 1px solid #333;
    color: #e0e0e0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .form-sugestao label,
body.dark-mode .form-sugestao.form-login label {
    color: #7dd3c0;
}

body.dark-mode .form-sugestao input,
body.dark-mode .form-sugestao textarea,
body.dark-mode .form-sugestao.form-login input {
    background: #2d2d2d;
    border-color: #555;
    color: #f0f0f0;
}

body.dark-mode .form-sugestao input:focus,
body.dark-mode .form-sugestao textarea:focus,
body.dark-mode .form-sugestao.form-login input:focus {
    border-color: #04b695;
    box-shadow: 0 0 5px rgba(4, 182, 149, 0.35);
}

body.dark-mode .form-sugestao button,
body.dark-mode .form-sugestao.form-login button {
    background: #04b695;
    color: #fff;
}

body.dark-mode .form-sugestao button:hover,
body.dark-mode .form-sugestao.form-login button:hover {
    background: #048a71;
}

body.dark-mode .form-sugestao .login-erro-msg,
body.dark-mode .form-sugestao.form-login .login-erro-msg {
    color: #f48fb1;
}

/* Responsividade do formulário */
@media (max-width: 768px) {
    .form-sugestao {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-sugestao {
        padding: 15px;
        gap: 12px;
    }

    .form-sugestao input,
    .form-sugestao textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .form-sugestao button {
        padding: 10px 0;
        font-size: 0.95rem;
    }
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background: #f4f7fb;
}

/* ===================== Tema Escuro com Transição Suave ===================== */

/* Transição geral em tudo */
body, .top-navbar, .sidebar, .content, .updates-box {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Corpo escuro */
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

/* Navbar escura */
body.dark-mode .top-navbar {
    background: #1f1f1f;
    color: #fff;
    border-bottom: 1px solid #333;
}

/* Sidebar escura */
body.dark-mode .sidebar {
    background: linear-gradient(180deg, #000000, #000000);
    color: #fff;
}

/* Links e menus */
body.dark-mode .submenu-link,
body.dark-mode .single-link,
body.dark-mode .accordion {
    color: #fff;
    background-color: transparent;
}

body.dark-mode .submenu-link:hover,
body.dark-mode .single-link:hover,
body.dark-mode .accordion:hover {
    background-color: rgba(243, 243, 243, 0.1);
}

/* Conteúdo escuro */
body.dark-mode .content {
    background-color: #181818;
    color: #e0e0e0;
}

/* Caixa de atualizações */
body.dark-mode .updates-box {
    background-color: #222;
    border-color: #333;
}

/* Botão de modo escuro/claro */
#dark-mode-toggle {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: inherit;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 15px;
}

#dark-mode-toggle:hover {
    transform: rotate(20deg) scale(1.2);
    color: #04b695;
}

/* Animação suave quando o tema muda */
body.dark-mode #dark-mode-toggle {
    color: #ffd369; /* sol dourado no modo escuro */
}

/* ===================== Perfil ===================== */
.profile {
    display: flex;
    align-items: center;
    background: #04b695;
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.profile::before {
    content: "👤";
    margin-right: 8px;
    font-size: 18px;
}

.profile:hover {
    background: #03987e;
    transform: translateY(-2px);
}

/* Modo escuro */
body.dark-mode .profile {
    background: #333;
    color: #fff;
}

body.dark-mode .profile:hover {
    background: #04b695;
}

/* Overlay (fundo escurecido ao abrir sidebar) */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1200;
}

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

/* ===================== Seção de Ajuda ===================== */
.help-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 30px;
    margin-top: 40px;
    transition: background 0.3s ease, color 0.3s ease;
}

.help-section h2 {
    color: #04b695;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.help-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
}

.help-list li {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
}

.help-list li:hover {
    background: #f4fffc;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.help-list li strong {
    font-size: 1rem;
    color: #03473a;
    flex: 1;
}

/* Botão para abrir PDF */
.btn-download {
    background: #04b695;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-download:hover {
    background: #03987e;
    transform: scale(1.05);
}

.btn-download::before {
    content: "📄";
    font-size: 18px;
}

/* ===================== Tema Escuro (Ajuda) ===================== */
body.dark-mode .help-section {
    background: #1f1f1f;
    color: #f1f1f1;
}

body.dark-mode .help-list li {
    background: #2a2a2a;
    border-color: #333;
}

body.dark-mode .help-list li strong {
    color: #fff;
}

body.dark-mode .btn-download {
    background: #04b695;
    color: #fff;
}

body.dark-mode .btn-download:hover {
    background: #03a184;
}

/* ===================== Responsividade ===================== */
@media (max-width: 600px) {
    .help-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* ===== FAQ / DÚVIDAS FREQUENTES ===== */
.help-section h2 {
  margin-top: 40px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
}

.faq {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Remove o estilo feio padrão */
.faq details {
  background: var(--card-bg, #f5f5f5);
  border-radius: 12px;
  border: 1px solid var(--border-color, #ddd);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Quando aberto, destaque */
.faq details[open] {
  background: var(--card-bg-hover, #e8e8e8);
  border-color: var(--accent-color, #007bff);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Cabeçalho do item */
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-color, #222);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

/* Hover bonito */
.faq summary:hover {
  background: rgba(0,0,0,0.05);
}

/* Ícone de seta animada */
.faq summary::after {
  content: "▶";
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  margin-left: 8px;
  color: var(--text-color, #222);
}

/* Quando o item está aberto, gira a seta */
.faq details[open] summary::after {
  transform: rotate(90deg);
}

/* Corpo do texto */
.faq details p {
  padding: 0 20px 16px 20px;
  color: var(--text-secondary, #555);
  line-height: 1.5;
  font-size: 0.95rem;
}

.help-section a:hover {
    color: rgb(0, 0, 0);
}

.updates-box a:hover {
    color: rgb(0, 0, 0);
}

.content a:hover {
    color: rgb(0, 0, 0);
}

/* ===================== FILTRO PADRÃO (MÊS / ANO) ===================== */

.filtro-container {
    background: #ffffff;
    border-radius: 14px;
    padding: 25px 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 25px;
    align-items: flex-end;
    margin: 30px 0;
    flex-wrap: wrap;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.filtro-item label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #03473a;
    font-size: 0.95rem;
}

.filtro-item select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    background: #f9f9f9;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.filtro-item select:focus {
    outline: none;
    border-color: #04b695;
    box-shadow: 0 0 0 3px rgba(4, 182, 149, 0.2);
    background: #ffffff;
}

/* Botão buscar */
.btn-filtrar {
    padding: 13px 26px;
    border-radius: 10px;
    border: none;
    background: #04b695;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-filtrar:hover {
    background: #03987e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(4, 182, 149, 0.35);
}

/* Área de resultado */
.resultado-planilha {
    margin-top: 30px;
    background: #ffffff;
    border-radius: 14px;
    padding: 25px 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===================== MODO ESCURO ===================== */

body.dark-mode .filtro-container,
body.dark-mode .resultado-planilha {
    background: #1f1f1f;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

body.dark-mode .filtro-item label {
    color: #e0e0e0;
}

body.dark-mode .filtro-item select {
    background: #2a2a2a;
    border-color: #444;
    color: #ffffff;
}

body.dark-mode .filtro-item select:focus {
    border-color: #04b695;
    box-shadow: 0 0 0 3px rgba(4, 182, 149, 0.3);
}

body.dark-mode .resultado-planilha {
    color: #e0e0e0;
}

/* ===================== RESPONSIVO ===================== */

@media (max-width: 768px) {
    .filtro-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-filtrar {
        width: 100%;
        text-align: center;
    }
}

#login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#login-modal {
    background: #fff;
    padding: 30px;
    width: 320px;
    border-radius: 8px;
    text-align: center;
}

#login-modal h2 {
    margin-bottom: 20px;
}

#login-modal input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

#login-modal button {
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

#login-erro {
    color: red;
    margin-top: 10px;
}

body.dark-mode {
    background-color: #121212;
    color: #f5f5f5;
}

body.dark-mode .sidebar {
    background-color: #1f1f1f;
}

body.dark-mode .top-navbar {
    background-color: #1b1b1b;
}

/* Outros ajustes visuais, como bordas, links, botões etc */
body.dark-mode a,
body.dark-mode .menu-text {
    color: #f5f5f5;
}

/* ---------------------- BOTÕES ADMIN - ESTILO UNIFICADO ---------------------- */
#admin-acoes {
    display: flex;
    gap: 15px;
    margin-left: auto;
    align-items: center;
    flex-wrap: wrap;
}

.btn-admin {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Ações diferentes com cores do tema */
.btn-add {
    background: #04b695;
    color: #fff;
}

.btn-add:hover {
    background: #03987e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-edit {
    background: #048a71;
    color: #fff;
}

.btn-edit:hover {
    background: #036856;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-delete {
    background: #f44336;
    color: #fff;
}

.btn-delete:hover {
    background: #d32f2f;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Feedback ao clicar */
.btn-admin:active {
    transform: scale(0.97);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ---------------------- MODO ESCURO ---------------------- */
body.dark-mode .btn-add {
    background: #03987e;
}

body.dark-mode .btn-add:hover {
    background: #026957;
}

body.dark-mode .btn-edit {
    background: #026957;
}

body.dark-mode .btn-edit:hover {
    background: #014d46;
}

body.dark-mode .btn-delete {
    background: #c62828;
}

body.dark-mode .btn-delete:hover {
    background: #a71d1d;
}

body.dark-mode .btn-admin {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ---------------------- Páginas de erro HTTP ---------------------- */
.pagina-erro-content {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #e8f8f4 0%, #f4f7fb 100%);
}

.pagina-erro-container {
    width: 100%;
    max-width: 720px;
}

.pagina-erro-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.pagina-erro-codigo {
    font-size: 4rem;
    line-height: 1;
    font-weight: 800;
    color: #04b695;
    margin-bottom: 12px;
}

.pagina-erro-card h1 {
    font-size: 1.8rem;
    color: #03473a;
    margin-bottom: 10px;
}

.pagina-erro-mensagem {
    font-size: 1rem;
    color: #4f5f63;
    margin: 0 auto 24px auto;
    max-width: 560px;
}

.pagina-erro-acoes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagina-erro-botao {
    display: inline-block;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.pagina-erro-botao-primario {
    background: #04b695;
    color: #fff;
}

.pagina-erro-botao-primario:hover {
    background: #03987e;
}

.pagina-erro-botao-secundario {
    background: #edf1f4;
    color: #1f2b2e;
}

.pagina-erro-botao-secundario:hover {
    background: #dde4e8;
}

body.dark-mode .pagina-erro-content {
    background: linear-gradient(180deg, #111 0%, #1a1a1a 100%);
}

body.dark-mode .pagina-erro-card {
    background: #1f1f1f;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}

body.dark-mode .pagina-erro-codigo {
    color: #3fd4b8;
}

body.dark-mode .pagina-erro-card h1 {
    color: #e7f9f5;
}

body.dark-mode .pagina-erro-mensagem {
    color: #c6d1d4;
}

body.dark-mode .pagina-erro-botao-secundario {
    background: #2a2f32;
    color: #ecf0f1;
}

body.dark-mode .pagina-erro-botao-secundario:hover {
    background: #353b3f;
}

/* Responsividade */
@media (max-width: 600px) {
    #admin-acoes {
        justify-content: flex-start;
    }
    .btn-admin {
        flex: 1 1 100%;
        text-align: center;
    }
}
