/* Diseño Premium - Sistema POS */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f6f9;
}





/* Login Premium */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #092933 100%);
   
}

.login-box {
    width: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.login-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.login-header {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.login-header h2 {
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-body {
    padding: 30px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Layout Interno */
.sidebar {
    min-height: 100vh;
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-left: 4px solid var(--primary-color);
}

.sidebar .nav-link i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

.top-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

/* ==========================================
   RESPONSIVE DESIGN (MÓVILES Y TABLETS)
========================================== */

/* Overlay oscuro para fondo cuando el menú está abierto en móvil */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1030;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* Media Query para pantallas pequeñas (Móviles y Tablets) */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1040;
        transform: translateX(-100%); /* Oculto por defecto */
        height: 100vh;
        overflow-y: auto;
    }
    
    .sidebar.sidebar-show {
        transform: translateX(0); /* Mostrar */
    }

    /* En móvil, los botones del carrito y acciones pueden ser muy pequeños, 
       asegurar padding amigable para el dedo (Touch-friendly) */
    .btn {
        padding: 0.5rem 1rem;
    }
    
    /* El contenedor principal debe tomar todo el ancho */
    .w-100 {
        
        overflow-x: hidden;
    }

    /* POS Sticky Mobile Cart Button */
    .mobile-cart-btn {
        display: block !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        border-radius: 50px;
        padding: 15px 25px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

/* Ocultar botón de carrito flotante en PC */
@media (min-width: 992px) {
    .mobile-cart-btn {
        display: none !important;
    }
}
