/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1a1d2e;
    color: #ffffff;
    line-height: 1.6;
}

/* Estilo do Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #2b2f45;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: 700;
}

.logo img {
    margin-right: 10px;
}

.login-btn {
    background-color: #2b2f45;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #1e50cc;
}
.bg-vermelho {
    background-color: #ff4d4d;
    color: #fff;
}

.bg-vermelho {
    background-color: #ff4d4d;
    color: #fff;
}

.bg-amarelo {
    background-color: #ffcc00;
    color: #000;
}

.bg-verde {
    background-color: #28a745;
    color: #fff;
}
.bg-red-500 {
    background-color: #dc2626; /* Vermelho */
    color: #ffffff;
}

.bg-yellow-500 {
    background-color: #facc15; /* Amarelo */
    color: #000000;
}

.bg-green-500 {
    background-color: #16a34a; /* Verde */
    color: #ffffff;
}
.bg-gray-500 {
    background-color: #6b7280;
    color: #fff;
}

.menu-header ul{
    display: flex; 
    justify-content: space-around;
}

.menu-header ul li{
    display: block; 
    padding-left: 20px;
}

.menu-header ul li a {
    text-decoration: none;
    color: #fff;
}

.menu-header ul li a:hover {
    color: #ffd903;
}

/* Estilo do Título */
.title {
    text-align: center;
    margin: 50px 20px;
}

.title h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.title p {
    font-size: 1.1em;
    color: #b0b3c7;
}

/* Estilo dos Cards de Contagem */
.card-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 20px 50px;
}

.card {
    background-color: #2b2f45;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 30%;
}

.card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff;
}

.card p {
    font-size: 1.2em;
    font-weight: bold;
    color: #ffd700;
}

/* Estilo ajustado dos Filtros */
.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.filter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.filter label {
    font-size: 0.9em;
    color: #b0b3c7;
    margin-bottom: 5px;
}

.filter select {
    padding: 5px 10px;
    font-size: 0.9em;
    border: 1px solid #444857;
    border-radius: 5px;
    background-color: #2b2f45;
    color: #ffffff;
    cursor: pointer;
    outline: none;
    width: auto;
    text-align: center;
}

.filter select:hover {
    border-color: #2563eb;
    background-color: #1e2235;
}

.filter select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
}

/* Estilo das Categorias */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 50px;
}

.category-card {
    background-color: #2b2f45;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.category-card:hover {
    transform: scale(1.05);
    background-color: #383e55;

}

.category-card .icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.category-card .heart {
    color: #ff4d67;
}

.category-card .education {
    color: #007bff;
}

.category-card .tax {
    color: #ffd700;
}

.category-card .housing {
    color: #ffc107;
}

.category-card .transport {
    color: #ab47bc;
}

.category-card .legislation {
    color: #007bff;
}

.category-card .document {
    color: #f06292;
}

.category-card .social {
    color: #ff9800;
}

.category-card h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff;
}

.category-card p {
    font-size: 1em;
    color: #b0b3c7;
}
.modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.modal-bg.show {
    display: flex;
}

.modal-content {
    background-color: #1a1d2e;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* Altura máxima do modal */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Esconde overflow para organizar o scroll interno */
    display: flex;
    flex-direction: column; /* Garante que header e body fiquem separados */
}
/* Estilizar o scroll no modal */

.modal-body-scroll {
    max-height: 60vh; /* Altura máxima do modal */
    overflow-y: auto; /* Ativar scroll vertical */
}

/* Personalização do scroll */
.modal-body-scroll::-webkit-scrollbar {
    width: 8px; /* Largura do scroll */
}

.modal-body-scroll::-webkit-scrollbar-track {
    background: #1a1d2e; /* Cor do fundo do track */
    border-radius: 10px; /* Bordas arredondadas */
}

.modal-body-scroll::-webkit-scrollbar-thumb {
    background-color: #38a169; /* Cor do scroll */
    border-radius: 10px; /* Bordas arredondadas */
    border: 2px solid #1a1d2e; /* Adicionar uma borda */
}

.modal-body-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #2f855a; /* Cor do scroll ao passar o mouse */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.modal-body a {

    display: flex;
    justify-content: space-between;
    background-color: #1a1d2e;
    color: #fff;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.modal-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #0d0e17;
    margin-bottom: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.modal-list li:hover {

    background-color: #2e3043; /* Cor ao passar o mouse */
}

.modal-list .file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-list .file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-list .file-actions img {
    width: 20px; /* Tamanho fixo dos ícones */
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal-list .file-actions img:hover {
    transform: scale(1.1); /* Efeito de zoom ao passar o mouse */
    opacity: 0.8; /* Transparência ao passar o mouse */
}

.modal-list .flex.space-x-3 i {
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.modal-list .flex.space-x-3 i:hover {
    transform: scale(1.3);
}
.modal-close {
    font-size: 1.5rem;
    color: #1D4ED8;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}


.modal-close:hover {
    transform: scale(1.2);
    color: #FF0000; /* Cor ao passar o mouse */
}

.modal-body a:hover {
    background-color: #444;
}
.covenio-table {
    max-width: 90%; /* Define um limite de largura */
    width: 100%; /* Garante que use todo o espaço disponível */
    margin: auto; /* Centraliza a tabela */
    border-radius: 10px; /* Bordas arredondadas */
    overflow: hidden; /* Garante que o conteúdo fique dentro das bordas */
    background-color: #1a1d2e;
}

.covenio-table th, .covenio-table td {
    border: 1px solid #4a4a4a;
    padding: 10px;
    text-align: left;
    color: #fff;
}

.covenio-table th:first-child {
    border-top-left-radius: 10px; /* Arredonda o canto superior esquerdo */
}

.covenio-table th:last-child {
    border-top-right-radius: 10px; /* Arredonda o canto superior direito */
}

.covenio-table tr:last-child td:first-child {
    border-bottom-left-radius: 10px; /* Arredonda o canto inferior esquerdo */
}

.covenio-table tr:last-child td:last-child {
    border-bottom-right-radius: 10px; /* Arredonda o canto inferior direito */
}

.covenio-table td:nth-child(2) { /* Segunda coluna (Objeto) */
    white-space: normal; /* Permite a quebra de linha */
    word-wrap: break-word; /* Garante a quebra de palavras longas */
    line-height: 1.4; /* Espaçamento entre linhas */
}

.covenio-table th {
    background-color: #2b2f45;
    font-weight: bold;
}

.covenio-table tbody tr:nth-child(even) {
    background-color: #222533;
}

.covenio-table tbody tr:hover {
    background-color: #333546;
}

.bg-green-500 {
    background-color: #38a169; /* Verde */
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: background-color 0.2s ease;
}

.bg-green-500:hover {
    background-color: #2f855a; /* Verde mais escuro */
}
/* Estilo do Footer */
footer {
    background-color: #2b2f45; /* Cor de fundo semelhante ao topo */
    color: #b0b3c7; /* Texto em tom de cinza claro */
    padding: 20px 50px; /* Espaçamento interno */
    margin-top: 30px; /* Espaçamento superior para separar do conteúdo */
    border-top: 1px solid #444857; /* Linha separadora superior */
}

footer .footer-container {
    display: flex;
    flex-wrap: wrap; /* Torna responsivo */
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

footer .footer-column {
    flex: 1; /* Faz as colunas ocuparem espaços iguais */
    min-width: 200px; /* Largura mínima para evitar que encolham demais */
}

footer h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ffffff; /* Destaque para os títulos */
    font-weight: bold;
}

footer p, footer a {
    font-size: 0.9em;
    color: #b0b3c7;
    line-height: 1.5;
}

footer a {
    text-decoration: none; /* Remove o sublinhado dos links */
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffd700; /* Amarelo para destacar no hover */
    text-decoration: underline; /* Adiciona sublinhado ao passar o mouse */
}

/* Linha inferior do footer */
footer .footer-bottom {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #444857; /* Linha separadora para rodapé inferior */
    text-align: center;
    font-size: 0.8em;
    color: #777;
}

footer .footer-bottom a {
    color: #b0b3c7;
}

footer .footer-bottom a:hover {
    color: #ffd700; /* Amarelo no hover */
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    footer .footer-container {
        flex-direction: column; /* Alinha em coluna no mobile */
        gap: 15px;
    }

    footer .footer-column {
        text-align: center; /* Centraliza o conteúdo no mobile */
    }

    .menu-header {
        display: none;
    }
}
/* Responsividade para telas pequenas (mobile) */
@media (max-width: 768px) {
    /* Ajusta o header */
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
    }

    .logo {
        flex-direction: column;
        align-items: center;
    }

    .logo img {
        margin-bottom: 5px;
        width: 50px;
        height: auto;
    }

    .login-btn {
        padding: 5px 10px;
        font-size: 0.9em;
    }

    /* Ajusta os cards de contagem */
    .card-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .card {
        width: 100%;
        padding: 15px;
    }

    /* Ajusta o título */
    .title {
        margin: 20px 10px;
    }

    .title h1 {
        font-size: 1.8em;
    }

    .title p {
        font-size: 1em;
    }

    /* Ajusta a tabela */
    .covenio-table {
        border: none;
        margin: 0 auto;
        width: 100%;
    }

    .covenio-table thead {
        display: none; /* Esconde o cabeçalho no mobile */
    }

    .covenio-table tbody tr {
        display: flex;
        flex-direction: column;
        border: 1px solid #4a4a4a;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 10px;
        background-color: #222533;
    }

    .covenio-table td {
        display: flex;
        justify-content: space-between;
        padding: 8px 10px;
        border: none;
        font-size: 0.9rem;
        color: #fff;
        flex-wrap: wrap;
    }

    .covenio-table td::before {
        content: attr(data-label); /* Adiciona os títulos das colunas */
        font-weight: bold;
        color: #b0b3c7;
        margin-right: 10px;
        flex-shrink: 0; /* Impede que o label encolha */
    }

    .covenio-table tbody tr td:last-child {
        margin-top: 10px;
    }

    /* Ajusta o footer */
    footer .footer-container {
        flex-direction: column;
        gap: 15px;
    }

    footer .footer-column {
        text-align: center;
    }

    footer h3 {
        font-size: 1em;
    }

    footer p, footer a {
        font-size: 0.8em;
    }
    footer ul {
        list-style: none; /* Remove os pontos */
        padding: 0; /* Remove espaçamento padrão */
        margin: 0; /* Remove margens */
    }

    footer ul li {
        margin-bottom: 5px; /* Adiciona espaçamento entre os itens */
    }

    /* Ajusta o modal */
    .modal-content {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    .modal-body-scroll {
        max-height: 50vh;
    }

    /* Ajuste geral dos filtros */
    .filters {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .filter select {
        width: 100%;
        font-size: 1em;
    }

    /* Ajusta as categorias */
    .categories {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .category-card {
        padding: 15px;
    }

    .category-card h2 {
        font-size: 1.2em;
    }

    .category-card p {
        font-size: 0.9em;
    }

}
