/* Estilos personalizados para el Sistema de Seguimiento de Siniestros
*/

html, body {
    overflow-x: hidden; /* Asegura que no haya scroll horizontal en toda la página */
}

body {
    font-family: 'Poppins', sans-serif; /* Usando la nueva fuente Poppins */
    background-color: #f0f2f5; /* Fondo pastel claro para un look más limpio */
    padding-top: 70px; /* Ajustar según la altura de tu navbar fija */
}

/* --- ESTE ES EL DISEÑO DE TU BARRA DE NAVEGACIÓN --- */
.navbar-white-material {
    background-color: #ffffff; /* Blanco */
    padding: 0.75rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil para efecto material */
    z-index: 1030;
    border-bottom: 1px solid #e9ecef;
}

.navbar-logo {
    max-height: 35px;
    margin-right: 10px;
}

.navbar-brand {
    color: #343a40; /* Color oscuro para el texto de la marca */
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand:hover {
    color: #0d6efd;
}

/* Icons container for navigation */
.navbar-icons-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Navbar icon links styling */
.navbar-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    background-color: transparent;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    height: 40px;
}

.navbar-icon-link.d-lg-flex {
    min-width: auto;
    width: auto;
    padding: 0.5rem 1rem;
}

.navbar-icon-link.d-lg-none {
    width: 40px;
    padding: 0.5rem 0.75rem;
}

.navbar-icon-label {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.navbar-icon-link:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
    transform: scale(1.1);
}

.navbar-icon-link:active {
    transform: scale(0.95);
}

/* Badge for notification count */
.navbar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid white;
}

/* Navbar dropdown styling */
.navbar-dropdown {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    color: #495057;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}

.navbar-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.navbar-dropdown .dropdown-divider {
    margin: 0.5rem 0;
}

.navbar-dropdown .dropdown-item-text {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .navbar-white-material {
        padding: 0.5rem 0;
    }

    .navbar-logo {
        max-height: 30px;
        margin-right: 8px;
    }

    .navbar-icons-container {
        gap: 0.25rem;
    }

    .navbar-icon-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        padding: 0.5rem;
        min-width: 36px;
    }

    .navbar-icon-label {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar-icons-container {
        gap: 0.125rem;
    }

    .navbar-icon-link {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        padding: 0.375rem;
        min-width: 32px;
    }

    .navbar-brand-text {
        display: none !important;
    }

    .navbar-icon-label {
        display: none !important;
    }
}

.navbar-white-material .nav-link {
    color: #495057; /* Color oscuro para los enlaces */
}

.navbar-white-material .nav-link:hover {
    color: #007bff; /* Color primario al pasar el ratón */
}

/* --- MOBILE RESPONSIVE LAYOUT --- */
.card {
    border: none;
    border-radius: 0.75rem; /* Bordes más redondeados para efecto material */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Sombra sutil para las tarjetas */
}

.filters-card {
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.siniestro-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.siniestro-logo-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 70px;
}

.siniestro-logo-badge img {
    max-height: 50px;
    width: auto;
    display: block;
}

.siniestro-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.siniestro-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 0.9rem;
    gap: 0.5rem;
}

.siniestro-info .info-label {
    font-weight: 600;
    color: #6c757d;
    flex: 0 0 auto;
    min-width: 60px;
    flex-shrink: 0;
}

.siniestro-info .info-value {
    color: #495057;
    text-align: right;
    word-break: break-word;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.siniestro-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

/* Detail Page Styles */
.detail-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #0d6efd !important;
}

.detail-company-logo {
    max-height: 100px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-card-section {
    margin-bottom: 24px;
}

.detail-card-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    color: #495057;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-card-header h5 {
    margin: 0;
    font-size: 1rem;
}

.detail-card-body {
    padding: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0 0 12px 12px;
    border-top: none;
}

.detail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: baseline;
}

.detail-label {
    font-weight: 600;
    color: #6c757d;
    min-width: 120px;
    flex: 0 0 auto;
}

.detail-value {
    color: #495057;
    flex: 1;
    min-width: 150px;
}

.comment-list {
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.comment-text {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Enhanced card styling inspired by charts page */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #343a40;
    border-radius: 11px 11px 0 0;
}

/* Badge styling aligned with charts */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    color: #1a1a1a !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0aa8cc 100%) !important;
}

/* Enhanced form styling */
.form-control, .form-select {
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control:hover, .form-select:hover {
    border-color: #adb5bd;
}

/* Button styling with hover effects */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #bb2d3b 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    border: none;
    color: #1a1a1a;
}

.btn-outline-primary:hover, .btn-outline-success:hover, .btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced list-group styling */
.list-group {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 16px;
    background: white;
    transition: all 0.2s ease;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Nav tabs styling */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    gap: 8px;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 3px solid #0d6efd;
    border-color: transparent;
}

/* Pagination styling */
.pagination {
    gap: 4px;
}

.page-link {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    color: #0d6efd;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
}

.page-link:hover:not(.disabled) {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0d6efd;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0d6efd;
}

.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
}

/* Navbar improvements for mobile */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .detail-label {
        min-width: auto;
    }

    .detail-row {
        flex-direction: column;
    }

    .detail-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-card-header .ms-auto {
        margin-left: 0 !important;
        width: 100%;
        margin-top: 8px;
    }

    .nav-tabs {
        border-bottom: 1px solid #dee2e6;
        gap: 0;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        border: none;
        border-bottom: 3px solid transparent;
        color: #495057;
    }

    .nav-tabs .nav-link.active {
        border-bottom-color: #0d6efd;
        color: #0d6efd;
        background-color: transparent;
    }

    .siniestro-info .info-row {
        flex-direction: column;
        margin-bottom: 8px;
        gap: 0.25rem;
    }

    .siniestro-info .info-label {
        min-width: auto;
        margin-bottom: 0.125rem;
    }

    .siniestro-info .info-value {
        text-align: left;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}

@media (max-width: 576px) {
    .detail-card-header {
        padding: 12px 16px;
    }

    .detail-card-body {
        padding: 16px;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 0.375rem;
        font-size: 0.8rem;
    }

    .nav-tabs .nav-link i {
        font-size: 1.2rem; /* Make icons bigger on mobile */
        margin-right: 0 !important;
    }

    .navbar-dropdown {
        right: -10px;
    }
}



.card-header {
    background-color: #f8f9fa; /* Fondo más claro para el header de la tarjeta */
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #343a40;
}

.shadow-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease-in-out;
}

/* Estilos para la sección de comentarios */
.comment-section {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px; /* Espacio para el scrollbar */
}

.comment-section::-webkit-scrollbar {
    width: 8px;
}

.comment-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.comment-section::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.comment-section::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- ESTILOS DE PAGINACIÓN RESPONSIVA --- */
.pagination .page-link {
    transition: all 0.2s ease-in-out;
}

/* Para pantallas más pequeñas (tablets) */
@media (max-width: 768px) {
    .pagination .page-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        padding: 0.3rem 0.5rem;
    }
}

/* Para pantallas muy pequeñas (móviles) */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Oculta los puntos suspensivos en móviles para ahorrar espacio */
    .pagination .page-item.disabled .page-link[aria-hidden="true"] {
        display: none;
    }
}

/* --- ESTILOS PARA LA PÁGINA DE LOGIN --- */
.login-container {
    background-color: #f0f2f5; /* Fondo pastel claro */
    /* overflow-x: hidden;  Ya no es necesario aquí si se maneja en html, body */
}

.login-image-col {
    /* background-color: #e9ecef;  Un color de fondo para la columna de la imagen */
    border-radius: 15px; /* Esquinas no afiladas para la imagen grande */
    overflow: hidden; /* Asegura que la imagen dentro respete el border-radius */
}

.login-form-col {
    background-color: #f8f9fa; /* Fondo pastel claro para la columna del formulario */
}

.login-form {
    background-color: #ffffff; /* Fondo blanco para el formulario */
    border-radius: 15px; /* Esquinas no afiladas */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Sombra más pronunciada */
    max-width: 450px; /* Ancho máximo para el formulario */
    width: 100%;
}

.login-form img {
    max-height: 100px; /* Tamaño del logo por defecto */
}

@media (min-width: 992px) { /* Para PC (lg y más grandes) */
    .login-form img {
        max-height: 150px; /* Logo más grande en PC */
    }
}

.form-control {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* --- ANIMACIONES CSS (reemplazo de Framer Motion) --- */

/* Fade in animation para el contenido principal */
main {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para las tarjetas de siniestros */
.card.shadow-hover {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.card.shadow-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.card.shadow-hover:active {
    transform: translateY(-3px) scale(0.98);
}

/* Animación para botones con efecto hover/tap */
.btn {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animación stagger para las tarjetas en grid */
.row > div[class*="col-"] {
    animation: fadeInStagger 0.5s ease-out backwards;
}

.row > div[class*="col-"]:nth-child(1) { animation-delay: 0.05s; }
.row > div[class*="col-"]:nth-child(2) { animation-delay: 0.1s; }
.row > div[class*="col-"]:nth-child(3) { animation-delay: 0.15s; }
.row > div[class*="col-"]:nth-child(4) { animation-delay: 0.2s; }
.row > div[class*="col-"]:nth-child(5) { animation-delay: 0.25s; }
.row > div[class*="col-"]:nth-child(6) { animation-delay: 0.3s; }
.row > div[class*="col-"]:nth-child(7) { animation-delay: 0.35s; }
.row > div[class*="col-"]:nth-child(8) { animation-delay: 0.4s; }
.row > div[class*="col-"]:nth-child(9) { animation-delay: 0.45s; }

@keyframes fadeInStagger {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.select2-container .select2-selection--single {
    height: 38px !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ced4da !important;
    border-radius: .375rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
}

/* --- CUSTOM AUTOCOMPLETE STYLES --- */
.autocomplete__wrapper {
    position: relative;
    margin-bottom: 0;
}

.autocomplete__input {
    width: 100% !important;
    padding: 0.625rem 2.75rem 0.625rem 0.875rem !important;
    font-size: 1rem !important;
    font-family: 'Poppins', sans-serif !important;
    border: 1.5px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Remove browser autocomplete yellow background */
.autocomplete__input:-webkit-autofill,
.autocomplete__input:-webkit-autofill:hover,
.autocomplete__input:-webkit-autofill:focus,
.autocomplete__input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    box-shadow: 0 0 0 1000px white inset, 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    -webkit-text-fill-color: #495057 !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

.autocomplete__input:hover {
    border-color: #adb5bd !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

.autocomplete__input:focus {
    outline: none !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
    background-color: #ffffff !important;
}

.autocomplete__input::placeholder {
    color: #adb5bd !important;
    font-style: italic !important;
}

/* Dropdown menu styling */
.autocomplete__menu {
    background-color: #ffffff !important;
    border: 1.5px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    margin-top: 0.25rem !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    animation: dropdownFadeIn 0.2s ease-out !important;
    z-index: 9999 !important;
    position: absolute !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete__menu::-webkit-scrollbar {
    width: 8px;
}

.autocomplete__menu::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.autocomplete__menu::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.autocomplete__menu::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.autocomplete__option {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    color: #495057 !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f1f3f5 !important;
    transition: all 0.15s ease-in-out !important;
}

.autocomplete__option:last-child {
    border-bottom: none !important;
}

.autocomplete__option:hover,
.autocomplete__option--focused {
    background-color: #f8f9fa !important;
    color: #0d6efd !important;
}

.autocomplete__option--selected {
    background-color: #e7f1ff !important;
    color: #0d6efd !important;
    font-weight: 500 !important;
}

.autocomplete__option--no-results {
    padding: 1rem !important;
    text-align: center !important;
    color: #868e96 !important;
    font-style: italic !important;
}

/* Loading indicator */
.autocomplete-loading-indicator {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}

.autocomplete-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #e9ecef;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success indicator */
.autocomplete-success-indicator {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
    color: #198754;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.autocomplete-success-indicator.show {
    opacity: 1;
}

/* Field container wrapper */
.autocomplete-field-wrapper {
    position: relative;
}

/* Hint text */
.autocomplete__hint {
    color: #6c757d !important;
    background-color: transparent !important;
}

/* Error state */
.autocomplete__input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .autocomplete__input {
        padding: 0.5rem 2.5rem 0.5rem 0.75rem !important;
        font-size: 0.95rem !important;
    }

    .autocomplete__option {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.9rem !important;
    }

    .autocomplete__menu {
        max-height: 200px !important;
    }
}

/* Enhance form sections */
.siniestro-form-section {
    animation: fadeInSection 0.4s ease-out;
}

@keyframes fadeInSection {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bento Card Styling for Siniestro Form */
.bento-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: visible;
}

.bento-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.bento-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 1rem;
    color: #495057;
    display: flex;
    align-items: center;
}

.bento-card-header i {
    color: #0d6efd;
    font-size: 1.1rem;
}

.bento-card-body {
    padding: 1.5rem;
    overflow: visible;
}

.form-label.fw-semibold {
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Metric Card Styling */
.card.border-left-primary {
    border-left: 4px solid #0d6efd !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
    transition: all 0.3s ease;
}

.card.border-left-primary:hover {
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.25);
    transform: translateY(-2px);
}

.card.border-left-primary .card-body {
    padding: 1.5rem;
}

.card.border-left-primary h3 {
    color: #0d6efd;
    font-weight: 700;
    font-size: 2rem;
}

/* --- ESTATUS COUNTER STYLES --- */
#estatusFilter {
    background: linear-gradient(to right, #ffffff 0%, #f8f9fa 100%);
}

#estatusFilter option {
    padding: 0.5rem;
    background-color: #ffffff;
    color: #495057;
}

#estatusFilter option:checked {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
}

/* Style for the counter badges in the status filter */
.status-counter {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Status counter badges display */
.status-counter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.status-counter-badges .badge {
    transition: all 0.2s ease-in-out;
    font-size: 0.80rem;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
}

.status-counter-badges .badge.bg-light {
    background-color: #f8f9fa !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.status-counter-badges .badge.bg-light:hover {
    background-color: #e9ecef !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.status-counter-badges .badge.bg-info {
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.status-counter-badges .text-muted.small {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* New Siniestro Card Styles */
.siniestro-card-new {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.siniestro-card-new .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px;
}

.siniestro-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.siniestro-card-new .card-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.8;
}

.siniestro-card-new .card-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain; /* To avoid distortion */
}

.siniestro-card-new .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.siniestro-card-new .card-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.siniestro-card-new .info-group {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.siniestro-card-new .info-item {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.siniestro-card-new .info-item strong {
    color: #343a40;
}

.siniestro-card-new .status-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-top: auto;
}

.siniestro-card-new .status-badge {
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.siniestro-card-new .status-badge-days {
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.siniestro-card-new .update-time {
    font-size: 0.8rem;
    margin-left: auto;
    color: #6c757d;
}