/* Estilos modernos para cards circulares (reutilizados) */
.card-licitacao {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    position: relative;
    overflow: visible;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
}

.card-licitacao:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 16px 40px rgba(59, 130, 246, 0.3);
    border-color: #e5e7eb;
}

.card-licitacao i {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: #3b82f6;
}

.card-licitacao:hover i {
    transform: scale(1.2) rotateY(360deg);
    color: #2563eb;
}

.card-licitacao .texto-secretarias {
    transition: all 0.3s ease;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.2;
}

.card-licitacao:hover .texto-secretarias {
    color: #3b82f6;
    transform: scale(1.05);
}

/* Efeito de pulso sutil */
.card-licitacao::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.card-licitacao:hover::after {
    width: 120%;
    height: 120%;
}

/* Animação de entrada */
.card-licitacao {
    animation: fadeInScale 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Delays para animação em cascata */
.col-sm-6:nth-child(1) .card-licitacao { animation-delay: 0.1s; }
.col-sm-6:nth-child(2) .card-licitacao { animation-delay: 0.2s; }

/* Container com gradiente de fundo */
.container-licitacoes {
    background: linear-gradient(to bottom, #f9fafb 0%, #ffffff 50%, #f9fafb 100%);
    padding: 3rem 0;
    border-radius: 20px;
}

/* Título da página */
.titulo-licitacoes {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.titulo-licitacoes::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
    border-radius: 2px;
}

/* Estilos para links de documentos no modal */
.doc-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
}
.doc-link:hover {
    background: #f8f9fa;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateX(5px);
}
.doc-link i {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Dark mode overrides for planoDiretor.php */
body.dark-mode .card-licitacao {
    background: linear-gradient(135deg, #283347 0%, #1e293b 100%) !important;
    border-color: #475569 !important;
}
body.dark-mode .card-licitacao .texto-secretarias {
    color: #e2e8f0 !important;
}
body.dark-mode .modal-content {
    background-color: #283347 !important;
    color: #e2e8f0 !important;
}
body.dark-mode .modal-header {
    border-bottom-color: #475569 !important;
}
body.dark-mode .modal-footer {
    border-top-color: #475569 !important;
}
body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
body.dark-mode .list-group-item {
    background-color: #283347 !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}
body.dark-mode .list-group-item:hover {
    background-color: #334155 !important;
}
body.dark-mode .text-muted {
    color: #cbd5e1 !important;
}