/* 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;
}

.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;
}

.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);
}

.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;
}

.form-control, .form-select {
    font-size: 13px !important;
    padding: 6px 8px !important;
    margin-bottom: 8px !important;
}

.card, .modal-content {
    padding: 10px !important;
    border-radius: 8px !important;
}

.card-header, .card-body, .modal-header, .modal-footer, .modal-body {
    padding: 8px 12px !important;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 1em !important;
    margin-bottom: 8px !important;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* 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;
    }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.input-group.input-group-sm {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.input-group.input-group-sm button,
.input-group.input-group-sm input[type='number'] {
  margin: 0;
  border-radius: 4px !important;
  height: 32px;
  padding: 0 8px;
  text-align: center;
}
  