html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Estilos personalizados para DataTables */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.375rem;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    color: white !important;
}

/* Estilos para badges de stock */
.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

/* Mejoras en botones de acción */
.btn-group .btn {
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Responsive para tablas */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        text-align: left;
        margin-bottom: 10px;
    }
    
    .btn-group {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 2px;
        margin-right: 0;
    }
}

/* Estilos para botones de exportación */
.dt-buttons {
    margin-bottom: 10px;
}

.dt-buttons .btn {
    margin-right: 5px;
    font-size: 0.875rem;
}

.dt-buttons .btn i {
    margin-right: 5px;
}

/* Mejorar la apariencia de los botones de exportación */
.dt-button-collection {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dt-button-collection .dt-button {
    background: white;
    border: none;
    color: #212529;
    padding: 0.5rem 1rem;
    text-align: left;
    width: 100%;
}

.dt-button-collection .dt-button:hover {
    background: #f8f9fa;
    color: #0d6efd;
}

/* Responsive para botones de exportación */
@media (max-width: 768px) {
    .dt-buttons {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .dt-buttons .btn {
        margin-bottom: 5px;
        width: 100%;
        max-width: 200px;
    }
}

/* Estilos para el modal de confirmación */
.modal-header.bg-danger {
    background-color: #dc3545 !important;
}

.modal-header .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body .alert {
    margin-bottom: 0;
}

.modal-body .alert i {
    margin-right: 8px;
}

/* Animación para alertas */
.alert {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mejorar la apariencia de los botones en el modal */
.modal-footer .btn {
    min-width: 100px;
}

.modal-footer .btn i {
    margin-right: 5px;
}