@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&family=Raleway:wght@400;500;700&family=Poppins:wght@400;500;700&display=swap');

html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
    font-family: 'Poppins', sans-serif !important;
    background-color: #F5F5F5 !important;
}

.flex-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    align-content: normal;
    height: 100%;
}

.flex-items:nth-child(1) {
    display: block;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    align-self: auto;
    order: 0;
}

.flex-items:nth-child(2) {
    overflow: auto;
    scrollbar-gutter: auto !important;
    display: block;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
}

.flex-items:nth-child(3) {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
    color: white;
    background-color: #8d1c28;
    align-content: center;
    text-align: center;
}

#card_login {

    .card-header {
        background-color: #8d1c28 !important;

        .card-img-top {
            width: 40% !important;
            height: 100% !important;
            object-fit: cover !important;
        }
    }

    width: 50rem !important;
    height: 40rem !important;
    background-color: #fff6ed !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;

}

.btn-default {
    background-color: #8d1c28 !important;
    border-color: #8d1c28 !important;
    color: white !important;
}

.btn-default:hover {
    background-color: #a02438b0 !important;
    border-color: #a02438b0 !important;
}

.btn-default:active {
    background-color: #8d1c28 !important;
    border-color: #8d1c28 !important;

}

#navbar {
    background-color: #8d1c28 !important;
}

.nav-link {
    text-decoration: none !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 6px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.nav-link:hover::after {
    width: 100%;
}

.card-header {
    background-color: #8d1c28 !important;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #8d1c28 !important;
    background-color: #f8f9fa;
}

.progress-container {
    display: none;
}

.result-summary {
    display: none;
}

.loading-spinner {
    display: none;
}

.file-info {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

/* Estilos para el dashboard de administrador */
.text-default {
    color: #8d1c28 !important;
}

.border-left-primary {
    border-left: 0.25rem solid #8d1c28 !important;
}

.border-left-success {
    border-left: 0.25rem solid #8d1c28 !important;
}

.border-left-info {
    border-left: 0.25rem solid #8d1c28 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #8d1c28 !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-xs {
    font-size: 0.7rem !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

/* Estilos para notificaciones */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para botones en las tarjetas de acciones */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Progreso circular para estadísticas */
.progress {
    border-radius: 10px;
    overflow: hidden;
}

/* Estilos específicos para la vista ciudadano */
.border-left-primary {
    border-left: 4px solid #8d1c28 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .col-xl-3 {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .h5 {
        font-size: 1.1rem;
    }
}

#containerResultadosBusqueda {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
    gap: .3rem;
}

#divResultadosA,
#divResultadosB {
    display: flex;
    align-items: center;
}

#nResult {
    height: 20px;
    text-align: center;
    font-size: .7rem;
    background: white;
    padding: 0;
    width: 3.8rem;
    border-color: white;
    margin-right: 1rem;
}

.tablaQuery {
    display: inline-table;
    text-align: center;
    padding: 0;
    margin: 0;
}

.tablaQuery > thead > tr > th > a, .tablaQuery > thead > tr > td > a {
    color: #fff;
    text-decoration: none;
    justify-content: center;
}

.tablaQuery > thead > tr, .tablaQuery > thead > tr > td {
    color: #fff;
    justify-content: center;
}

.tablaQuery > thead > tr > th, .tablaQuery > thead > tr > td {
    background-color: #8d1c28;
}

.tablaQuery > tbody > tr > th, .tablaQuery > tbody > tr > td {
    padding: .40rem .5rem;
}

a.page-link {
    color: #fff !important;
    font-size: 1rem !important;
    user-select: none !important;
    border-color: #8d1c28 !important;
    background-color: #8d1c28 !important;
}

a.page-link:hover {
    color: #fff !important;
    border-color: #d52a3b !important;
    background-color: #d52a3b !important;
}

span.page-link {
    color: #fff !important;
    font-size: 1rem !important;
    user-select: none !important;
    font-weight: bold !important;
    border-color: #8d1c28 !important;
    background-color: #8d1c28 !important;
}

.button-outline-default {
    color: #8d1c28 !important;
    border-color: #8d1c28 !important;
}

.button-outline-default:hover {
    color: #fff !important;
    background-color: #8d1c28 !important;
    border-color: #8d1c28 !important;
}

.btn-flotante {
    position: fixed;
    bottom: 55px;
    right: 20px;
    width: 100px;
    height: 50px;
    background-color: #8d1c28;
    color: white;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.3s ease;
}


.btn-flotante:hover {
    background-color: #a02438b0 !important;
    border-color: #a02438b0 !important;
    color: white;
    text-decoration: none;
}

    @keyframes blink {
    0%   { background-color: #198754 !important; color: #fff !important; opacity: 1; }
    50%  { background-color: #ffc107 !important; color: #000 !important; opacity: 0.7; }
    100% { background-color: #198754 !important; color: #fff !important; opacity: 1; }
    }

    .blink-btn {
       animation: blink 1s infinite !important;
      border: 2px solid #ffc107 !important; 
    }