/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* --- ESTILOS GLOBAIS E RESET --- */
/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #004d99; /* Azul Marinho Profissional (da logo) */
    --color-secondary: #ff6600; /* Laranja/Cobre para Destaque (da logo) */
    --color-dark: #002e5c; /* NOVO AZUL MUITO ESCURO: Para o fundo de seções escuras, usando o tom base da logo */
    --color-light: #f5f7fa; /* Fundo claro aprimorado */
    --color-grey-bg: #e9ecef; /* Cinza para fundo de boxes admin */
    --color-success: #27ae60; /* Verde para sucesso */
    --color-error: #e74c3c; /* Vermelho para erro */
    --color-info: #3498db; /* Azul Claro para informações */
    --font-main: 'Montserrat', sans-serif;
    --font-alt: 'Open Sans', sans-serif; /* Fonte alternativa para textos longos */

    /* Tamanhos Fixos */
    --header-height-desktop: 70px; /* Levemente ajustado */
    --header-height-mobile: 60px; /* Mais compacto para mobile */
    --footer-height: 55px;
}

body {
    font-family: var(--font-main);
    line-height: 1.7; /* Aumentado para melhor leitura */
    color: var(--color-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: white; /* Fundo branco no frontend */
}

/* CLASSE PARA CENTRALIZAR O FORMULÁRIO NA TELA (USADO NO LOGIN/CADASTRO) */
.fullscreen-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--color-light); 
}

/* NOVO ESTILO: Container para o formulário de login/cadastro para melhor visual */
.login-container {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 450px; /* Largura máxima definida */
    width: 100%;
}
.login-container h1 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 25px;
}
.login-container .form-group {
    margin-bottom: 15px;
}
.login-container input[type="email"],
.login-container input[type="password"] {
    width: 100%; /* Garante que os inputs ocupem a largura total do container */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.login-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}


/* CONTAINER GERAL */
.container {
    width: 95%; /* Mais largura para aproveitar telas maiores */
    max-width: 1280px; /* Maior max-width */
    margin: 0 auto;
    padding: 0 15px; 
}

.text-center { text-align: center; }
.text-white { color: #ffffff; }

/* TIPOGRAFIA */
h1 { font-size: 3.2em; font-weight: 700; color: var(--color-primary); }
h2 { font-size: 2.4em; font-weight: 600; margin-bottom: 20px; }
h3 { font-size: 1.6em; font-weight: 600; margin-bottom: 15px; }
p { margin-bottom: 1em; } /* Espaçamento padrão para parágrafos */

/* BOTÕES (CTAs) - Estilo mais moderno */
.btn {
    display: inline-block;
    padding: 14px 30px; /* Mais preenchimento */
    border: none;
    border-radius: 9999px; /* Efeito "pílula" */
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05em;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15); /* Sombra mais suave */
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}
.btn-primary {
    background-color: var(--color-secondary);
    color: white;
}
.btn-primary:hover {
    background-color: #e65c00; 
}
.btn-secondary {
    background-color: var(--color-primary);
    color: white;
}
.btn-secondary:hover {
    background-color: #003a7a;
}
.btn-large {
    padding: 18px 50px;
    font-size: 1.2em;
}

/* ALERTS */
.alert {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: 1px solid transparent;
}
.alert-error {
    background-color: #f8d7da;
    color: var(--color-error);
    border-color: #f5c6cb;
}
.alert-success {
    background-color: #d4edda;
    color: var(--color-success);
    border-color: #c3e6cb;
}
.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}
.alert-info {
    background-color: #d1ecf1;
    color: var(--color-info);
    border-color: #bee5eb;
}

/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* --- LAYOUT FIXO E ÁREA DE ROLAGEM (FRONTEND - INDEX.PHP) --- */
/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

/* CABEÇALHO FIXO */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height-desktop); 
    display: flex;
    align-items: center;
    transition: height 0.3s;
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo img {
    height: 50px; /* Aumentada a altura da logo no desktop */
    display: block;
    transition: height 0.3s;
}
nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    align-items: center;
}
nav ul li {
    margin-left: 30px;
}
nav ul li a {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}
nav ul li a:hover {
    color: var(--color-secondary);
}
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s;
}
nav ul li a:hover::after {
    width: 100%;
}
.cta-nav {
    border: 2px solid var(--color-secondary);
    background-color: white;
    color: var(--color-secondary) !important;
    padding: 8px 18px !important;
    border-radius: 9999px !important;
    margin-left: 20px;
    font-size: 0.95em;
    box-shadow: none;
}
.cta-nav:hover {
    background-color: var(--color-secondary);
    color: white !important;
}
.cta-nav::after { content: none; }

.mobile-menu-toggle {
    display: none; /* Esconde por padrão no desktop */
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--color-primary);
    cursor: pointer;
}

/* CONTEÚDO PRINCIPAL (ÁREA ROLÁVEL) - FRONTEND */
main {
    flex: 1;
    overflow-y: auto; 
    padding-top: var(--header-height-desktop);
    padding-bottom: var(--footer-height); 
    min-height: 100vh;
}

/* RODAPÉ FIXO */
footer {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.9em;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
}
footer .container {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between; /* Distribui os itens */
    height: 100%;
    padding: 0 20px;
}
footer p {
    margin: 0;
}
.footer-copyright {
    opacity: 0.8;
}

/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* --- ESTILOS DE SEÇÃO (FRONTEND) --- */
/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

.section-padded {
    padding: 100px 0; /* Mais padding para espaçamento */
}
.bg-light { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-dark); }
.section-title {
    font-size: 3em;
    margin-bottom: 15px;
    color: var(--color-primary);
}
.section-subtitle {
    font-size: 1.4em;
    margin-bottom: 60px;
    color: #555;
    font-family: var(--font-alt);
}

/* HERO SECTION */
.hero {
    /* Usando um fundo sutil */
    background: linear-gradient(rgba(245, 247, 250, 0.95), rgba(245, 247, 250, 0.95)), url('https://placehold.co/1920x800/f5f7fa/004d99?text=Fundo+Sutil') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: left;
    min-height: calc(100vh - var(--header-height-desktop) - var(--footer-height)); 
    padding: 50px 0;
}
.hero h1 {
    font-size: 4em; /* Maior destaque */
    margin-bottom: 20px;
}
.hero h2 {
    font-size: 1.9em;
    font-weight: 500;
    color: #444;
    margin-bottom: 50px;
}

/* CARROSSEL DE IMAGENS */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 100%;
    margin-bottom: 0; /* Sem margem inferior */
}
.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.carousel-slide {
    min-width: 100%;
    height: 400px; /* Altura fixa para o carrossel */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}
.carousel-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 40px;
    border-radius: 10px;
    max-width: 80%;
}
.carousel-content h3 {
    color: var(--color-secondary);
    margin-bottom: 5px;
}
.carousel-content p {
    font-family: var(--font-alt);
    margin-bottom: 0;
    font-size: 1.1em;
}
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: background 0.3s;
}
.carousel-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}
#prevBtn { left: 10px; border-radius: 5px; }
#nextBtn { right: 10px; border-radius: 5px; }


/* O DESAFIO / GRID DE FEATURES */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Aumentado o espaçamento */
}
.feature-box {
    background: white;
    padding: 35px;
    border-radius: 15px; /* Mais arredondado */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra mais leve */
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-bottom: 6px solid var(--color-secondary); /* Detalhe visual inferior */
}
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.feature-box h3 {
    color: var(--color-primary);
    margin-top: 10px;
    font-size: 1.8em;
}
.feature-box p {
    font-family: var(--font-alt);
    font-size: 1.05em;
}


/* SOLUÇÃO / FLUXO DE PROCESSO (Mantido, mas com ajustes de cor) */
.process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    padding: 40px 0;
}
.process-flow::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 5%;
    right: 5%;
    height: 3px;
    background-color: var(--color-primary);
    opacity: 0.15;
    z-index: 1;
}
.step {
    text-align: center;
    position: relative;
    padding-top: 10px;
    z-index: 2;
}
.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: white;
    font-weight: 700;
    font-size: 1.6em;
    border: 5px solid white;
    box-shadow: 0 0 0 5px var(--color-secondary);
}
.step h3 {
    color: var(--color-secondary);
    font-size: 1.3em;
}
.step p {
    font-family: var(--font-alt);
}

/* DIFERENCIAL (Fundo Escuro) */
.grid-2-col {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Coluna de texto maior */
    gap: 60px;
    align-items: center;
}
.comparison-block {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.box-comparison {
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Cores aprimoradas para melhor visual: */
.bad {
    /* Vermelho tijolo mais profissional, mantendo contraste */
    background-color: #A33A2B; 
    border-left: 8px solid #E74C3C; /* Vermelho Erro */
}
.good {
    /* Azul marinho profundo, alinhado com a logo */
    background-color: #003a7a; 
    border-left: 8px solid var(--color-secondary); /* Laranja Destaque */
}
.box-comparison h4 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: white;
    font-weight: 700;
}
.box-comparison p {
    color: #f0f0f0;
    font-family: var(--font-alt);
}
.text-block p {
    margin-bottom: 25px;
    font-size: 1.2em;
    line-height: 1.8;
    font-family: var(--font-alt);
}

/* CORRIGIDO: Cores para o título e subtítulo na seção escura */
.bg-dark .section-title, 
.bg-dark .section-subtitle {
    color: white; 
}


/* CONTATO E FORMULÁRIO (Melhorado o espaçamento) */
#contact-form input,
#contact-form textarea,
#contact-form-fast input,
#contact-form-fast textarea {
    width: 100%;
    max-width: 550px; /* Aumentado a largura máxima */
    padding: 18px;
    margin: 12px auto; /* Centraliza */
    border: 1px solid #ccc;
    border-radius: 10px;
    display: block;
    font-family: var(--font-main);
    font-size: 1.0em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Foco nos inputs: Usar a cor primária para o foco */
#contact-form input:focus,
#contact-form textarea:focus,
#contact-form-fast input:focus,
#contact-form-fast textarea:focus {
    border-color: var(--color-primary); 
    box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.2); /* Sombra do azul primário */
    outline: none;
}


#contact-form button,
#contact-form-fast button {
    margin-top: 30px;
    width: 100%;
    max-width: 550px;
}
/* Estilo para o botão do WhatsApp na seção de Contato */
.btn-whatsapp {
    background-color: #25D366; /* Cor oficial do WhatsApp */
    color: white;
    display: inline-flex; /* Permite alinhar ícone e texto */
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
    background-color: #128C7E;
}
.whatsapp-icon {
    /* Ícone do WhatsApp (SVG Simples) */
    width: 20px;
    height: 20px;
    fill: white;
}


/* PÁGINA INSTITUCIONAL */
.institutional-content {
    padding: 30px 0;
    max-width: 900px;
    margin: 0 auto;
}
.institutional-text {
    font-family: var(--font-alt);
    font-size: 1.15em;
    line-height: 2; /* Espaçamento de linha maior para leitura */
    white-space: pre-wrap; /* Preserva quebras de linha e espaços do textarea */
}

/* Estilo para conteúdo puxado de arquivo */
.institutional-file-link {
    display: block;
    max-width: 600px;
    margin: 20px auto 40px auto;
    padding: 15px 20px;
    background-color: var(--color-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: background-color 0.3s;
}
.institutional-file-link:hover {
    background-color: #e0e6ed;
}


/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* --- MEDIA QUERIES (RESPONSIVIDADE FRONTEND) --- */
/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .section-padded {
        padding: 80px 0;
    }
    .hero h1 { font-size: 3em; }
    .hero h2 { font-size: 1.6em; }
    .section-title { font-size: 2.5em; }
    .grid-3 { gap: 30px; }
    .process-flow { gap: 20px; }
    .carousel-slide { height: 350px; }
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .text-block {
        order: 2; /* Coloca o texto depois do bloco de comparação no mobile */
    }
    .comparison-block {
        order: 1;
    }
}

@media (max-width: 768px) {
    /* HEADER MOBILE */
    header {
        height: var(--header-height-mobile); 
        padding: 0;
    }
    header .container {
        padding: 0 15px;
    }
    .logo img {
        height: 40px; /* Logo menor no mobile */
    }
    nav {
        /* Menu Hamburger */
        position: absolute;
        top: var(--header-height-mobile);
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        display: none; /* Escondido por padrão */
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
        padding-bottom: 10px;
    }
    nav.active {
        display: block; /* Mostra quando ativo */
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 20px;
    }
    nav ul li {
        margin: 10px 0;
        width: 100%;
    }
    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1.1em;
    }
    .cta-nav {
        display: block;
        width: 90%;
        margin: 10px auto !important;
        text-align: center;
    }
    .mobile-menu-toggle {
        display: block; /* Mostra o botão de menu */
    }

    /* MAIN MOBILE */
    main {
        padding-top: var(--header-height-mobile); 
        min-height: calc(100vh - var(--header-height-mobile) - var(--footer-height));
    }
    .hero {
        min-height: 50vh;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5em;
    }
    .hero h2 {
        font-size: 1.3em;
    }

    /* SEÇÕES MOBILE */
    .section-padded {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2em;
    }
    .section-subtitle {
        font-size: 1.1em;
        margin-bottom: 40px;
    }
    .grid-3 {
        grid-template-columns: 1fr; 
        gap: 25px;
    }
    .process-flow {
        grid-template-columns: 1fr 1fr; /* Duas colunas em tablets */
        row-gap: 40px;
        column-gap: 15px;
    }
    /* Ajuste para telas muito pequenas no processo */
    @media (max-width: 480px) {
         .process-flow {
            grid-template-columns: 1fr;
         }
    }
    .process-flow::before {
        display: none; 
    }
    .carousel-slide { height: 250px; }
    .carousel-content h3 { font-size: 1.4em; }
    .carousel-content p { font-size: 0.9em; }

    /* FOOTER MOBILE */
    footer .container {
        flex-direction: column;
        gap: 5px;
        font-size: 0.8em;
    }
}


/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* --- LAYOUT FIXO E ESTILOS ADMIN (ADMIN.PHP & CADASTRO.PHP) --- */
/* --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

.admin-body {
    background-color: var(--color-light);
}
.admin-header {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 0; /* Mais compacto */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 500;
    height: auto; /* Deixa o conteúdo definir a altura */
    display: flex;
    align-items: center;
}
.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite quebras em telas pequenas */
    padding: 0 20px;
}
.admin-header h1 {
    color: white;
    font-size: 1.4em;
    margin: 0;
    flex-grow: 1; /* Ocupa espaço disponível */
}
.admin-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px; /* Pequena margem para separar do título no mobile */
}
.admin-nav a,
.admin-nav button {
    color: white;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Borda sutil */
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85em;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.admin-nav a:hover,
.admin-nav button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}
.admin-nav .btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}
.admin-nav .btn-primary:hover {
    background-color: #e65c00;
}

/* TABS DE NAVEGAÇÃO INTERNA ADMIN */
.admin-tabs {
    display: flex;
    margin-top: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #ddd;
    overflow-x: auto; /* Permite rolar as abas no mobile */
    padding-bottom: 5px;
}
.admin-tabs a {
    flex-shrink: 0; /* Impede que as abas diminuam */
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    padding: 10px 20px;
    margin-bottom: -2px; 
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}
.admin-tabs a.active {
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-secondary);
}
.admin-tabs a:hover:not(.active) {
    color: var(--color-primary);
}


/* CONTEÚDO PRINCIPAL ADMIN */
.admin-main {
    flex: 1;
    overflow-y: auto; 
    /* Altura ajustada dinamicamente, mantendo o cálculo de margem */
    padding: 20px 0;
    margin-top: 50px; /* Espaço para o header fixo */
    margin-bottom: var(--footer-height); /* Espaço para o footer fixo */
    width: 100%;
}
/* Reajusta a margem do main para mobile */
@media (max-width: 768px) {
    .admin-main {
        margin-top: 100px; /* Mais espaço para o header móvel expandido */
    }
}

.admin-main .container {
    padding: 25px;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.admin-main h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--color-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.admin-main h2 {
    color: var(--color-secondary);
    border-left: 4px solid var(--color-primary);
    padding-left: 10px;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}
/* Estilo para grupo de configurações */
.config-group {
    background: var(--color-grey-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}
.config-group h2 {
    color: var(--color-primary);
    border-left: none;
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 20px;
    padding-left: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}


/* RODAPÉ ADMIN */
.admin-footer {
    background-color: var(--color-dark);
    color: #ccc;
    text-align: center;
    padding: 10px 0;
    font-size: 0.8em;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 500;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ESTILOS DE FORMULÁRIO GERAL */
.form-group label {
    font-weight: 700;
    margin-top: 20px;
    color: var(--color-primary);
    /* Garante que o label ocupe toda a linha */
    display: block; 
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select,
.config-group .form-group input[type="checkbox"] {
    width: 100%; /* Aplica largura total aos campos de config tbm */
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.form-group textarea {
    min-height: 150px;
}
.form-group .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
}
.form-group .checkbox-wrapper input[type="checkbox"] {
    width: auto;
    padding: 0;
    height: 20px;
}
.form-group .checkbox-wrapper label {
    margin: 0;
    font-weight: 500;
    color: var(--color-dark);
}
.image-upload-wrapper {
    display: flex;
    gap: 10px;
}
.image-upload-wrapper select {
    max-width: 250px;
    flex-shrink: 0;
}
.file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-top: 10px;
}
.file-preview a {
    color: var(--color-info);
    word-break: break-all;
}
.file-icon {
    font-size: 1.5em;
    color: var(--color-secondary);
}


/* TABELA GERAL (USADA PARA CARROSSEL E CONTATOS) */
.data-table { /* Renomeado para ser mais genérico e aplicar estilos modernos */
    width: 100%;
    border-collapse: separate; /* Permite border-radius */
    border-spacing: 0;
    margin-top: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; /* Garante que o border-radius funcione */
}
.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    vertical-align: middle;
    font-weight: 400;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background-color: var(--color-dark);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    border-bottom: 1px solid var(--color-dark);
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.data-table tbody tr:hover {
    background-color: #f0f4f8; /* Destaque ao passar o mouse */
}
/* Estilo para contatos não lidos */
.data-table tbody tr.row-new-contact {
    background-color: #fff8e1; /* Fundo amarelo suave para novo contato */
    border-left: 5px solid var(--color-secondary);
}
.status-badge {
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8em;
    font-weight: 700;
    color: white;
}
.status-badge.ativo { background-color: var(--color-success); }
.status-badge.inativo { background-color: var(--color-error); }
.action-buttons {
    display: flex;
    gap: 5px;
}
.action-buttons .btn {
    padding: 8px 12px; /* Aumentado um pouco */
    font-size: 0.85em;
    border-radius: 4px;
    box-shadow: none;
    transform: none;
}
.action-buttons .btn:hover {
    box-shadow: none;
    transform: none;
    opacity: 0.8;
}
.img-preview {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}

/* ESTILOS DA PÁGINA DE USUÁRIOS */
.user-table .permission-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-size: 0.75em;
    font-weight: 600;
}
.user-table .tag-admin { background-color: var(--color-primary); color: white; }
.user-table .tag-user { background-color: var(--color-info); color: white; }
.user-table .tag-allowed { background-color: var(--color-success); color: white; }
.user-table .tag-denied { background-color: var(--color-error); color: white; }

.user-permissions-form-wrapper {
    background: #fcfcfc;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 30px;
}
.user-permissions-form-wrapper h3 {
    color: var(--color-secondary);
    font-size: 1.5em;
    margin-bottom: 20px;
}
.permissions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.permission-group {
    background: var(--color-light);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.permission-group h4 {
    color: var(--color-primary);
    font-size: 1.1em;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .permissions-grid {
        grid-template-columns: 1fr;
    }
    .user-table td {
        white-space: normal; /* Permite quebrar linha no mobile */
    }
}


/* MEDIA QUERIES ADMIN ESPECÍFICAS PARA TABELA */
@media (max-width: 600px) {
    .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr { 
        display: block; 
    }
    .data-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .data-table tr { border: 1px solid #ccc; margin-bottom: 10px; border-radius: 8px; }
    .data-table td { 
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
        text-align: right;
    }
    .data-table td:before { 
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        text-align: left;
        font-weight: 700;
        color: var(--color-primary);
    }
    /* Mapeamento dos títulos das colunas para os dados (precisa ser ajustado por tabela) */
    .data-table.data-table td:nth-of-type(1):before { content: "ID"; }
    .data-table.data-table td:nth-of-type(2):before { content: "Status"; }
    .data-table.data-table td:nth-of-type(3):before { content: "Nome / Contato"; }
    .data-table.data-table td:nth-of-type(4):before { content: "Mensagem"; }
    .data-table.data-table td:nth-of-type(5):before { content: "Data"; }
    .data-table.data-table td:nth-of-type(6):before { content: "Ações"; }
    
    /* Mapeamento para Tabela de Carrossel */
    .data-table.carousel-table td:nth-of-type(2):before { content: "Título/Descrição"; }
    .data-table.carousel-table td:nth-of-type(3):before { content: "Imagem"; }
    .data-table.carousel-table td:nth-of-type(4):before { content: "Ordem"; } 
    .data-table.carousel-table td:nth-of-type(5):before { content: "Status"; }
    .data-table.carousel-table td:nth-of-type(6):before { content: "Ações"; }
    
    /* Mapeamento para Tabela de Usuários */
    .data-table.user-table td:nth-of-type(1):before { content: "Nome (Email)"; }
    .data-table.user-table td:nth-of-type(2):before { content: "Permissões Chave"; }
    .data-table.user-table td:nth-of-type(3):before { content: "Criado Em"; }
    .data-table.user-table td:nth-of-type(4):before { content: "Ações"; }
    
    .action-buttons { justify-content: flex-end; }
    
    /* Ajuste para a tabela de contatos */
    .data-table td:nth-of-type(3) small { display: block; }
}