/* ============================================
   stk.css - Estilos específicos para el Módulo de Stocks
   Complementa a estilos.css (global). No repetir estilos base.
   Inspirado en Material Design (elevación) y Fluent (acrílico).
   ============================================ */

/* ---------- 1. EFECTOS DE SUPERFICIE (Fluent - Acrílico) ---------- */
.card-acrylic {
    background-color: rgba(255, 255, 255, 0.75) !important;   
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);    
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-acrylic .card-header {
    background-color: rgba(0, 123, 255, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

/* ---------- 2. ELEVACIÓN AVANZADA (Material Design) ---------- */
.shadow-elevated {
    box-shadow: 0 8px 17px 2px rgba(0,0,0,0.14),
                0 3px 14px 2px rgba(0,0,0,0.12),
                0 5px 5px -3px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.shadow-elevated:hover {
    box-shadow: 0 16px 24px 2px rgba(0,0,0,0.14),
                0 6px 30px 5px rgba(0,0,0,0.12),
                0 8px 10px -5px rgba(0,0,0,0.2);
}

/* ---------- 3. FONDOS DE COLOR PARA CELDAS ESPECÍFICAS (Suaves, tipo Material) ---------- */
.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.15) !important;
}
.bg-soft-success {
    background-color: rgba(40, 167, 69, 0.1) !important;
}
.bg-soft-info {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

/* ---------- 4. MEJORAS PARA EL MODAL DE KARDEX ---------- */
.modal-xl .modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header.bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

/* Animación de aparición del modal (Fluent) */
.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(-30px);
    opacity: 0;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ---------- 5. ESTILOS PARA BOTONES DE ACCIÓN EN TABLA ---------- */
.btn-outline-primary.btn-ver-kardex {
    border-width: 2px;
    font-weight: 500;
    padding: 2px 8px;
    transition: all 0.2s;
}

.btn-outline-primary.btn-ver-kardex:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* ---------- 6. MEJORAS EN LA LEGIBILIDAD DE LA TABLA DE STOCKS ---------- */
#tblStk td {
    vertical-align: middle;
}

#tblStk .bg-soft-warning,
#tblStk .bg-soft-success,
#tblStk .bg-soft-info {
    font-weight: 500;
}