/* Reset e Estilos Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f9f9f9, #eceff1);
    color: #2c3e50;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    
    /* deixa o texto mais nítido */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* transição suave pra mudanças (hover, etc.) */
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    position: relative;
    text-decoration: none;
    color: #1e88e5;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* efeito underline animado */
a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #1e88e5;
    transition: width 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

a:hover::after {
    width: 100%;
    background: #0d47a1;
}
/*  */

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e88e5, #42a5f5); /* Degradê moderno */
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px; /* Cantos mais arredondados */
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4); /* Sombra suave */
    transition: all 0.3s ease;
    text-transform: uppercase; /* Deixa o texto em maiúsculas */
}

/* Efeito ao passar o mouse */
.btn:hover {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.6);
    transform: translateY(-2px); /* Leve efeito de elevação */
}

/* Efeito ao clicar */
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 8px rgba(30, 136, 229, 0.5);
}


.btn.small {
    padding: 5px 10px;
    font-size: 14px;
}

.btn.danger {
    background-color: #e53935;
}

.btn.danger:hover {
    background-color: #b71c1c;
}

.btn.cancel {
    background-color: #757575;
}

.btn.cancel:hover {
    background-color: #424242;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
}

.main-nav a:hover {
    color: #1e88e5;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 150px;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Páginas específicas */
.login-container,
.register-container,
.profile-container {
    max-width: 500px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h2,
.register-container h2,
.profile-container h2 {
    margin-bottom: 30px;
    color: #1d4ed8;
    text-align: center;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 20px;
}

.dashboard {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.dashboard h2 {
    margin-bottom: 30px;
    color: #1e88e5;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.quick-link {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #333;
}

.quick-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-link h3 {
    margin-bottom: 15px;
    color: #1e88e5;
}

.quick-link ul {
    list-style: none;
}

.quick-link li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

.quick-link li:last-child {
    border-bottom: none;
}

.avisos-container,
.prestacoes-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.avisos-container h2,
.prestacoes-container h2 {
    color: #1d4ed8; /* azul mais moderno */
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.admin-actions {
    margin-bottom: 30px;
    text-align: right;
}

.avisos-list {
    display: grid;
    gap: 20px;
}

.aviso {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1e88e5;
}

.aviso.importante {
    border-left-color: #e53935;
    background-color: #ffebee;
}

.aviso h3 {
    margin-bottom: 10px;
    color: #1e88e5;
}

.aviso time {
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
    color: #757575;
}

.prestacoes-table {
    width: 100%;
    border-collapse: collapse;
}

.prestacoes-table th,
.prestacoes-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.prestacoes-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

/* Admin */
.admin-dashboard {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.admin-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.widget {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.widget h3 {
    margin-bottom: 15px;
    color: #1e88e5;
}

.big-number {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
    color: #333;
}

.admin-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.admin-container h2 {
    margin-bottom: 30px;
    color: #1e88e5;
}

.admin-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.admin-form {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.admin-form h3 {
    margin-bottom: 20px;
    color: #1e88e5;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f5f5f5;
    font-weight: 500;
}

.actions {
    display: flex;
    gap: 10px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

/* status */

/* Status colors */
.status-pendente { color: #FFA500; font-weight: bold; }
.status-aprovado { color: #008000; font-weight: bold; }
.status-rejeitado { color: #FF0000; font-weight: bold; }

/* Action buttons */
.btn.success { background-color: #28a745; }
.btn.success:hover { background-color: #218838; }

.admin-content {
    display: block;
}

.admin-form {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.admin-list {
    width: 100%;
    margin-bottom: 40px;
}

/* Mantenha o restante do CSS para tabelas */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.admin-table th, 
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .admin-table {
        display: block;
        overflow-x: auto;
    }
    
    .actions {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .actions .btn {
        width: 100%;
        margin: 2px 0;
    }
}

.table-section {
    margin-bottom: 40px;
}

.table-section h3 {
    margin-bottom: 15px;
    color: #1e88e5;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* =========================
   Reset & Body
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f5f7fb;
    margin: 0;
    padding: 0;
    color: #2d3436;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* =========================
   Títulos
========================= */
/* Título principal */
h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e88e5; /* azul mais vivo e moderno */
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    line-height: 1.3;
}

/* Linha decorativa abaixo do h2 */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e88e5, #0d47a1);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Subtítulo */
h3 {
    font-size: 1.4em;
    color: #34495e; /* tom mais elegante e suave */
    margin-bottom: 20px;
    font-weight: 600;
    border-left: 4px solid #3498db;
    padding-left: 10px;
    position: relative;
}

/* Pequena barra decorativa no h3 */
h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3498db, #1e88e5);
    border-radius: 2px;
}


/* =========================
   Containers
========================= */
.boletos-container, .dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Caixa principal */
.boletos-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    padding: 25px;
    transition: all 0.3s ease;
}

/* =========================
   Formulários
========================= */
.boletos-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.boletos-container label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #34495e;
}

.boletos-container input,
.boletos-container select,
.boletos-container button {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.boletos-container input:focus,
.boletos-container select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 6px rgba(52,152,219,0.3);
}

.boletos-container button {
    background-color: #27ae60;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.boletos-container button:hover {
    background-color: #219150;
    transform: translateY(-2px);
}

/* =========================
   Mensagens
========================= */
.boletos-container p {
    background: #eafaf1;
    color: #2d8659;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #27ae60;
    font-weight: 500;
}

/* =========================
   Cards / Quick Links
========================= */
.quick-links, .boletos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.quick-link, .card {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    padding: 20px;
    flex: 1 1 280px;
    min-width: 260px;
    transition: all 0.3s ease;
}

.quick-link:hover, .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.quick-link h3, .card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.25em;
    color: #2d3436;
    font-weight: 600;
}

.quick-link ul {
    list-style: none;
}

.quick-link li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

.quick-link li:last-child {
    border-bottom: none;
}

.quick-link small {
    color: #7f8c8d;
    font-size: 0.8em;
}

/* =========================
   Dashboard Sections
========================= */
.avisos-section,
.boletos-section,
.prestacoes-section,
.admin-shortcuts {
    background: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.avisos-section:hover,
.boletos-section:hover,
.prestacoes-section:hover,
.admin-shortcuts:hover {
    transform: translateY(-3px);
}

.avisos-section li {
    margin-bottom: 12px;
    padding: 12px;
    background: #f9fbfd;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    font-size: 0.95em;
}

/* =========================
   Tabela Boletos
========================= */
.boletos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    border-radius: 14px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.boletos-table th, .boletos-table td {
    padding: 14px 16px;
    text-align: left;
}

.boletos-table th {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.boletos-table tr:nth-child(even) {
    background-color: #fafafa;
}

.boletos-table tr:hover {
    background-color: #f0f7ff;
    transition: background 0.3s;
}

/* =========================
   Botões
========================= */
.btn {
    border: none;
    cursor: pointer;
    text-align: center;
    border-radius: 10px;
    padding: 10px 18px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: #3498db;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.btn.success { background-color: #27ae60; }
.btn.success:hover { background-color: #219150; }

.btn.danger { background-color: #e74c3c; }
.btn.danger:hover { background-color: #c0392b; }

.btn.accent { background-color: #6c5ce7; }
.btn.accent:hover { background-color: #5a4dd1; }

.btn.small {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
}

/* =========================
   Admin Shortcuts
========================= */
.admin-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-shortcuts .btn {
    flex: 1;
    min-width: 200px;
}

/* =========================
   Responsividade
========================= */
@media (max-width: 992px) {
    .dashboard {
        padding: 15px;
    }
}
@media (max-width: 480px) {
    h2 { font-size: 1.5em; }
    .avisos-section,
    .boletos-section,
    .prestacoes-section,
    .admin-shortcuts {
        padding: 14px;
        margin-bottom: 18px;
    }
    .btn {
        font-size: 0.9em;
        padding: 8px 14px;
    }
}

/* =========================
   Footer
========================= */
.site-footer {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #ecf0f1;
    padding: 18px 20px;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 40px;
    border-top: 3px solid rgba(255,255,255,0.1);
}

.site-footer p {
    margin: 0;
    line-height: 1.6;
}

.site-footer .author {
    font-weight: 600;
    color: #f1c40f;
}

.site-footer .author:hover {
    color: #ffe680;
    transition: color 0.3s ease;
}

/* Responsivo */
@media (max-width: 768px) {
    .site-footer {
        font-size: 0.85rem;
        padding: 15px 12px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        font-size: 0.8rem;
        padding: 12px 10px;
    }
}
/* Faz o body usar flexbox e ocupar a tela inteira */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Main ocupa todo espaço disponível antes do footer */
main {
    flex: 1;
}


/* ===========================
   Container principal
=========================== */
.denuncias-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* ===========================
   Formulário de denúncia
=========================== */
.denuncia-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.denuncia-form label {
    font-weight: bold;
    color: #444;
}

.denuncia-form input[type="text"],
.denuncia-form textarea,
.denuncia-form input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.denuncia-form textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 8px 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn:hover {
    background: #0056b3;
}

/* ===========================
   Mensagens de feedback
=========================== */
.success {
    color: green;
    font-weight: bold;
    margin-bottom: 15px;
}

.error {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ===========================
   Estilo da tabela (desktop)
=========================== */
.denuncias-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.denuncias-table th,
.denuncias-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.denuncias-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.denuncias-table tr:nth-child(even) {
    background: #f9f9f9;
}

.denuncias-table tr:hover {
    background: #eef;
}

/* ===========================
   Mobile: tabela -> cards
=========================== */
@media (max-width: 768px) {
    .denuncias-table,
    .denuncias-table thead,
    .denuncias-table tbody,
    .denuncias-table th,
    .denuncias-table tr {
        display: block;
        width: 100%;
    }

    .denuncias-table thead {
        display: none; /* esconde cabeçalho */
    }

    .denuncias-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .denuncias-table td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 8px 0;
        font-size: 14px;
    }

    .denuncias-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #444;
        flex: 1;
        margin-right: 10px;
        text-align: left;
    }

    .denuncias-table td a.btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* ===========================
   Dashboard geral
=========================== */
.dashboard {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.dashboard h2 {
    margin-bottom: 25px;
    font-size: 26px;
    color: #333;
}

/* ===========================
   Seções principais
=========================== */
.dashboard > div {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.dashboard h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
}

.dashboard h3 a {
    font-size: 13px;
}

/* ===========================
   Botões
=========================== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    background: #007bff;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
}

.btn:hover {
    background: #0056b3;
}

.btn.small {
    padding: 5px 10px;
    font-size: 12px;
}

/* ===========================
   Listas (avisos, denúncias)
=========================== */
.avisos-section ul,
.denuncias-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.avisos-section li,
.denuncias-section li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.avisos-section li strong,
.denuncias-section li strong {
    color: #222;
}

.avisos-section li small,
.denuncias-section li small {
    color: #777;
    font-size: 12px;
}

/* ===========================
   Tabela de boletos
=========================== */


/* ===========================
   Atalhos Admin
=========================== */
.admin-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-shortcuts .btn {
    flex: 1 1 200px;
    text-align: center;
}


/* ---------------- HEADER ---------------- */
header {
    background: #2c3e50; /* cor sólida */
    color: #ffffff;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

header:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

/* Logo + título */
header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

header .logo:hover {
    transform: scale(1.1);
}

header .logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header .logo img:hover {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

header .logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}

header .logo h1:hover {
    color: #1abc9c;
}

/* Navegação */
header nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

header nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #1abc9c;
    transform: translateY(-2px);
}



/* -------- NAV -------- */
.main-nav {
    position: relative;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.1rem;
    margin: 0;
    padding: 0;
}

.main-nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.main-nav ul li a:hover {
    color: #1abc9c;
}

/* -------- BOTÃO HAMBURGER -------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
}

/* -------- RESPONSIVO -------- */
@media (max-width: 768px) {
    header .container {
        justify-content: space-between; /* mantém logo à esquerda e botão à direita */
    }

    header .logo h1 {
        font-size: 1.2rem;
    }

    .main-nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background: #34495e;
        width: 220px;
        padding: 1rem;
        gap: 1rem;
        display: none; /* oculto por padrão */
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    }

    .main-nav ul.active {
        display: flex;
    }
  /* Alinhamento básico do header */
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  margin-right: 10px;
}

/* Menu normal no desktop */
.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Botão some no desktop */
.menu-toggle {
  display: none;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}

/* -------- MOBILE -------- */
@media (max-width: 768px) {
  .main-nav ul {
    display: none; /* links somem */
  }

  .menu-toggle {
    display: block !important;   /* botão aparece */
    margin-left: auto;           /* gruda no canto direito */
    align-self: center;          /* garante alinhamento vertical */
  }
}

  
}


/* ---------------- FOOTER ---------------- */
.site-footer {
    background:  #2c3e50; /* mesmo azul do header */
    padding: 1.5rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #ffffff; /* texto em branco */
}

.site-footer .author {
    font-weight: 500;
    color: #ffffff; /* mantém destaque em branco */
}

.site-footer a {
    color: #ffffff; /* links em branco */
    text-decoration: underline;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    opacity: 0.8; /* efeito sutil de hover */
}


/* ---------------- DENÚNCIAS ---------------- */
.denuncias-container {
    background: #ffffff;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}



.denuncias-container h3, .denuncias-container h4 {
    color: #2563eb;
    margin-top: 1.5rem;
}

.denuncias-container .texto-denuncia{
    color: #1d4ed8; /* azul mais moderno */
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.denuncias-container p {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.denuncias-container .error {
    color: #dc2626; /* vermelho */
    font-weight: bold;
    margin: 1rem 0;
}

.denuncias-container .success {
    color: #16a34a; /* verde */
    font-weight: bold;
    margin: 1rem 0;
}

/* Formulário de edição */
.denuncias-container form {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.denuncias-container form label {
    font-weight: 600;
}

.denuncias-container form select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.denuncias-container form button.btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: fit-content;
}

.denuncias-container form button.btn:hover {
    opacity: 0.9;
}

/* Fotos da denúncia */
.denuncia-fotos {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.denuncia-fotos .btn {
    background: #2563eb;
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
}

.denuncia-fotos .btn:hover {
    opacity: 0.9;
}

/* Tabela de denúncias */
.denuncias-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.denuncias-table th, .denuncias-table td {
    border: 1px solid #ddd;
    padding: 0.7rem 0.5rem;
    text-align: left;
}

.denuncias-table th {
    background: #2563eb;
    color: #fff;
}

.denuncias-table tr:nth-child(even) {
    background: #f9f9f9;
}

.denuncias-table a.btn {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    background: #2563eb;
    margin-right: 0.3rem;
}

.denuncias-table a.btn.danger {
    background: #dc2626; /* vermelho para excluir */
}

.denuncias-table a.btn:hover {
    opacity: 0.9;
}

/* Responsividade */
@media (max-width: 768px) {
    .denuncias-table th, .denuncias-table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .denuncia-fotos {
        flex-direction: column;
    }
}


/* ---------------- PAINEL ADMINISTRATIVO ---------------- */
.admin-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f8fafc;
}

.admin-dashboard h2 {
    color: #1d4ed8; /* azul mais moderno */
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

/* Widgets principais */
.admin-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-widgets .widget {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-widgets .widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.admin-widgets .widget h3 {
    color: #1d4ed8;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.admin-widgets .widget .big-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #111827;
}

.admin-widgets .widget a.btn {
    background: #1d4ed8;
    color: #fff;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-widgets .widget a.btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Seções recentes (denúncias e boletos) */
.recent-section {
    margin-top: 2rem;
}

.recent-section h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

/* Tabelas dentro do painel */
.denuncias-table,
.boletos-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.denuncias-table th,
.denuncias-table td,
.boletos-table th,
.boletos-table td {
    border: 1px solid #ddd;
    padding: 0.7rem 0.5rem;
    text-align: left;
}

.denuncias-table th,
.boletos-table th {
    background: #2563eb;
    color: #fff;
}

.denuncias-table tr:nth-child(even),
.boletos-table tr:nth-child(even) {
    background: #f9f9f9;
}

.denuncias-table a.btn,
.boletos-table a.btn {
    background: #2563eb;
    color: #fff;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 0.3rem;
}

.denuncias-table a.btn:hover,
.boletos-table a.btn:hover {
    opacity: 0.9;
}

/* Mensagens de erro e sucesso */
.admin-dashboard .error {
    color: #dc2626;
    font-weight: bold;
    margin: 1rem 0;
}

.admin-dashboard .success {
    color: #16a34a;
    font-weight: bold;
    margin: 1rem 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .admin-widgets {
        grid-template-columns: 1fr;
    }

    .denuncias-table th,
    .denuncias-table td,
    .boletos-table th,
    .boletos-table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}
@media (max-width: 768px) {
    .boletos-table thead {
        display: none; /* esconde o cabeçalho */
    }

    .boletos-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 0.5rem;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .boletos-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.4rem 0.5rem;
        flex-wrap: wrap;
    }

    .boletos-table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1 1 100%; /* força cada label para uma linha */
        margin-bottom: 0.2rem;
    }

    .boletos-table tbody td a.btn {
        flex: 0 0 auto; /* botão não estica */
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* infracoes */
/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container principal */
.infracoes-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Títulos */
.infracoes-container h2,
.infracoes-container h3,
.infracoes-container h4 {
    margin-bottom: 1rem;
    color: #333;
}

/* Mensagens de sucesso e erro */
.success {
    background-color: #d4edda;
    color: #155724;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
}

/* Formulários */
.infracoes-container form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.infracoes-container label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.infracoes-container input[type="text"],
.infracoes-container input[type="datetime-local"],
.infracoes-container select,
.infracoes-container textarea,
.infracoes-container input[type="file"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 100%;
}

.infracoes-container textarea {
    min-height: 100px;
    resize: vertical;
}

/* Botões */
.btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    background-color: #0056b3;
}

.btn.danger {
    background-color: #dc3545;
}

.btn.danger:hover {
    background-color: #a71d2a;
}

/* Ações administrativas */
.admin-actions {
    margin-bottom: 1rem;
}

/* Tabela de infrações */
.infracoes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.infracoes-table th,
.infracoes-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.infracoes-table th {
    background-color: #f1f1f1;
}

.infracoes-table tr:nth-child(even) {
    background-color: #fafafa;
}

.infracoes-table tr:hover {
    background-color: #f1f1f1;
}

/* Responsividade */
@media (max-width: 768px) {
    .infracoes-table thead {
        display: none;
    }

    .infracoes-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .infracoes-table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .infracoes-table td:last-child {
        border-bottom: 0;
    }

    .infracoes-table td::before {
        content: attr(data-label);
        font-weight: 600;
        flex: 1;
    }

    .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container principal */
.user-infracoes {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #fefefe;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Títulos */
.user-infracoes h2 {
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

/* Mensagens */
.user-infracoes p {
    text-align: center;
    color: #555;
    margin-top: 1rem;
}

/* Tabela */
.user-infracoes table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.user-infracoes th,
.user-infracoes td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.user-infracoes th {
    background-color: #f3f3f3;
    font-weight: 600;
}

.user-infracoes tr:nth-child(even) {
    background-color: #fafafa;
}

.user-infracoes tr:hover {
    background-color: #f1f1f1;
}

/* Botões */
.btn {
    padding: 0.45rem 0.85rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Responsividade */
@media (max-width: 768px) {
    .user-infracoes table thead {
        display: none;
    }

    .user-infracoes table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 0.5rem;
    }

    .user-infracoes table td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem;
        border: none;
        border-bottom: 1px solid #eee;
    }

    .user-infracoes table td:last-child {
        border-bottom: 0;
    }

    .user-infracoes table td::before {
        content: attr(data-label);
        font-weight: 600;
        flex: 1;
    }

    .btn {
        width: 100%;
        margin-top: 0.5rem;
    }
}


/* Container principal */
.user-infracao-detalhe {
    max-width: 700px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Título */
.user-infracao-detalhe h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Labels e valores */
.user-infracao-detalhe p {
    font-size: 15px;
    margin: 12px 0;
    color: #555;
}

.user-infracao-detalhe p strong {
    color: #222;
    display: inline-block;
    width: 140px;
}

/* Evidência (imagem) */
.user-infracao-detalhe img {
    display: block;
    margin-top: 10px;
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Botões */
.user-infracao-detalhe .btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    font-size: 14px;
}

.user-infracao-detalhe .btn:hover {
    background: #004c99;
}

/* Botão Voltar */
.user-infracao-detalhe .btn:last-child {
    background: #777;
}

.user-infracao-detalhe .btn:last-child:hover {
    background: #555;
}

/* Estilo para destacar infrações e denúncias */
.destaque-alerta {
    border: 2px solid #e74c3c;
    background: #fdecea;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.2);
}

.destaque-alerta h2,
.destaque-alerta h3 {
    color: #c0392b;
}

.destaque-alerta table {
    border: 1px solid #e74c3c;
}

.destaque-alerta th {
    background: #c0392b;
    color: white;
}
/* Botões menores para celular */
.btn.small {
    font-size: 0.85rem;
    padding: 4px 10px;
}

/* Ajuste específico em telas pequenas */
@media (max-width: 600px) {
    .btn.small {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    /* Deixar o título + botão na mesma linha sem quebrar feio */
    .avisos-section h3,
    .boletos-section h3,
    .prestacoes-section h3,
    .denuncias-section h3,
    .infracoes-section h3 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .avisos-section h3 .btn,
    .boletos-section h3 .btn,
    .prestacoes-section h3 .btn,
    .denuncias-section h3 .btn,
    .infracoes-section h3 .btn {
        margin-top: 5px;
    }
}

/* ==============================
   Estilização da Página de Documentos
   ============================== */

/* Container geral da página */
.admin-dashboard {
    background: #fff;
    padding: 25px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    max-width: 1200px;
}

/* Títulos principais */


/* Subtítulos */
.admin-dashboard h3 {
    font-size: 20px;
    margin: 20px 0 15px;
    color: #34495e;
    font-weight: 500;
}

/* ==============================
   Formulário de Upload
   ============================== */
.form-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e1e1e1;
    margin-bottom: 25px;
}

.form-section label {
    display: block;
    font-weight: 600;
    margin: 10px 0 5px;
    color: #555;
}

.form-section .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease-in-out;
}

.form-section .form-control:focus {
    border-color: #3498db;
    outline: none;
}

/* Botão de upload */
.form-upload button.btn {
    background: #3498db;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-upload button.btn:hover {
    background: #2980b9;
}

/* ==============================
   Alertas de sucesso e erro
   ============================== */
.alert {
    padding: 12px 18px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.alert-success {
    background-color: #e8f9e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-danger {
    background-color: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

/* ==============================
   Tabela de Documentos
   ============================== */
.boletos-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
}

.boletos-table thead {
    background: #3498db;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
}

.boletos-table th,
.boletos-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.boletos-table tbody tr:hover {
    background: #f1f9ff;
    transition: 0.2s ease-in-out;
}

/* ==============================
   Botões de Ações
   ============================== */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

/* Botão padrão */
.btn.small {
    padding: 6px 12px;
    font-size: 13px;
}

/* Botão visualizar */
.btn.primary,
.btn-success {
    background: #2ecc71;
    color: #fff;
    border: none;
}

.btn.primary:hover,
.btn-success:hover {
    background: #27ae60;
}

/* Botão excluir */
.btn.danger,
.btn-danger {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.btn.danger:hover,
.btn-danger:hover {
    background: #c0392b;
}

/* ==============================
   Botão voltar
   ============================== */
.back-btn {
    margin-top: 15px;
    display: flex;
    justify-content: center; /* centraliza o botão horizontalmente */
}

.back-btn .btn {
    background: linear-gradient(135deg, #4b79a1, #283e51);
    color: #fff;
    padding: 4px 20px;     /* menor altura, largura maior */
    font-size: 13px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 6px rgba(40, 62, 81, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;   /* garante que o texto fique em uma linha */
    text-align: center;
    min-width: 100px;      /* largura mínima para o texto */
}

/* Hover */
.back-btn .btn:hover {
    background: linear-gradient(135deg, #35506a, #1f2a38);
    box-shadow: 0 4px 8px rgba(31, 42, 56, 0.5);
    transform: translateY(-1px);
}

/* Clique */
.back-btn .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(31, 42, 56, 0.4);
}

/* 📱 Ajuste para celular */
@media (max-width: 600px) {
    .back-btn .btn {
        padding: 3px 16px;      /* altura menor */
        font-size: 12px;        /* texto menor */
        border-radius: 10px;
        min-width: 110px;        /* largura suficiente para texto */
        max-width: 170px;       /* evita que fique muito largo */
    }
}




/* ==============================
   Responsividade
   ============================== */
@media (max-width: 768px) {
    .boletos-table thead {
        display: none;
    }

    .boletos-table tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
    }

    .boletos-table td {
        display: block;
        text-align: right;
        padding: 8px;
        font-size: 14px;
        border-bottom: none;
    }

    .boletos-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        color: #34495e;
    }
}

/* === VOTAÇÕES === */
.votacao-card {
    background: #fff;
    padding: 20px;
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.votacao-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.votacao-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #333;
}

.votacao-card p {
    color: #555;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.votacao-card form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.votacao-card label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
}

.votacao-card button {
    margin-top: 8px;
    padding: 8px 16px;
    background: #4CAF50;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.votacao-card button:hover {
    background: #43a047;
}

/* Gráfico de resultados */
.resultado-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-top: 15px;
}

/* Container geral */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Títulos */
.page-title {
    font-size: 26px;
    margin-bottom: 15px;
    color: #1d4ed8;
}

.section-title {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

/* Cards */
.admin-card {
    background: #fdfdfd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Formulários */
.admin-form .form-group {
    margin-bottom: 15px;
}

.admin-form .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Botões */
.btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    color: white;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-primary {
    background-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-warning {
    background-color: #ffc107;
}

.btn-danger {
    background-color: #dc3545;
}

.btn:hover {
    opacity: 0.9;
}

/* Tabelas */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.admin-table thead {
    background-color: #007bff;
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

/* Badges */
.badge {
    padding: 5px 8px;
    border-radius: 5px;
    color: white;
    font-size: 13px;
}

.badge-success {
    background-color: #28a745;
}

.badge-secondary {
    background-color: #6c757d;
}

/* Alertas */
.alert {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}


/* ===== Modal Container ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease-in-out;
}

/* Animação de aparição */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Modal Content ===== */
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.35s ease;
    position: relative;
    text-align: center;
}

/* Animação suave do modal */
@keyframes slideDown {
    from {
        transform: translateY(-25px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== Fechar Modal ===== */
.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    color: #777;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    z-index: 10;
}

.modal-close:hover {
    color: #e63946;
    transform: scale(1.2);
}

/* ===== Modal Content ===== */
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    animation: slideDown 0.4s ease;
    position: relative; /* importante para posicionar o X */
    text-align: center;
}

/* Animação do modal */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ===== Fechar Modal (usa .close-modal, como no seu HTML) ===== */
.close-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    /* deixa o alvo clicável bem grande (44x44 é o recomendado) */
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;       /* X grande */
    line-height: 1;
    color: #666;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    z-index: 10;

    transition: transform .15s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.close-modal:hover {
    color: #fff;
    background-color: #e63946; /* vermelho no hover */
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
    transform: scale(1.06);
}

.close-modal:active {
    transform: scale(0.96);
}

.close-modal:focus-visible {
    outline: 2px solid #e63946;
    outline-offset: 2px;
}

/* ===== Título do Modal (ajuste para o ID que você usa no HTML) ===== */
/* Se o seu HTML usa id="tituloVotacao", use este seletor: */
#tituloVotacao {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

/* ===== Lista de Usuários ===== */
#listaUsuarios {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

#listaUsuarios h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #444;
    text-align: center;
}

.votos-lista {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px;
}

/* Cada coluna da lista */
.votos-lista > div {
    flex: 1;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Título da coluna */
.votos-lista h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #555;
    text-align: center;
}

/* Lista de nomes */
.votos-lista ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.votos-lista ul li {
    padding: 5px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px dashed #ddd;
}

/* Rolagem bonita */
.votos-lista ul::-webkit-scrollbar { width: 6px; }
.votos-lista ul::-webkit-scrollbar-thumb { background-color: #bbb; border-radius: 3px; }
.votos-lista ul::-webkit-scrollbar-thumb:hover { background-color: #888; }

/* ===== Responsividade ===== */
@media (max-width: 600px) {
    .votos-lista { flex-direction: column; }
    .close-modal { font-size: 28px; top: 8px; right: 8px; }
}

/* ===== Título Principal de Votações ===== */
.page-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 25px 0 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #4CAF50;
    display: inline-block;
    width: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.5s ease forwards;
}

/* Animação */
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Ajuste para Votações Ativas no Mobile ===== */
.votacoes-ativas {
    display: flex;
    flex-direction: column; /* Sempre empilha título e botão */
    gap: 8px;
}

/* Caso o botão tenha classe específica */
.votacoes-ativas .btn {
    width: 100%;
    max-width: 180px;
}

/* Responsividade extra para telas menores */
@media (max-width: 600px) {
    .votacoes-ativas {
        align-items: flex-start; /* Alinha o botão à esquerda */
    }
}

/* Inputs e selects */
.card form input[type="text"],
.card form input[type="number"],
.card form input[type="date"],
.card form select {
  flex: 1 1 180px;
  max-width: 250px;
  padding: 6px 10px; /* menor padding */
  height: 38px; /* 🔹 altura fixa para evitar campos gigantes */
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
  color: #333;
  box-sizing: border-box;
}

/* Foco nos inputs */
.card form input[type="text"]:focus,
.card form input[type="number"]:focus,
.card form input[type="date"]:focus,
.card form select:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* Responsividade: Mobile */
@media (max-width: 768px) {
  .card form {
    flex-direction: column;
    align-items: stretch;
  }

  .card form input,
  .card form select,
  .card form button {
    width: 100%;
    max-width: 100%;
    padding: 6px 10px;
    height: 40px; /* 🔹 altura reduzida no celular */
    font-size: 0.95rem;
  }
}

/* === TABELA PADRÃO (DESKTOP) === */
.table-gastos {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 0.95rem;
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.table-gastos thead {
  background-color: #007bff;
  color: #fff;
}

.table-gastos th,
.table-gastos td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

/* === MOBILE: TRANSFORMA TABELA EM CARDS === */
@media (max-width: 768px) {
  .table-gastos {
    border: none;
  }

  .table-gastos thead {
    display: none; /* Esconde o cabeçalho */
  }

  .table-gastos tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .table-gastos tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .table-gastos td {
    display: flex;
    justify-content: space-between;
    text-align: left;
    padding: 6px 0;
    border: none;
    font-size: 0.95rem;
  }

  /* Labels personalizadas para cada campo */
  .table-gastos td:nth-child(1)::before {
    content: "Descrição:";
    font-weight: bold;
    color: #007bff;
  }
  .table-gastos td:nth-child(2)::before {
    content: "Categoria:";
    font-weight: bold;
    color: #007bff;
  }
  .table-gastos td:nth-child(3)::before {
    content: "Valor:";
    font-weight: bold;
    color: #007bff;
  }
  .table-gastos td:nth-child(4)::before {
    content: "Data:";
    font-weight: bold;
    color: #007bff;
  }
  .table-gastos td:nth-child(5)::before {
    content: "Ações:";
    font-weight: bold;
    color: #007bff;
  }

  /* Botão excluir ocupa largura total no mobile */
  .table-gastos form {
    width: 100%;
  }

  .table-gastos form .btn {
    width: 100%;
    padding: 8px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin-top: 5px;
  }
}

/* === BOTÕES === */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(145deg, #007bff, #0056b3);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18), inset 0 -2px 4px rgba(255,255,255,0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: leve elevação, gradiente invertido e brilho sutil */
.btn:hover {
  background: linear-gradient(145deg, #0056b3, #007bff);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28), inset 0 -2px 6px rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Focus / Active: feedback visual */
.btn:focus,
.btn:active {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.4), inset 0 -2px 4px rgba(255,255,255,0.1);
  transform: translateY(0);
}

.btn:hover {
  background-color: #0056b3;
}

.btn.danger {
  background-color: #dc3545;
}

.btn.danger:hover {
  background-color: #a71d2a;
}

/* === CONTAINER DOS GRÁFICOS === */
.graficos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 20px;
  margin-top: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* === CANVAS DOS GRÁFICOS === */
.graficos canvas {
  width: 100% !important;
  max-width: 600px;
  height: auto !important;
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
}

/* === FORÇAR EXIBIÇÃO EM TELAS GRANDES === */
@media screen and (min-width: 769px) {
  .graficos {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}




/* closer menu */

.close-menu {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.6rem;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: none; /* Esconde no desktop */
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

/* Só aparece no mobile */
@media (max-width: 768px) {
    .close-menu {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Efeito de hover */
    .close-menu:hover,
    .close-menu:focus {
        background: rgba(26, 188, 156, 0.25);
        color: #1abc9c;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 0 15px rgba(26, 188, 156, 0.6);
    }

    /* Brilho pulsante sutil */
    @keyframes pulseGlow {
        0%, 100% {
            box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
        }
        50% {
            box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
        }
    }

    .close-menu {
        animation: pulseGlow 2s infinite ease-in-out;
    }
}



/* lista dos Paragrafos */

.dashboard p {
    margin-bottom: 12px;
    padding: 12px 16px;
    background-color: #fdfdfd;       /* fundo suave */
    border-left: 3px solid #3498db;  /* destaque sutil */
    border-radius: 8px;
    font-size: 14px;
    color: #5a5a5a;                     /* cinza elegante */
    line-height: 1.5;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); /* leve profundidade */
}

/* Hover elegante */
.dashboard p:hover {
    background-color: #ffffff;
    border-left-color: #2c3e50;     /* destaque ao passar o mouse */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Links discretos dentro do parágrafo */
.dashboard p a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.dashboard p a:hover {
    color: #1d6fa5;
    text-decoration: underline;
}

/* Texto em negrito refinado */
.dashboard p strong {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 768px) {
    .dashboard p {
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* boletos */



/* ===============================
   Boletos Table — Premium
================================= */
.boletos-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    margin-top: 18px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
}

/* Cabeçalho elegante com gradiente */
.boletos-table thead {
    background: linear-gradient(135deg, #2c82c9, #3498db);
    color: #ffffff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.6px;
}

.boletos-table th {
    padding: 14px 16px;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Células */
.boletos-table td {
    padding: 13px 16px;
    text-align: left;
    color: #2c3e50;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #ffffff;
    transition: background-color 0.25s ease, transform 0.2s ease;
    position: relative; /* necessário para bolinhas de status */
}

/* Linhas alternadas */
.boletos-table tbody tr:nth-child(even) td {
    background-color: #fafbfc;
}

/* Hover refinado */
.boletos-table tbody tr:hover td {
    background-color: #f5faff;
    transform: scale(1.002);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Primeira coluna mais forte */
.boletos-table td:first-child {
    font-weight: 500;
    color: #34495e;
}

/* Última coluna centralizada */
.boletos-table td:last-child {
    text-align: center;
}

/* Bordas arredondadas do topo */
.boletos-table th:first-child {
    border-top-left-radius: 14px;
}
.boletos-table th:last-child {
    border-top-right-radius: 14px;
}

/* Brilho sutil no topo */
.boletos-table thead::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2980b9);
}

/* Links de ação */
.boletos-table a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.boletos-table a:hover {
    color: #1d6fa5;
    transform: translateY(-1px);
}

/* Remove borda da última linha */
.boletos-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===============================
   Status Premium com bolinhas
================================= */
.boletos-table td:nth-child(2) { /* assume que status está na 2ª coluna */
    padding-left: 28px;
    font-weight: 600;
}

.boletos-table td:nth-child(2)::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: gray; /* default */
}

/* Pequeno efeito hover na bolinha */
.boletos-table td:nth-child(2)::before:hover {
    transform: translateY(-50%) scale(1.3);
    transition: transform 0.2s ease;
}

/* Efeito de Denuncias */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.status-recebida {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
}
.status-em-andamento {
  background: linear-gradient(135deg, #3498db, #2c82c9);
}
.status-concluida {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.spin {
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}