/**
 * Estilos para o sistema de Legislaturas - Bootstrap 5.3
 */

/* Container Principal */
.legislaturas-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Bootstrap Cards Customização */
.hover-card {
    transition: all 0.3s ease;
    border: none;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.2) !important;
}

.hover-card .card-img-wrapper {
    overflow: hidden;
    background-color: #E0F2FE;
}

.hover-card .card-img-top {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hover-card:hover .card-img-top {
    transform: scale(1.08);
}

.hover-card .card-body {
    padding: 1rem;
    background-color: #fff;
}

.hover-card .card-title {
    color: #0891B2 !important;
    font-size: 0.95rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-card a {
    color: inherit;
}

.hover-card a:hover .card-title {
    color: #0E7490 !important;
}

/* Cabeçalho Principal */
.bg-gradient-primary {
    background: linear-gradient(135deg, #0891B2 0%, #0E7490 100%) !important;
}

/* Filtro de Legislatura */
.labelSel {
    margin-bottom: 30px;
    text-align: center;
}

.labelSel label {
    font-size: 1.1rem;
}

.select-legislatura,
.asp_noselect2,
#select-legislatura {
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
    background-color: var(--cor-primaria);
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    text-align: center;;
    transition: all 0.3s ease;
}

select#Filtro2 {
    text-align: center;
}

select#Filtro2:hover,
select#Filtro2:focus {
    background-color: var(--cor-terciaria);
    color: #fff;
    transition: all 0.3s ease;
}

.select-legislatura:hover,
.select-legislatura:focus,
.asp_noselect2:hover,
.asp_noselect2:focus,
#select-legislatura:hover,
#select-legislatura:focus {
    box-shadow: 0 0 0 0.25rem rgba(8, 145, 178, 0.15);
}

.form-select-lg {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
}

select#Filtro2 {
    font-size: 18px;
}

/* Loading Overlay */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #E0F2FE;
    border-top: 5px solid #0891B2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #0891B2;
    font-size: 1.1rem;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Filtro de Mesa Diretora */
.selectCargos {
    margin: 30px 0;
    text-align: center;
}

.select-mesa-diretora {
    padding: 8px 20px;
    font-size: 18px;
    border: 2px solid #0891B2;
    border-radius: 8px;
    background-color: #0891B2;
    color: #fff;
    text-align: center;
    cursor: pointer;
    min-width: 300px;
    transition: all 0.3s ease;
}

.select-mesa-diretora:hover,
.select-mesa-diretora:focus {
    border-color: #0E7490;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Mesa Diretora */
.mesa-diretora-container {
    margin: 30px 0;
}

.mesa-item {
    animation: fadeIn 0.4s ease-in-out;
}

.mesa-item.hidden {
    display: none;
}

.bienio-titulo {
    text-align: center;
    font-size: 20px;
    color: #0891B2;
    margin: 30px 0 20px;
    font-weight: 600;
}

/* Seção de Cargos */
.principal2 {
    margin: 20px 0;
}

.principal2>.hiden,
.principal2>div {
    display: none;
}

.mesa-diretora-content {
    animation: fadeIn 0.4s ease-in-out;
}

/* Compatibilidade com código antigo */
#allver {
    animation: fadeIn 0.4s ease-in-out;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade Bootstrap */
@media (max-width: 768px) {

    .select-legislatura,
    .asp_noselect2,
    #select-legislatura,
    #Filtro2 {
        min-width: 100%;
        width: 100%;
    }

    .labelSel .d-inline-block,
    .selectCargos .d-inline-block {
        width: 100%;
        max-width: 500px;
    }

    .hover-card .card-img-top {
        height: 240px;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    .display-6 {
        font-size: 1.5rem !important;
    }

    .hover-card .card-img-top {
        height: 200px;
    }

    .hover-card .card-title {
        font-size: 0.9rem;
        min-height: 2.5rem;
    }

    .loading-text {
        font-size: 1rem;
    }

    .labelSel label,
    .selectCargos label {
        font-size: 1rem;
    }
}

/* Utilitários */
.hidden {
    display: none !important;
}