/* Variables de Marca */
:root {
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
    --bg-light: #f8fafc;
}

body { background-color: var(--bg-light); }

/* Navbar Moderna */
.sb-topnav.navbar {
    background: var(--primary-gradient) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Tarjetas con Diseño UX/UI */
.card {
    border: none !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.08) !important;
}

/* Estilo para el Login (Glassmorphism) */
.login-bg {
    background: var(--primary-gradient);
    min-height: 100vh;
}

.card-login {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem !important;
}

/* Botones con estilo moderno */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 0.6rem;
    font-weight: 600;
}

/* Iconos de fondo en tarjetas de Dashboard */
.card-body-icon {
    position: absolute;
    z-index: 0;
    top: -10px;
    right: -10px;
    opacity: 0.1;
    font-size: 4rem;
    transform: rotate(15deg);
}
/* Variables de color y gradientes */
:root {
    --primary-gradient: linear-gradient(135deg, #0d6efd 0%, #198754 100%);
}

/* Fondo de la página de Login */
.login-bg {
    background: var(--primary-gradient);
    background-attachment: fixed;
    height: 100vh;
}

/* Tarjeta de Login Glassmorphism */
.card-login {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem !important;
}

/* Inputs personalizados */
.custom-input {
    border-radius: 0.8rem !important;
    border: 1px solid #dee2e6 !important;
}

.custom-input:focus {
    border-color: #0d6efd !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15) !important;
}

/* Gradiente para el texto o iconos */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botón estilizado */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 0.8rem !important;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

/* Ajuste para los campos del Modal */
.modal-content .form-control, 
.modal-content .form-select, 
.modal-content .input-group-text {
    border-radius: 0.8rem;
    padding: 0.75rem;
}

.modal-content .form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}
/* Botón de acción principal (Estilo POS/Nuevo) */
.btn-pos {
    background: linear-gradient(135deg, #0d6efd 0%, #198754 100%) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-pos:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4) !important;
    filter: brightness(1.1);
}

.btn-pos i {
    margin-right: 8px;
    font-size: 1rem;
}

/* Avatar circular para la lista de personal */
.avatar-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Estilo para los códigos de usuario */
code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Tarjetas de Sucursal */
.card-footer .btn-light:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.border-top.border-4 {
    border-top-width: 6px !important;
}

/* Colores suaves para badges de estado */
.bg-success-soft {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

/* Formas de iconos para estadísticas */
.icon-shape {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-white.border {
    background-color: white !important;
}

.btn-group .btn.active {
    background-color: #0d6efd;
    color: white;
}

/* --- ESTILOS ESPECÍFICOS DEL PUNTO DE VENTA (POS) --- */

/* Ajustes de altura para scroll dinámico */
.product-grid { 
    height: calc(100vh - 280px); 
    overflow-y: auto; 
    padding-right: 5px; 
}

.cart-container { 
    height: calc(100vh - 580px); 
    overflow-y: auto; 
    min-height: 200px; 
}

/* Sección de totales con diseño limpio */
.total-section { 
    background: #f8f9fa; 
    border-radius: 1.2rem; 
    padding: 20px; 
    border: 1px solid #eee; 
}

/* Personalización de Modales con tu Gradiente */
.modal-header-gradient {
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
}

/* Efecto al pasar el mouse por los productos del carrito */
.cart-item-row:hover { 
    background-color: rgba(13, 110, 253, 0.05); 
}

/* Scrollbar personalizado para la rejilla de productos */
.product-grid::-webkit-scrollbar {
    width: 6px;
}
.product-grid::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 10px;
}