/* 
   SaaS Lubricadora Geo Motors - Custom Styles
   Modernización y estética premium
*/

:root {

    --gm-primary: #0f172a;
    --gm-accent: #3b82f6;
    --gm-accent-glow: rgba(59, 130, 246, 0.5);
    --gm-success: #10b981;
    --gm-danger: #ef4444;
    --gm-warning: #f59e0b;
    --gm-bg-soft: #f8fafc;
    --gm-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --gm-card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gm-border-radius: 12px;
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: var(--gm-bg-soft);
    color: #1e293b;
}

/* Tarjetas Estilizadas */
.card {
    border: none !important;
    border-radius: var(--gm-border-radius) !important;
    box-shadow: var(--gm-card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.card:hover {
    box-shadow: var(--gm-card-shadow-hover) !important;
    transform: translateY(-2px);
}

/* Widgets del Dashboard */
.widget-flat {
    position: relative;
    overflow: hidden;
}

.widget-flat .card-body {
    padding: 1.5rem;
}

.widget-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Botones Premium */
.btn {
    border-radius: 8px !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--gm-accent) !important;
    border-color: var(--gm-accent) !important;
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--gm-accent-glow);
}

/* Tablas Modernas */
.table thead th {
    background-color: #f1f5f9 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0 !important;
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem !important;
}

.badge {
    padding: 0.35em 0.65em !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
}

/* Gradientes para KPIs */
.bg-success-lighten {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.bg-info-lighten {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

.bg-primary-lighten {
    background-color: rgba(15, 23, 42, 0.1) !important;
}

.bg-danger-lighten {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

/* --- Mejoras para Stock Bajo (Profesional) --- */
.stock-low-row {
    border-left: 4px solid var(--gm-danger) !important;
    background-color: rgba(239, 68, 68, 0.02) !important;
}

.stock-low-row:hover {
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.stock-low-row td {
    color: #4b5563 !important;
    /* Texto un poco más suave, no tan agresivo */
}

.stock-low-row .stock-cell {
    color: var(--gm-danger) !important;
    font-weight: 600;
}