.bi {
    display: inline-block;
    font-family: bootstrap-icons !important;
    font-style: normal;
    font-weight: normal !important;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: -.125em;
    -webkit-font-smoothing: antialiased;
}

/* assets/style.css */
body {
    background-color: #f8f9fa; /* Gris muy suave de fondo */
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
    padding: 2rem 1rem;
    background-color: #2c3e50; /* Azul oscuro elegante */
    color: white;
}

.content {
    margin-left: 18rem;
    margin-right: 2rem;
    padding: 2rem 1rem;
}

.nav-link {
    color: #bdc3c7;
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    background-color: #34495e;
    border-radius: 5px;
}

.nav-link.active {
    color: #f1c40f; /* Dorado para el activo */
    font-weight: bold;
}


.content-login {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    background-color: #ecf0f1; 
}

.nav-link {
    color: #bdc3c7;
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    background-color: #34495e;
    border-radius: 5px;
}

.nav-link.active {
    color: #f1c40f;
    font-weight: bold;
}

/* assets/style.css */

/* Efecto Hover para las cards de inventario */
.hover-shadow {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-shadow:hover {
    transform: translateY(-5px); /* Se mueve un poquito hacia arriba */
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important; /* Sombra más fuerte */
    border-color: #3498db; /* Borde azul sutil */
}

/* assets/style.css */

/* 1. FONDO Y FUENTE GENERAL */
body {
    background-color: #f4f6f8; /* Gris muy suave, mejor que el blanco puro */
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    color: #344767;
}

/* 2. MODERNIZAR LAS CARDS */
.card {
    border: none !important; /* Quita el borde gris viejo */
    border-radius: 16px !important; /* Bordes muy redondeados */
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important; /* Sombra suave */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* assets/style.css */

/* 1. Mantenemos las cards base estáticas */
.card {
    border: none !important;
    border-radius: 16px !important;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 2. Clase NUEVA solo para elementos que sí son botones o interactivos */
.card-interactive:hover {
    transform: translateY(-4px); /* El efecto de levantarse */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
    cursor: pointer; /* Cambia el cursor para indicar que es clickeable */
}

/* Headers de las Cards más limpios */
.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid #f0f0f0 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #8392ab;
    padding-top: 1.2rem;
    padding-bottom: 1rem;
}

/* 3. MEJORAR LOS KPI (Números Grandes) */
h1, h2, h3 {
    font-weight: 700 !important;
    letter-spacing: -0.5px;
}

/* 4. BOTONES MODERNOS */
.btn {
    border-radius: 8px !important; /* Botones más suaves */
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-transform: none; /* Evita mayúsculas forzadas */
}

.btn-primary {
    background: linear-gradient(310deg, #2152ff 0%, #21d4fd 100%) !important;
    border: none !important;
}

.btn-success {
    background: linear-gradient(310deg, #17ad37 0%, #98ec2d 100%) !important;
    border: none !important;
}

.btn-danger {
    background: linear-gradient(310deg, #ea0606 0%, #ff667c 100%) !important;
    border: none !important;
}

/* 5. SIDEBAR (Barra Lateral) */
.sidebar {
    background-color: #ffffff;
    border-right: none !important;
    box-shadow: 4px 0 10px rgba(0,0,0,0.02);
    border-radius: 0 20px 20px 0;
    margin-right: 15px;
}

.nav-pills .nav-link.active {
    background-color: #fff !important;
    color: #2152ff !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
    font-weight: bold;
    border-radius: 10px;
}

.nav-link {
    color: #67748e;
    font-weight: 500;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #344767;
    transform: translateX(5px);
}

/* assets/style.css */

/* Ajuste para que las tablas de deudas y transacciones sean legibles en móvil */
.dash-table-container .dash-spreadsheet-container {
    display: block !important;
}

/* En móvil, eliminamos paddings excesivos */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Hacemos que los títulos de página sean un poco más pequeños */
    h2, h3, h4 {
        font-size: 1.25rem !important;
    }
}

/* Efecto hover suave para el menú */
.nav-pills .nav-link.active {
    background-color: #212529 !important;
}

.nav-link {
    color: #495057;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f8f9fa;
}

/* Permite el scroll horizontal en tablas anchas dentro de móviles */
.dash-spreadsheet-container, .dash-table-container {
    overflow-x: auto !important;
}

/* Ajuste de margen para el contenido principal para que no choque con el header */
#page-content {
    min-height: calc(100vh - 60px);
}

/* assets/style.css */

/* Acento para Relojes (Azul Vibrante) */
.card-watch-accent {
    border-left: 5px solid #2152ff !important;
}

/* Acento para Accesorios (Gris Slate Moderno) */
.card-accessory-accent {
    border-left: 5px solid #6c757d !important;
}

/* Opcional: Si quieres que al pasar el mouse brille un poco con su color */
.card-watch-accent.card-interactive:hover {
    box-shadow: 0 10px 20px -5px rgba(33, 82, 255, 0.2) !important;
    border-color: #21d4fd !important;
}

.card-accessory-accent.card-interactive:hover {
    box-shadow: 0 10px 20px -5px rgba(108, 117, 125, 0.2) !important;
}

/* assets/style.css */

/* Efecto sutil para botones tipo outline al hacer hover */
.btn-outline-success:hover, .btn-outline-danger:hover, .btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease-in-out;
}

/* Aseguramos que el fondo se rellene correctamente (comportamiento estándar) */
.btn-outline-success:hover {
    color: #fff !important;
}

/* =========================================
   ESTILOS PARA TARJETAS INTERACTIVAS (GRID)
   ========================================= */

/* 1. Transición suave base para todas las tarjetas interactivas */
.card-interactive {
    transition: all 0.3s ease-in-out;
    border-width: 0px 0px 0px 4px !important; /* Asegura que el borde izquierdo sea el grueso */
}

/* 2. Efecto Hover General (levanta un poco la tarjeta) */
.card-interactive:hover {
    transform: translateY(-5px); /* Pequeño movimiento hacia arriba */
}


/* --- ESTILOS ESPECÍFICOS POR TIPO --- */

/* RELOJES (Borde Azul Primario) */
/* Estado normal ya está definido por Bootstrap (.border-primary) */

/* Hover: El borde azul se vuelve "celeste" brillante */
/* assets/style.css */

/* 1. Transición base para todas las tarjetas */
.card-interactive {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    /* Forzamos que solo exista el borde izquierdo de 4px, ignorando otras clases border-* */
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left-width: 4px !important;
    border-left-style: solid !important;
    cursor: pointer;
}

/* 2. Elevación general al pasar el mouse */
.card-interactive:hover {
    transform: translateY(-5px) !important;
    z-index: 2;
}

/* ⌚ RELOJES (Borde Primario) */
.card-interactive.border-primary {
    border-left-color: #0d6efd !important; /* Azul Bootstrap */
}

.card-interactive.border-primary:hover {
    border-left-color: #0dcaf0 !important; /* Celeste/Cyan */
    box-shadow: 0 8px 25px rgba(13, 202, 240, 0.3) !important;
}

/* 🧶 ACCESORIOS (Borde Secundario) */
.card-interactive.border-secondary {
    border-left-color: #6c757d !important; /* Gris Bootstrap */
}

.card-interactive.border-secondary:hover {
    /* Usamos un gris plata más brillante que el anterior para que se note el "brillo" */
    border-left-color: #adb5bd !important; 
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.25) !important;
}

/* assets/style.css */

/* --- MENÚ LATERAL: ITEM SELECCIONADO --- */
/* Cambiamos a Gris Oscuro con letras Doradas como el login */
.nav-pills .nav-link.active {
    background-color: #333333 !important; /* Gris carbón */
    color: #d4af37 !important;           /* Dorado Bolder Vintage */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Aseguramos que el icono también sea dorado */
.nav-pills .nav-link.active i {
    color: #d4af37 !important;
}

/* Efecto hover para links no seleccionados */
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #d4af37;
}


/* assets/style.css */

/* Acento para Relojes con Deuda (Rojo Intenso) */
.card-debt-accent {
    border-left: 6px solid #ea0606 !important; /* Borde izquierdo más grueso */
    border-right: 1px solid rgba(234, 6, 6, 0.2) !important; /* Borde sutil lateral */
    border-top: 1px solid rgba(234, 6, 6, 0.2) !important;
    border-bottom: 1px solid rgba(234, 6, 6, 0.2) !important;
}

/* Efecto hover para las deudas */
.card-debt-accent.card-interactive:hover {
    box-shadow: 0 10px 20px -5px rgba(234, 6, 6, 0.3) !important;
    border-left-color: #ff0000 !important;
    transform: translateY(-5px) scale(1.01); /* Un poco más de énfasis */
}