/* ==========================================
       SIDEBAR
   ========================================== */
.custom-hover:hover {
    background-color: #f8f9fa;
    color: #212529 !important;
}
.custom-hover:hover i {
    color: #212529 !important;
}

/* ==========================================
   COMPONENTE: CARRUSEL DE TARJETAS CLIENTES
   ========================================== */

.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 10px; /* Para que la sombra de la tarjeta no se corte al hacer hover */
}
/* NUEVA CLASE: Contenedor interno de productos */
.productos-container {
    flex: 1 1 auto;
    max-height: 130px;
    min-height: 0;
    overflow-y: auto;
}

/* Botones de acción dentro de la tarjeta */
.custom-hover-btn:hover {
    background-color: #f8f9fa;
    color: #212529;
}
/* Avatar circular iniciales */
.avatar-badge {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
}
/* Animación Pro al hacer hover */
.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
    border-color: #dee2e6 !important;
}

/* Las tarjetas individuales */
.client-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 330px;
    max-height: 360px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================
   COMPONENTES: BARRA DE ESTADO (PROCESO)
   ========================================== */

.fs-7 {
    font-size: 0.875rem; /* 14px */
}

/* Badges verdes suaves */
.badge-custom-light {
    background-color: #effbf3; /* Fondo verde ultra claro */
    font-size: 0.875rem;
}

/*  puntito verde de "En proceso" */
.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
}

/* Badge oscuro (Contador de clientes) */
.badge-custom-dark {
    background-color: #3b4758; /
    font-size: 0.875rem;
}

/* ==========================================
   COMPONENTES: INDICADORES Y GRÁFICOS
   ========================================== */

/* Clase para deshabilitar visual y funcionalmente cualquier botón sin que desaparezca */
.btn-disabled-custom {
    opacity: 0.5 !important;
    pointer-events: none !important;
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
}
/* Colores personalizados que Bootstrap no trae por defecto */
.bg-purple-subtle { background-color: #f3e8ff; }
.text-purple { color: #8b5cf6; }

/* Cajitas para los iconos de finanzas */
.icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Hover específico para el botón rojo de peligro */
.custom-hover-danger:hover {
    background-color: #f8d7da !important;
    border-color: #f5c2c7 !important;
}

.donut-chart {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* El degradado cónico usa la variable, pintando de azul hasta el %, y gris el resto */
    background: conic-gradient(#4e73df var(--porcentaje), #f1f3f5 0);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El agujero blanco del centro del gráfico */
.donut-chart::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

/* El texto que va encima del agujero blanco */
.donut-inner-text {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
}

/* =======================================================*/
/*MODAL: NUEVA CARGA*/
/*======================================================= */

     /* Estilos personalizados para replicar el diseño exacto */
 .section-title {
     color: #1e3a8a; /* Azul marino oscuro */
     font-weight: 700;
     font-size: 0.95rem;
 }
.tank-compartment {
    background-color: #9ca3af; /* Gris por defecto (Vacío) */
    color: white;
    width: 70px;
    height: 120px;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 5px;
    transition: all 0.3s ease;
}
.bg-blue-gradient {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.custom-card {
    border: 1px solid #f3f4f6;
    background-color: #f8fafc;
}
.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}


/*modal compartimientos cisterna*/
.section-title { color: #1e3a8a; font-weight: 700; font-size: 0.95rem; }

.bg-blue-gradient { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.custom-card { border: 1px solid #f3f4f6; background-color: #f8fafc; }
.legend-dot { width: 14px; height: 14px; border-radius: 50%; }
/* Estructura base del tanque */


/*sdads*/
.tank-compartment {
    width: 70px;
    height: 120px;
    border-top-left-radius: 35px;
    border-top-right-radius: 35px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: relative;
    overflow: hidden;
    background-color: #9ca3af; /* Color gris para cuando está LIBRE */
    transition: all 0.3s ease;
}

.tank-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.tank-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    transition: height 0.5s ease;
}

/* =======================================================
   ESTILOS DEL LOADER GLOBAL (OPCIÓN CORPORATIVA)
   ======================================================= */

/* Contenedor principal a pantalla completa con Glassmorphism */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85); /* Blanco semi-transparente */
    backdrop-filter: blur(8px); /* Difumina lo que hay detrás */
    -webkit-backdrop-filter: blur(8px); /* Soporte para Safari/iOS */
    z-index: 9999; /* Por encima de cualquier menú o modal */
    transition: opacity 0.1s ease, visibility 0.1s ease; /* Desaparición suave */
    opacity: 1;
    visibility: visible;
}

/* Clase que inyecta JS para ocultar el loader */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

/* Animación suave de "latido" para el logo */
@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.85; }
}

.pulse-anim {
    animation: pulseLogo 2s infinite ease-in-out;
}

/* configuracion de pestañas en cofig.html*/
#configurationTabs .nav-link {
    color: black;
    background-color: lightgray;
}

#configurationTabs .nav-link.active {
    color: black;
    background-color: lightskyblue;
}