/* Estilos para o site de Transparência - Editais e Avisos de Contratações */
:root {
    --primary-color: #005b98; /* Azul principal da Prefeitura */
    --secondary-color: #00467a; /* Azul escuro */
    --accent-color: #e41b13; /* Vermelho do brasão */
    --light-color: #ffffff;
    --light-bg: #f5f5f5;
    --text-color: #333333;
    --border-radius: 4px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
}

.nav-item > a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-toggle .fa-chevron-down {
    margin-left: 5px;
    font-size: 0.8em;
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 16px;
    padding: 10px;
    cursor: pointer;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 15px 0;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
}

.nav-item > a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-toggle .fa-chevron-down {
    margin-left: 5px;
    font-size: 0.8em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 5px 0;
    margin: 0;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s;
    font-size: 0.95em;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}


.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item > a:hover {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid white;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* CABEÇALHO */
.header {
    width: 100%;
}

.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location {
    display: flex;
    align-items: center;
}

.location i {
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: white;
    font-size: 16px;
}

.main-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 0 0 auto;
}

.logo {
    height: 70px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid white;
}

/* BANNER DA PÁGINA */
.page-banner {
    background-color: white;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320" preserveAspectRatio="none"><path fill="%23005b98" fill-opacity="0.05" d="M0,160L48,165.3C96,171,192,181,288,176C384,171,480,149,576,165.3C672,181,768,235,864,245.3C960,256,1056,224,1152,218.7C1248,213,1344,235,1392,245.3L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: 100% 50%;
}

.page-banner h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

.page-banner p {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* =================================
   CSS PARA BOTÕES DE MODALIDADE E ACESSO RÁPIDO
   ================================= */

/* Container de acesso rápido */
.acesso-rapido-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.acesso-rapido-container:hover {
    transform: translateY(-2px);
}

/* Label do acesso rápido */
.acesso-rapido-label {
    display: block;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 15px;
}

.acesso-rapido-label i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 16px;
}

/* Container dos botões de acesso rápido */
.acesso-rapido-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Botão de acesso rápido */
.acesso-rapido-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c01811 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(228, 27, 19, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.acesso-rapido-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.acesso-rapido-btn:hover::before {
    left: 100%;
}

.acesso-rapido-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(228, 27, 19, 0.3);
    text-decoration: none;
    color: white;
}

.acesso-rapido-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.acesso-rapido-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Container das modalidades */
.modalidades-container {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
};
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.modalidades-container:hover {
    transform: translateY(-2px);
}

/* Label das modalidades */
.modalidades-label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 8px;
}

.modalidades-label i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 18px;
}

/* Container dos botões */
.modalidades-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

/* Estilo dos botões de modalidade */
.modalidade-btn {
    background: white;
    border: 2px solid #e0e6ed;
    color: var(--text-color);
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Ícones dos botões */
.modalidade-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Estado hover */
.modalidade-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 91, 152, 0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modalidade-btn:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Estado ativo */
.modalidade-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 91, 152, 0.3);
    position: relative;
}

.modalidade-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

/* Animação de brilho para botão ativo */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modalidade-btn.active i {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Estado focus para acessibilidade */
.modalidade-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 91, 152, 0.3);
}

/* Efeito de pressionar */
.modalidade-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Botão "Todas" - estilo especial */
.modalidade-btn[data-value=""] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #adb5bd;
    font-weight: 600;
}

.modalidade-btn[data-value=""]:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--primary-color);
}

.modalidade-btn[data-value=""].active {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-color: #495057;
}

/* Estilos específicos por tipo de modalidade */
.modalidade-btn[data-value="6"], 
.modalidade-btn[data-value="7"] {
    border-left: 4px solid #28a745; /* Verde para Pregões */
}

.modalidade-btn[data-value="4"], 
.modalidade-btn[data-value="5"] {
    border-left: 4px solid #007bff; /* Azul para Concorrências */
}

.modalidade-btn[data-value="8"], 
.modalidade-btn[data-value="9"] {
    border-left: 4px solid #ffc107; /* Amarelo para Dispensa/Inexigibilidade */
}

.modalidade-btn[data-value="1"], 
.modalidade-btn[data-value="13"] {
    border-left: 4px solid #dc3545; /* Vermelho para Leilões */
}

.modalidade-btn[data-value="12"], 
.modalidade-btn[data-value="10"] {
    border-left: 4px solid #6f42c1; /* Roxo para Credenciamento/Manifestação */
}

/* Responsividade para tablets */
@media (max-width: 992px) {
    .modalidades-buttons {
        gap: 10px;
    }
    
    .modalidade-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .modalidades-label {
        font-size: 15px;
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .modalidades-container {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .modalidades-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .modalidade-btn {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 20px;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    
    .modalidade-btn i {
        font-size: 12px;
    }
    
    .modalidades-label {
        text-align: center;
        font-size: 14px;
        margin-bottom: 12px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 576px) {
    .modalidades-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .modalidade-btn {
        justify-content: center;
        padding: 12px 8px;
        text-align: center;
    }
    
    /* Botão "Todas" ocupa toda a largura */
    .modalidade-btn[data-value=""] {
        grid-column: 1 / -1;
    }
}

/* Para telas extra pequenas */
@media (max-width: 480px) {
    .modalidades-buttons {
        grid-template-columns: 1fr;
    }
    
    .modalidade-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilo para o botão de limpar filtros */
.search-btn[onclick*="limparFiltros"] {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: 2px solid #6c757d;
}

.search-btn[onclick*="limparFiltros"]:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4142 100%);
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

/* =================================
   CSS PARA BOTÕES DE MODALIDADE E ACESSO RÁPIDO
   ================================= */

/* Container de acesso rápido */
.acesso-rapido-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.acesso-rapido-container:hover {
    transform: translateY(-2px);
}

/* Label do acesso rápido */
.acesso-rapido-label {
    display: block;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 12px;
    font-size: 15px;
}

.acesso-rapido-label i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 16px;
}

/* Container dos botões de acesso rápido */
.acesso-rapido-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Botão de acesso rápido */
.acesso-rapido-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #c01811 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(228, 27, 19, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.acesso-rapido-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.acesso-rapido-btn:hover::before {
    left: 100%;
}

.acesso-rapido-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(228, 27, 19, 0.3);
    text-decoration: none;
    color: white;
}

.acesso-rapido-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.acesso-rapido-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Container das modalidades */
.modalidades-container {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.modalidades-container:hover {
    transform: translateY(-2px);
}

/* Label das modalidades */
.modalidades-label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 8px;
}

.modalidades-label i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 18px;
}

/* Container dos botões */
.modalidades-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

/* Estilo dos botões de modalidade */
.modalidade-btn {
    background: white;
    border: 2px solid #e0e6ed;
    color: var(--text-color);
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Ícones dos botões */
.modalidade-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Estado hover */
.modalidade-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 91, 152, 0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modalidade-btn:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Estado ativo */
.modalidade-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 91, 152, 0.3);
    position: relative;
}

.modalidade-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

/* Animação de brilho para botão ativo */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modalidade-btn.active i {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Estado focus para acessibilidade */
.modalidade-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 91, 152, 0.3);
}

/* Efeito de pressionar */
.modalidade-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Botão "Todas" - estilo especial */
.modalidade-btn[data-value=""] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #adb5bd;
    font-weight: 600;
}

.modalidade-btn[data-value=""]:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--primary-color);
}

.modalidade-btn[data-value=""].active {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-color: #495057;
}

/* Estilos específicos por tipo de modalidade */
.modalidade-btn[data-value="6"], 
.modalidade-btn[data-value="7"] {
    border-left: 4px solid #28a745; /* Verde para Pregões */
}

.modalidade-btn[data-value="4"], 
.modalidade-btn[data-value="5"] {
    border-left: 4px solid #007bff; /* Azul para Concorrências */
}

.modalidade-btn[data-value="8"], 
.modalidade-btn[data-value="9"] {
    border-left: 4px solid #ffc107; /* Amarelo para Dispensa/Inexigibilidade */
}

.modalidade-btn[data-value="1"], 
.modalidade-btn[data-value="13"] {
    border-left: 4px solid #dc3545; /* Vermelho para Leilões */
}

.modalidade-btn[data-value="12"], 
.modalidade-btn[data-value="10"] {
    border-left: 4px solid #6f42c1; /* Roxo para Credenciamento/Manifestação */
}

/* Responsividade para tablets */
@media (max-width: 992px) {
    .acesso-rapido-container {
        padding: 18px 20px;
        margin-bottom: 18px;
    }
    
    .acesso-rapido-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .modalidades-buttons {
        gap: 10px;
    }
    
    .modalidade-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .modalidades-label {
        font-size: 15px;
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .acesso-rapido-container {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .acesso-rapido-buttons {
        justify-content: center;
    }
    
    .acesso-rapido-btn {
        padding: 12px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .modalidades-container {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .modalidades-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .modalidade-btn {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 20px;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    
    .modalidade-btn i {
        font-size: 12px;
    }
    
    .modalidades-label {
        text-align: center;
        font-size: 14px;
        margin-bottom: 12px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 576px) {
    .acesso-rapido-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 16px;
    }
    
    .modalidades-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .modalidade-btn {
        justify-content: center;
        padding: 12px 8px;
        text-align: center;
    }
    
    /* Botão "Todas" ocupa toda a largura */
    .modalidade-btn[data-value=""] {
        grid-column: 1 / -1;
    }
}

/* Para telas extra pequenas */
@media (max-width: 480px) {
    .acesso-rapido-container {
        padding: 12px;
    }
    
    .acesso-rapido-label {
        font-size: 13px;
        text-align: center;
    }
    
    .modalidades-buttons {
        grid-template-columns: 1fr;
    }
    
    .modalidade-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilo para o botão de limpar filtros */
.search-btn[onclick*="limparFiltros"] {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: 2px solid #6c757d;
}

.search-btn[onclick*="limparFiltros"]:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4142 100%);
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

/* =================================
   CSS PARA BOTÕES DE MODALIDADE
   ================================= */

/* Container das modalidades */
.modalidades-container {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.modalidades-container:hover {
    transform: translateY(-2px);
}

/* Label das modalidades */
.modalidades-label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 2px solid #e0e6ed;
    padding-bottom: 8px;
}

.modalidades-label i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 18px;
}

/* Container dos botões */
.modalidades-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

/* Estilo dos botões de modalidade */
.modalidade-btn {
    background: white;
    border: 2px solid #e0e6ed;
    color: var(--text-color);
    padding: 12px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Ícones dos botões */
.modalidade-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Estado hover */
.modalidade-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 91, 152, 0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modalidade-btn:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Estado ativo */
.modalidade-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 91, 152, 0.3);
    position: relative;
}

.modalidade-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

/* Animação de brilho para botão ativo */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.modalidade-btn.active i {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Estado focus para acessibilidade */
.modalidade-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 91, 152, 0.3);
}

/* Efeito de pressionar */
.modalidade-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Botão "Todas" - estilo especial */
.modalidade-btn[data-value=""] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #adb5bd;
    font-weight: 600;
}

.modalidade-btn[data-value=""]:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--primary-color);
}

.modalidade-btn[data-value=""].active {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-color: #495057;
}

/* Estilos específicos por tipo de modalidade */
.modalidade-btn[data-value="6"], 
.modalidade-btn[data-value="7"] {
    border-left: 4px solid #28a745; /* Verde para Pregões */
}

.modalidade-btn[data-value="4"], 
.modalidade-btn[data-value="5"] {
    border-left: 4px solid #007bff; /* Azul para Concorrências */
}

.modalidade-btn[data-value="8"], 
.modalidade-btn[data-value="9"] {
    border-left: 4px solid #ffc107; /* Amarelo para Dispensa/Inexigibilidade */
}

.modalidade-btn[data-value="1"], 
.modalidade-btn[data-value="13"] {
    border-left: 4px solid #dc3545; /* Vermelho para Leilões */
}

.modalidade-btn[data-value="12"], 
.modalidade-btn[data-value="10"] {
    border-left: 4px solid #6f42c1; /* Roxo para Credenciamento/Manifestação */
}

/* Responsividade para tablets */
@media (max-width: 992px) {
    .modalidades-buttons {
        gap: 10px;
    }
    
    .modalidade-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .modalidades-label {
        font-size: 15px;
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .modalidades-container {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .modalidades-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .modalidade-btn {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 20px;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    
    .modalidade-btn i {
        font-size: 12px;
    }
    
    .modalidades-label {
        text-align: center;
        font-size: 14px;
        margin-bottom: 12px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 576px) {
    .modalidades-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .modalidade-btn {
        justify-content: center;
        padding: 12px 8px;
        text-align: center;
    }
    
    /* Botão "Todas" ocupa toda a largura */
    .modalidade-btn[data-value=""] {
        grid-column: 1 / -1;
    }
}

/* Para telas extra pequenas */
@media (max-width: 480px) {
    .modalidades-buttons {
        grid-template-columns: 1fr;
    }
    
    .modalidade-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Estilo para o botão de limpar filtros */
.search-btn[onclick*="limparFiltros"] {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border: 2px solid #6c757d;
}

.search-btn[onclick*="limparFiltros"]:hover {
    background: linear-gradient(135deg, #5a6268 0%, #3d4142 100%);
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

/* Mensagem de busca ativa */
.busca-ativa-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.busca-ativa-info i {
    color: #2196f3;
    margin-right: 8px;
}

.busca-ativa-info strong {
    color: #1976d2;
}

.btn-limpar-busca-ativa {
    background: #f44336;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-limpar-busca-ativa:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

.btn-limpar-busca-ativa i {
    margin: 0;
    color: white;
}

/* Animação de carregamento melhorada */
.loader i {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Responsividade para mensagem de busca ativa */
@media (max-width: 768px) {
    .busca-ativa-info {
        flex-direction: column;
        text-align: center;
        padding: 12px 15px;
    }
    
    .btn-limpar-busca-ativa {
        margin-top: 5px;
    }
}

/* Animação de carregamento melhorada */
.loader i {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* Animação de carregamento melhorada */
.loader i {
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

/* CONTEÚDO PRINCIPAL */
.main-content {
    padding: 30px 15px;
}

.section-title {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.section-title i {
    margin-right: 10px;
}

/* FILTROS */
.filters {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--box-shadow);
}

.filter-group {
    flex: 1 1 300px;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    background-color: white;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
    font-weight: 600;
    margin-top: 25px;
    box-shadow: var(--box-shadow);
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

/* EDITAIS */
.editais-container {
    margin-bottom: 30px;
}

.edital {
    background-color: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: var(--box-shadow);
}

.edital:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.edital-title {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edital-info {
    margin-bottom: 15px;
}

.edital-info p {
    margin-bottom: 8px;
}

.edital-info strong {
    color: var(--secondary-color);
}

.edital-info i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    margin-right: 5px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #c01811;
}

.toggle {
    cursor: pointer;
}

.doc-list {
    margin-top: 15px;
    display: none;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 15px;
}

.doc-list li {
    list-style-type: none;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed #ddd;
}

.doc-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.doc-list a {
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.doc-list a i {
    margin-right: 8px;
    color: var(--accent-color);
}

.doc-list a:hover {
    text-decoration: underline;
}

.doc-list small {
    color: #777;
    margin-left: 5px;
}

/* STATUS BADGES */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    color: white;
}

.status-aberto {
    background-color: #28a745;
}

.status-intermediario {
    background-color: #ffc107;
    color: #333;
}

.status-fechado {
    background-color: #dc3545;
}

.status-anulada {
    background-color: #6c757d;
}

.status-revogada {
    background-color: #5a3e97;
}

/* PAGINAÇÃO */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 30px;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    background-color: white;
    border: 1px solid #ddd;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s;
    font-size: 14px;
}

.page-link:hover {
    background-color: #f0f0f0;
}

.page-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* LOADER */
.loader {
    text-align: center;
    padding: 30px;
    color: var(--primary-color);
    font-size: 18px;
}

.loader i {
    margin-right: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FOOTER */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo .logo {
    height: 60px;
}

.footer-info {
    flex: 1 1 auto;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.footer-social .social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .main-nav ul {
        gap: 15px;
    }
    
    .main-nav a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-bottom: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .filter-group {
        flex: 1 1 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-banner h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 20px;
    }
}
@media (max-width: 576px) {
    /* Centralizando o botão de buscar editais em telas pequenas */
    .search-btn {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        margin: 15px auto 0;
    }
/* Estilo para a área de "Nenhum edital encontrado" - Layout melhorado */
.sem-resultados {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    margin: 20px 0 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
}

.sem-resultados i {
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 3.5em;
    display: block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.sem-resultados h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.sem-resultados p {
    color: #555;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.dicas-busca {
    background-color: rgba(0, 91, 152, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: left;
    margin-top: 25px;
    border-left: 4px solid var(--accent-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.dicas-busca strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    position: relative;
    padding-left: 25px;
}

.dicas-busca strong:before {
    content: "\f0eb"; /* Ícone de lâmpada */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
}

.dicas-busca ul {
    list-style: none;
    padding-left: 5px;
}

.dicas-busca li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.dicas-busca li:before {
    content: "\f00c"; /* Ícone de check */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0.8;
}

/* Adicionando responsividade para o componente de "nenhum edital encontrado" */
@media (max-width: 576px) {
    /* Centralizando o botão de buscar editais em telas pequenas */
    .search-btn {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
        margin: 15px auto 0;
    }
    
    /* Removendo o margin-top para melhorar o layout em telas pequenas */
    .filters .filter-group:last-of-type {
        margin-bottom: 0;
    }
    
    .sem-resultados {
        padding: 30px 15px;
        margin: 15px 0 20px;
    }
    
    .sem-resultados i {
        font-size: 2.8em !important; /* Ajusta o ícone para ficar menor em dispositivos móveis */
        margin-bottom: 15px;
    }
    
    .sem-resultados h3 {
        font-size: 18px;
    }
    
    .sem-resultados p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .dicas-busca {
        padding: 15px;
        margin-top: 20px;
    }
    
    .dicas-busca strong {
        font-size: 15px;
    }
    
    .dicas-busca ul {
        padding-left: 0;
    }
    
    .dicas-busca li {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
        padding-left: 22px;
    }
    
    .dicas-busca li:before {
        top: 2px;
    }
}

