/* estilos.css - OPTIMIZADO PARA ALTO CONTRASTE Y LEGIBILIDAD */

:root {
    --bg-main: #F1F5F9;          /* Gris muy claro de fondo */
    --white: #FFFFFF;
    --primary-dark: #0F172A;     /* Negro Azulado (Para títulos y textos principales) */
    --secondary-text: #475569;   /* Gris Oscuro (Para etiquetas y textos secundarios) */
    --accent: #4f46e5;           /* Indigo Premium */
    --accent-hover: #4338ca;
    --success: #10B981;          /* Verde para ventas */
    --info: #0EA5E9;             /* Azul para clientes */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 16px;
}

body { 
    background-color: var(--bg-main) !important; 
    color: var(--primary-dark) !important; /* Texto base oscuro */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
}

/* --- TARJETAS ESTADÍSTICAS (Dashboard) --- */
.card-stat {
    background: var(--white) !important;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #E2E8F0 !important;
}

.card-stat h3, .card-stat h4 {
    color: var(--primary-dark) !important; /* Forzar que el número se vea negro */
    font-weight: 700;
}

.card-stat small {
    color: var(--secondary-text) !important; /* Etiquetas legibles */
    font-weight: 600;
}

/* --- GRÁFICA Y CARDS DE CONTENIDO --- */
.glass-card {
    background: var(--white) !important;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #E2E8F0;
    color: var(--primary-dark) !important;
}

.section-title {
    color: var(--primary-dark) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- ACCESO RÁPIDO (Botones Cuadrados) --- */
.action-square {
    background: var(--white) !important;
    border-radius: var(--radius);
    padding: 20px 10px;
    text-align: center;
    border: 2px solid #F1F5F9 !important;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.action-square i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.action-square small {
    color: var(--primary-dark) !important; /* Texto negro para que se vea */
    font-weight: 700;
    font-size: 0.75rem;
}

.action-square:hover {
    border-color: var(--accent) !important;
    transform: translateY(-3px);
}

/* Botón Facturar Resaltado */
.btn-facturar {
    background: var(--accent) !important;
}
.btn-facturar i, .btn-facturar small {
    color: #FFFFFF !important; /* Texto blanco sobre fondo indigo */
}

/* --- MOVIMIENTOS RECIENTES (Listado) --- */
.move-item {
    background: var(--white) !important;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    border: 1px solid #F1F5F9 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.move-item h6 {
    color: var(--primary-dark) !important; /* Nombre del cliente en negro */
    font-weight: 700;
    margin: 0;
}

.move-item p {
    color: var(--primary-dark) !important; /* Precio en negro */
    margin: 0;
}

.text-muted {
    color: var(--secondary-text) !important; /* Grises que sí se vean */
}

/* --- BOTONES DE ACCIÓN (PDF / WSSP) --- */
.btn-circle-action {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.2s;
}

/* --- FOOTER / DERECHOS --- */
.footer-credits {
    padding: 20px;
    text-align: center;
    color: var(--secondary-text) !important;
    font-size: 0.8rem;
}

.footer-credits a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}