/* Estilos generales */
body {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

footer {
    margin-top: auto;
    background-color: #1a1a1a;
    padding: 2px 0 !important;
    border-top: 1px solid #333;
}

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos para el login */
.login-container {
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 30px !important;
    background-color: #2a2a2a !important;
    border-radius: 10px !important;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

/* Estilos para la sección de la aplicación */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo-container img {
    max-width: 220px !important;
    height: auto !important;
    border-radius: 50%;
    padding: 15px !important;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Skeleton para el logo */
.logo-skeleton {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 120px;
    height: 120px;
}

.skeleton-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Animación de entrada del logo */
.logo-main {
    animation: logoFadeIn 0.6s ease-in-out;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ocultar skeleton cuando el logo se carga */
.logo-skeleton.hidden {
    display: none;
}

/* Responsive para skeleton del logo */
@media (max-width: 768px) {
    .logo-skeleton {
        width: 100px;
        height: 100px;
    }
    
    .skeleton-circle {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .logo-skeleton {
        width: 80px;
        height: 80px;
    }
    
    .skeleton-circle {
        width: 60px;
        height: 60px;
    }
}

.welcome-message {
    text-align: center !important;
    margin-bottom: 30px !important;
}

.welcome-message h1 {
    font-size: 36px !important;
    color: #0dcaf0 !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

.welcome-subtitle {
    color: #888 !important;
    font-size: 16px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.card .card-title {
    color: #ffffff !important;
    font-weight: bold;
}
.card .card-body .small {
    color: #e0e0e0 !important;
}

/* Estilos para formularios */
.form-control {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    margin-bottom: 15px;
    width: 100%;
}

.form-control:focus {
    background-color: #333;
    border-color: #0dcaf0;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

.form-control::placeholder {
    color: #888;
}

/* Estilos para botones */
.btn {
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

.btn-info:hover {
    background-color: #31d2f2;
    border-color: #25cff2;
    color: #000;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

/* Estilos para botones pequeños */
.btn-sm {
    padding: 5px 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para la navegación */
.nav-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 400px !important;
}

.nav-buttons .btn {
    padding: 20px 40px !important;
    font-size: 20px !important;
    text-align: center !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

/* Botón Punto de Venta más grande */
.nav-buttons .btn-info {
    padding: 25px 45px !important;
    font-size: 26px !important;
    font-weight: 600 !important;
}

/* Botón Cerrar Sesión más pequeño */
.nav-buttons .btn-danger {
    padding: 12px 30px !important;
    font-size: 16px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .login-container,
    .app-container {
        margin: 10px;
        padding: 20px;
    }
    
    .welcome-message h1 {
        font-size: 28px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .logo-container img {
        max-width: 180px;
    }

    .nav-buttons .btn-info {
        padding: 20px 35px;
        font-size: 22px;
    }

    .nav-buttons .btn-danger {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-container, .app-container {
    animation: fadeIn 0.5s ease-in-out;
}

/* Estilos de la sección de la aplicación */
.app-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.app-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
}

.app-content {
    display: flex;
    justify-content: center;
}

/* Estilos para las tablas */
.table {
    color: #fff;
    margin-bottom: 0;
}

.table-dark {
    background-color: #2a2a2a;
}

.table-dark td,
.table-dark th {
    border-color: #444;
    padding: 12px;
    vertical-align: middle;
}

/* Estilos para las cards */
.card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #333;
    border-bottom: 1px solid #444;
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Estilos para el titulo del restaurante */
.nombreRestaurante {
    color: #0dcaf0 !important;
    font-family:'Montserrat',sans-serif !important;
    font-weight: bold !important;
    font-size: 2.2rem !important;
    margin-bottom: 0 !important;
}
/* Estilos para los checkboxes */
.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #2a2a2a;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid #6c757d;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

/* Estilos para la paginación */
.pagination {
    margin-bottom: 0;
}

.page-link {
    background-color: #2a2a2a;
    border-color: #444;
    color: #fff;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #333;
    border-color: #444;
    color: #fff;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

/* Estilos para los select */
.form-select {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 12px;
    transition: all 0.3s ease;
}

.form-select:focus {
    background-color: #333;
    border-color: #0dcaf0;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

/* Estilos para los títulos */
h1, h2, h3, h4, h5, h6 {
    color: #fff;
    margin-bottom: 1rem;
}

/* Estilos para el scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc3545;
}

/* Estilos para etiquetas de formulario */
.form-check-label {
    color: #fff;
    cursor: pointer;
}

/* Estilos para inputs específicos */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select {
    background-color: #333 !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
    background-color: #333 !important;
    border-color: #0dcaf0 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25) !important;
}

/* Estilos para los mensajes de alerta */
.alert {
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    animation: fadeIn 0.3s ease-in-out;
}

/* Estilos para los tooltips */
.tooltip {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Estilos para los modales */
.modal-content {
    background-color: #2a2a2a;
    color: #fff;
    border: 1px solid #444;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #444;
    background-color: #333;
}

.modal-footer {
    border-top: 1px solid #444;
    background-color: #333;
}

/* Estilos para los dropdowns */
.dropdown-menu {
    background-color: #2a2a2a;
    border: 1px solid #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: #fff;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #333;
    color: #fff;
}

/* Estilos para los badges */
.badge {
    font-weight: 600;
    padding: 0.5em 0.75em;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Estilos para los spinners */
.spinner-border {
    color: #0dcaf0;
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Estilos para los inputs de tipo range */
input[type="range"] {
    background-color: #333;
    height: 6px;
    border-radius: 3px;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #0dcaf0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px rgba(13, 202, 240, 0.5);
}

/* Estilos para los inputs de tipo file */
input[type="file"] {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

input[type="file"]:hover {
    border-color: #0dcaf0;
}

/* Estilos para los inputs de tipo date y time */
input[type="date"],
input[type="time"] {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

input[type="date"]:focus,
input[type="time"]:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

/* Estilos para los inputs deshabilitados */
input:disabled,
select:disabled,
textarea:disabled {
    background-color: #444 !important;
    border-color: #555 !important;
    color: #888 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Estilos para los inputs de solo lectura */
input[readonly],
select[readonly],
textarea[readonly] {
    background-color: #444 !important;
    border-color: #555 !important;
    color: #888 !important;
    cursor: not-allowed;
}

/* Estilos para los inputs requeridos */
input:required,
select:required,
textarea:required {
    border-left: 3px solid #dc3545;
}

/* Estilos para los inputs válidos */
input:valid,
select:valid,
textarea:valid {
    border-left: 3px solid #198754;
}

/* Estilos para los inputs inválidos */
input:invalid,
select:invalid,
textarea:invalid {
    border-left: 3px solid #dc3545;
}

/* Estilos para los inputs con placeholder */
::placeholder {
    color: #888;
    opacity: 1;
}

/* Estilos para los inputs con autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #333 inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Estilos para los inputs con focus */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para los inputs con hover */
input:hover,
select:hover,
textarea:hover {
    border-color: #0dcaf0;
}

/* Estilos para los inputs con active */
input:active,
select:active,
textarea:active {
    border-color: #0dcaf0;
}

/* Estilos para los inputs con focus-visible */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para los inputs con focus-within */
input:focus-within,
select:focus-within,
textarea:focus-within {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilos para los títulos */
h1, h2, h3 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Estilos para las listas */
#listaClientes,
#listaCategorias,
#listaProductos {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Estilos para el scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc3545;
}

/* Estilos específicos para POS */
#categorias button {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #0dcaf0, #6610f2);
    color: white;
    border: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#categorias button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Estilos especiales para el botón "Todos los Productos" */
#categorias button.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    font-size: 1.1rem;
    padding: 1rem;
    margin-bottom: 1rem !important;
}

#categorias button.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Separador visual entre "Todos los Productos" y categorías */
#categorias hr {
    border: 2px solid #0dcaf0;
    opacity: 0.6;
    margin: 1.5rem 0;
}

.table-striped > tbody > tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.05);
}

input[type="text"], input[type="number"] {
    transition: box-shadow 0.2s ease;
}

input[type="text"]:focus, input[type="number"]:focus {
    box-shadow: 0 0 8px rgba(13, 202, 240, 0.5);
    outline: none;
}

/* Estilos para checkboxes en tablas */
.table .form-check-input {
    margin: 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.table th .form-check-input {
    margin: 0;
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

/* Ajuste para el ancho de las columnas de checkbox */
.table th:first-child,
.table td:first-child {
    width: 40px;
    text-align: center;
}

/* Ajuste para la columna de acciones */
.table th:last-child,
.table td:last-child {
    width: 100px;
    text-align: center;
}

/* Estilos para las tablas responsivas */
.table-responsive {
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    overflow: hidden;
}

/* Estilos para las filas de la tabla */
.table-dark tbody tr {
    transition: background-color 0.2s ease;
}

.table-dark tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilos para los botones en las tablas */
.table .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
    margin: 0 2px;
}

/* Estilos para los checkboxes en modo oscuro */
.table-dark .form-check-input {
    background-color: #2a2a2a;
    border-color: #6c757d;
}

.table-dark .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.table-dark .form-check-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Efecto hover para los checkboxes */
.form-check-input:hover {
    border-color: #dc3545;
    cursor: pointer;
}

/* Animación al marcar el checkbox */
.form-check-input:checked {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Estilos para contenedores responsivos */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1600px) {
    .container-fluid {
        max-width: 1600px;
    }
}

/* Estilos para las cards */
.card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    margin-bottom: 20px;
    border-radius: 10px;
}

.card-body {
    padding: 1.5rem;
}

/* Ajustes para tablas en pantallas grandes */
@media (min-width: 992px) {
    .table-responsive {
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }
}

/* Estilos para el botón de instalación */
#installButton {
    transition: all 0.3s ease;
    border: 2px solid #0dcaf0;
    padding: 10px 20px;
    font-weight: 600;
    margin-top: 15px;
}

#installButton:hover {
    background-color: #0dcaf0;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.3);
}

#installButton i {
    margin-right: 8px;
}

/* Animación para el botón de instalación */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#installButton {
    animation: pulse 2s infinite;
}

/* Estilos para WhatsApp Web */
.whatsapp-phone {
  width: 100%;
  height: 600px;
  background: #000;
  border-radius: 40px;
  padding: 10px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  display: none;
}

.whatsapp-phone.active {
  display: block;
}

.phone-frame {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-header {
  height: 30px;
  background: #000;
  position: relative;
  z-index: 2;
}

.phone-notch {
  width: 150px;
  height: 25px;
  background: #000;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px;
  color: #fff;
  font-size: 12px;
}

.status-icons {
  display: flex;
  gap: 5px;
}

#whatsappContainer {
  flex: 1;
  position: relative;
  background: #fff;
}

.phone-footer {
  height: 30px;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.home-button {
  width: 40px;
  height: 5px;
  background: #fff;
  border-radius: 3px;
}

/* Ajustes para el layout */
@media (min-width: 992px) {
  .container-fluid {
    max-width: 1800px;
  }
  
  #categorias button {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
  
  .table-responsive {
    max-height: 500px;
    overflow-y: auto;
  }
}

/* Estilos responsivos */
@media (max-width: 991px) {
  .whatsapp-phone {
    height: 500px;
  }
  
  .col-lg-3 {
    margin-bottom: 1rem;
  }
}

/* Estilos responsivos mejorados */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .table-responsive {
        margin: 0 -10px;
    }

    .table th, .table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 0.3rem;
    }

    .modal-header {
        padding: 0.75rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 0.75rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    .page-link {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Ajustes específicos para la gestión de clientes */
    #listaClientes .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    #listaClientes .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Ajustes específicos para la gestión de categorías */
    #listaCategorias .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    #listaCategorias .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Ajustes específicos para la gestión de productos */
    #listaProductos .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    #listaProductos .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Ajustes para los formularios de modificación */
    .modal-body form {
        margin-bottom: 0;
    }

    .modal-body .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    /* Ajustes para los botones de acción */
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .d-flex.gap-2 .btn {
        width: 100%;
    }

    /* Ajustes para la paginación */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }

    .d-flex.justify-content-between .form-select {
        width: 100%;
    }

    /* Ajustes para los inputs de búsqueda */
    .row.mb-3 .col-12 {
        padding: 0;
    }

    .row.mb-3 .form-control {
        margin-bottom: 0.5rem;
    }
}

/* Ajustes para tablets */
@media (min-width: 769px) and (max-width: 991px) {
    .container-fluid {
        padding: 15px;
    }

    .card {
        margin-bottom: 20px;
    }

    .table th, .table td {
        padding: 0.75rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .modal-dialog {
        margin: 1rem;
    }
}

/* Ajustes para pantallas grandes */
@media (min-width: 992px) {
    .container-fluid {
        padding: 20px;
    }

    .card {
        margin-bottom: 25px;
    }

    .table th, .table td {
        padding: 1rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .modal-dialog {
        margin: 1.75rem auto;
    }

    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
        width: 100%;
    }

    .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
}

/* MODO COMPACTO PARA POS */
body, .container-fluid, .app-container, .card, .modal-content, .modal-header, .modal-footer, .modal-body {
    font-size: 13px !important;
}

.table, .table th, .table td {
    font-size: 12px !important;
    padding: 4px 6px !important;
}

.btn, .btn-sm, .btn-lg {
    font-size: 13px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
}

/* ESTILOS MEJORADOS PARA LA CUADRÍCULA DE PRODUCTOS */
#productosGrid {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 15px !important;
}

#productosGrid .col {
    margin-bottom: 20px;
    display: flex;
}

#productosGrid .card {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

#productosGrid .card:hover {
    transform: translateY(-3px);
    border-color: #0dcaf0;
    box-shadow: 0 8px 16px rgba(13, 202, 240, 0.3);
}

#productosGrid .card-img-top {
    height: 140px !important;
    object-fit: cover;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    width: 100%;
}

#productosGrid .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 120px;
}

#productosGrid .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#productosGrid .card-text {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0dcaf0;
}

#productosGrid .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#productosGrid .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive para la cuadrícula de productos */
@media (max-width: 576px) {
    #productosGrid {
        max-height: 400px;
        padding: 10px;
    }
    
    #productosGrid .col {
        margin-bottom: 15px;
    }
    
    #productosGrid .card-img-top {
        height: 120px !important;
    }
    
    #productosGrid .card-body {
        padding: 12px;
        min-height: 100px;
    }
    
    #productosGrid .card-title {
        font-size: 0.85rem;
    }
    
    #productosGrid .card-text {
        font-size: 0.9rem;
    }
    
    #productosGrid .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    #productosGrid {
        max-height: 420px;
    }
    
    #productosGrid .card-img-top {
        height: 130px !important;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    #productosGrid {
        max-height: 420px;
    }
    
    #productosGrid .card-img-top {
        height: 130px !important;
    }
}

@media (min-width: 992px) {
    #productosGrid {
        max-height: 450px;
    }
    
    #productosGrid .card-img-top {
        height: 140px !important;
    }
}

/* Scrollbar personalizado para la cuadrícula */
#productosGrid::-webkit-scrollbar {
    width: 8px;
}

#productosGrid::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

#productosGrid::-webkit-scrollbar-thumb {
    background: #0dcaf0;
    border-radius: 4px;
}

#productosGrid::-webkit-scrollbar-thumb:hover {
    background: #31d2f2;
}

/* Animación de carga para las tarjetas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#productosGrid .col {
    animation: fadeInUp 0.5s ease forwards;
}

#productosGrid .col:nth-child(1) { animation-delay: 0.1s; }
#productosGrid .col:nth-child(2) { animation-delay: 0.2s; }
#productosGrid .col:nth-child(3) { animation-delay: 0.3s; }
#productosGrid .col:nth-child(4) { animation-delay: 0.4s; }
#productosGrid .col:nth-child(5) { animation-delay: 0.5s; }
#productosGrid .col:nth-child(6) { animation-delay: 0.6s; }

/* Estilos para cuando no hay productos */
#productosGrid:empty::before {
    content: "No hay productos disponibles en esta categoría";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 2px dashed #444;
}

/* Indicador de carga para productos */
.productos-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #0dcaf0;
}

.productos-loading::after {
    content: "";
    width: 30px;
    height: 30px;
    border: 3px solid #0dcaf0;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras para el contenedor de productos */
.productos-container {
    position: relative;
    min-height: 200px;
}

/* Tooltip para productos con nombres largos */
#productosGrid .card-title {
    position: relative;
}

#productosGrid .card-title:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}

/* Animaciones para notificaciones */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Estilos específicos para el modal de cantidad */
#modalCantidad .modal-content {
    border: 2px solid #0dcaf0;
    box-shadow: 0 0 20px rgba(13, 202, 240, 0.3);
}

#modalCantidad .btn-outline-light:hover {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
}

#modalCantidad .form-control:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
}

#modalCantidad .btn-lg {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#modalCantidad .btn-lg:hover {
    transform: scale(1.1);
}

/* Responsive para el modal de cantidad */
@media (max-width: 576px) {
    #modalCantidad .modal-dialog {
        margin: 1rem;
    }
    
    #modalCantidad .btn-lg {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    #modalCantidad #cantidadProducto {
        width: 70px;
        font-size: 1rem;
    }
}

/* Estilos para el botón de venta rápida */
.btn-warning {
    background: linear-gradient(135deg, #ffc107, #ff8c00);
    border: none;
    color: #000;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 48px;
}

/* Estilos modernos para botón de Domicilio */
.btn-domicilio-moderno {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 48px;
}

.btn-domicilio-moderno:hover {
    background: linear-gradient(135deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    color: #fff;
}

.btn-domicilio-moderno:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Efecto de rayo para botón de Domicilio */
.btn-domicilio-moderno::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-domicilio-moderno:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Estilos modernos para botón de Recoger */
.btn-recoger-moderno {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: #fff;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 12px 20px;
    font-size: 1rem;
    min-height: 48px;
}

.btn-recoger-moderno:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    color: #fff;
}

.btn-recoger-moderno:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Efecto de rayo para botón de Recoger */
.btn-recoger-moderno::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-recoger-moderno:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffca2c, #ff9500);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    color: #000;
}

.btn-warning:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Efecto de rayo para el botón de venta rápida */
.btn-warning::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.btn-warning:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Animación de pulso para el botón de venta rápida */
@keyframes ventaRapidaPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

.btn-warning {
    animation: ventaRapidaPulse 2s infinite;
}

/* Responsive para botones de acción */
@media (max-width: 768px) {
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .d-flex.gap-2 .btn {
        flex: 1;
        min-width: 120px;
        margin-bottom: 5px;
    }
    
    .btn-warning {
        animation: none; /* Desactivar animación en móviles para mejor rendimiento */
    }
}

/* Estilos específicos para el modal de venta rápida */
#modalAgregarProductosVentaRapida .modal-dialog {
    max-width: 1000px;
}

#modalAgregarProductosVentaRapida .card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

#modalAgregarProductosVentaRapida .card:hover {
    transform: translateY(-2px);
    border-color: #0dcaf0;
    box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

/* Mejoras para las tarjetas de productos en venta rápida */
#productosVentaRapida .col {
    margin-bottom: 15px;
    display: flex;
}

#productosVentaRapida .card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#productosVentaRapida .card-img-top {
    height: 140px !important;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background: #fff;
}

#productosVentaRapida .card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 120px;
}

#productosVentaRapida .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

#productosVentaRapida .card-text {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0dcaf0;
}

#productosVentaRapida small.text-muted {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6c757d !important;
    background: rgba(108, 117, 125, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 8px;
}

#productosVentaRapida .btn {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#productosVentaRapida .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive para el modal de venta rápida */
@media (max-width: 768px) {
    #modalAgregarProductosVentaRapida .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    #productosVentaRapida .row-cols-2 {
        --bs-rows-cols: 1;
    }
    
    #productosVentaRapida .card-img-top {
        height: 120px !important;
    }
    
    #productosVentaRapida .card-body {
        padding: 12px;
        min-height: 100px;
    }
    
    #productosVentaRapida .card-title {
        font-size: 0.85rem;
    }
    
    #productosVentaRapida .card-text {
        font-size: 0.9rem;
    }
    
    #productosVentaRapida .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

#modalAgregarProductosVentaRapida .btn-outline-info {
    border-color: #0dcaf0;
    color: #0dcaf0;
    transition: all 0.3s ease;
}

#modalAgregarProductosVentaRapida .btn-outline-info:hover,
#modalAgregarProductosVentaRapida .btn-outline-info.active {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #000;
    transform: translateY(-1px);
}

#listaProductosVentaRapida {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid #444 !important;
}

#listaProductosVentaRapida::-webkit-scrollbar {
    width: 6px;
}

#listaProductosVentaRapida::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

#listaProductosVentaRapida::-webkit-scrollbar-thumb {
    background: #0dcaf0;
    border-radius: 3px;
}

#listaProductosVentaRapida::-webkit-scrollbar-thumb:hover {
    background: #31d2f2;
}

/* Animación para productos agregados */
@keyframes productoAgregado {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

#listaProductosVentaRapida .d-flex {
    animation: productoAgregado 0.3s ease;
}

/* Estilos para la ayuda de venta rápida */
.ayuda-venta-rapida {
    animation: fadeInUp 0.3s ease;
}

.ayuda-venta-rapida .alert {
    border: 2px solid #0dcaf0;
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.2);
}

.ayuda-venta-rapida ul {
    padding-left: 1.2rem;
}

.ayuda-venta-rapida li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ayuda-venta-rapida strong {
    color: #0dcaf0;
}

/* Responsive para el modal de venta rápida */
@media (max-width: 768px) {
    #modalAgregarProductosVentaRapida .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    #modalAgregarProductosVentaRapida .row-cols-2 {
        --bs-rows-cols: 1;
    }
    
    #modalAgregarProductosVentaRapida .card-img-top {
        height: 60px !important;
    }
    
    #modalAgregarProductosVentaRapida .card-title {
        font-size: 0.7rem !important;
    }
    
    #modalAgregarProductosVentaRapida .card-text {
        font-size: 0.8rem !important;
    }
    
    #modalAgregarProductosVentaRapida .btn-sm {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Ajustes responsivos extra para pantallas <= 1024px */
@media (max-width: 1024px) {
    body, .container-fluid, .app-container, .card, .modal-content, .modal-header, .modal-footer, .modal-body {
        font-size: 12px !important;
    }
    .table, .table th, .table td {
        font-size: 11px !important;
        padding: 3px 4px !important;
    }
    .btn, .btn-sm, .btn-lg {
        font-size: 12px !important;
        padding: 5px 8px !important;
    }
    .form-control, .form-select {
        font-size: 12px !important;
        padding: 5px 6px !important;
    }
}

/* Restaurar tamaño de fuente para títulos de index.html */
h1.text-info {
    font-size: 2rem !important;
}
h2.mb-3.text-center {
    font-size: 1.2rem !important;
}

/* Optimizaciones específicas para monitores de 14" y pantallas pequeñas */
@media (max-width: 1366px) {
    .login-container {
        max-width: 350px !important;
        padding: 20px !important;
        margin: 10px auto !important;
    }
    
    .logo-container {
        margin-bottom: 20px !important;
    }
    
    .logo-container img {
        max-width: 100px !important;
        padding: 10px !important;
    }
    
    .welcome-message h1,
    .welcome-message h2 {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem !important;
    }
    
    .nav-buttons {
        gap: 15px !important;
        max-width: 320px !important;
    }
    
    .nav-buttons .btn {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
    
    .nav-buttons .btn-info {
        padding: 18px 35px !important;
        font-size: 18px !important;
    }
    
    .nav-buttons .btn-danger {
        padding: 10px 25px !important;
        font-size: 14px !important;
    }
    
    .container-fluid {
        padding: 15px !important;
    }
    
    footer {
        padding: 10px 0 !important;
    }
    
    footer .row {
        margin: 0 !important;
    }
    
    footer p {
        margin-bottom: 5px !important;
    }
}

/* Optimizaciones para pantallas muy pequeñas */
@media (max-width: 1024px) {
    .login-container {
        max-width: 300px !important;
        padding: 15px !important;
    }
    
    .logo-container img {
        max-width: 80px !important;
        padding: 8px !important;
    }
    
    .welcome-message h1,
    .welcome-message h2 {
        font-size: 1.3rem !important;
    }
    
    .nav-buttons {
        max-width: 280px !important;
        gap: 12px !important;
    }
    
    .nav-buttons .btn {
        padding: 12px 25px !important;
        font-size: 14px !important;
    }
    
    .nav-buttons .btn-info {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
}

/* Optimizaciones para tablets y móviles */
@media (max-width: 768px) {
    .login-container {
        max-width: 280px !important;
        padding: 12px !important;
        margin: 5px auto !important;
    }
    
    .logo-container {
        margin-bottom: 15px !important;
    }
    
    .logo-container img {
        max-width: 70px !important;
        padding: 6px !important;
    }
    
    .welcome-message h1,
    .welcome-message h2 {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .welcome-subtitle {
        font-size: 0.8rem !important;
    }
    
    .nav-buttons {
        max-width: 260px !important;
        gap: 10px !important;
    }
    
    .nav-buttons .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    .nav-buttons .btn-info {
        padding: 12px 25px !important;
        font-size: 15px !important;
    }
    
    .container-fluid {
        padding: 10px !important;
    }
    
    footer {
        padding: 2px 0 !important;
    }
    
    footer .row {
        margin: 0 !important;
    }
    
    footer p {
        margin-bottom: 1px !important;
    }
    
    footer .btn {
        font-size: 0.8rem !important;
        padding: 3px 6px !important;
    }
}

/* Estilos para la vista de todos los productos */
.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border: 2px solid #17a2b8;
    color: #0c5460;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.2);
}

/* Mejoras para las tarjetas cuando se muestran todos los productos */
#productosGrid .col .card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#productosGrid .col .card:hover {
    transform: translateY(-3px);
    border-color: #0dcaf0;
    box-shadow: 0 6px 20px rgba(13, 202, 240, 0.3);
}

/* Indicador de categoría en las tarjetas */
#productosGrid .col .card small.text-muted {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d !important;
    background: rgba(108, 117, 125, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}

/* ===== ESTILOS PARA SISTEMA DE RECORDATORIOS ===== */

/* Badge de recordatorios en el menú principal */
#badgeRecordatorios {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Estilos para las tarjetas de recordatorios */
.card.bg-secondary {
    border-left: 4px solid #0dcaf0;
    transition: all 0.3s ease;
}

.card.bg-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Recordatorios vencidos */
.card.border-danger {
    border-left-color: #dc3545 !important;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Prioridades de recordatorios */
.text-success { color: #28a745 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }
.text-info { color: #17a2b8 !important; }

/* Badges de estado */
.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Contenedor de toasts */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Estadísticas de recordatorios */
.card.bg-primary,
.card.bg-warning,
.card.bg-success,
.card.bg-info {
    transition: all 0.3s ease;
    border: none;
}

.card.bg-primary:hover,
.card.bg-warning:hover,
.card.bg-success:hover,
.card.bg-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive para recordatorios */
@media (max-width: 768px) {
    .card-header .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .card-header .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
    
    .row.text-muted .col-md-3 {
        margin-bottom: 10px;
    }
}

/* ===== ESTILOS PARA RECORDATORIOS EN POS ===== */

/* Badge de recordatorios en el botón del POS */
#badgeRecordatoriosPOS {
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

/* Modal de recordatorios en POS */
#modalRecordatorios .modal-xl {
    max-width: 95%;
}

#modalRecordatorios .card {
    border: 1px solid #495057;
}

#modalRecordatorios .card-header {
    background-color: #495057;
    border-bottom: 1px solid #6c757d;
}

#modalRecordatorios .form-control,
#modalRecordatorios .form-select {
    background-color: #343a40;
    border-color: #6c757d;
    color: #ffffff;
}

#modalRecordatorios .form-control:focus,
#modalRecordatorios .form-select:focus {
    background-color: #343a40;
    border-color: #0dcaf0;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(13, 202, 240, 0.25);
}

/* Responsive para el modal de recordatorios en POS */
@media (max-width: 1200px) {
    #modalRecordatorios .modal-xl {
        max-width: 98%;
    }
    
    #modalRecordatorios .row .col-md-3 {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    #modalRecordatorios .modal-xl {
        max-width: 100%;
        margin: 0;
    }
    
    #modalRecordatorios .card-header .d-flex {
        flex-direction: column;
        gap: 8px;
    }
    
    #modalRecordatorios .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ===== ESTILOS MODERNOS PARA INPUTS DE CÁLCULO ===== */

/* Inputs modernos con mejor visibilidad */
.input-moderno {
    border-radius: 8px;
    border: 2px solid #495057;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 12px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-moderno:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 0.25rem rgba(13, 202, 240, 0.25);
    transform: translateY(-1px);
}

/* Input de domicilio especial - más prominente */
.input-domicilio {
    border-radius: 12px;
    border: 3px solid #28a745;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    padding: 14px 18px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.input-domicilio:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 0.3rem rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #1a1a1a 0%, #343a40 100%);
}

.input-domicilio::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Labels modernos con iconos */
.form-label {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    font-size: 1.1rem;
}

/* Texto de ayuda para domicilio */
.form-text {
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== RESPONSIVE PARA PANTALLAS DE 11" Y TABLETS ===== */

/* Pantallas medianas (tablets, 11") */
@media (min-width: 768px) and (max-width: 1400px) {
    .input-moderno,
    .input-domicilio {
        font-size: 1.1rem;
        padding: 14px 18px;
    }
    
    .form-label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .form-text {
        font-size: 0.9rem;
    }
    
    /* Hacer el input de domicilio más prominente en tablets */
    .input-domicilio {
        font-size: 1.2rem;
        padding: 16px 20px;
        border-width: 4px;
    }
}

/* Pantallas grandes (desktop) */
@media (min-width: 1400px) {
    .input-moderno,
    .input-domicilio {
        font-size: 1.2rem;
        padding: 16px 20px;
    }
    
    .form-label {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .form-text {
        font-size: 0.95rem;
    }
}

/* Animación de entrada para el contenedor de domicilio */
#domicilioContainer {
    animation: slideInFromRight 0.5s ease-out;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efecto de pulso para el input de domicilio cuando está activo */
.input-domicilio:focus {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Estilos para cuando el domicilio está activo */
.domicilio-activo {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.05) 100%);
    border-radius: 12px;
    padding: 15px;
    border: 2px solid rgba(40, 167, 69, 0.3);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.domicilio-activo .form-label {
    color: #20c997 !important;
    font-weight: 700;
}

.domicilio-activo .form-text {
    color: #20c997 !important;
    font-weight: 500;
}

/* Indicador visual de que es un pedido a domicilio */
.domicilio-activo::before {
    content: "🏍️ PEDIDO A DOMICILIO";
    display: block;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}
  