/* 
=================================
🎨 PALETA PROFESIONAL TEKIO
=================================
Azul Tech: #007BFF - Botones principales
Verde éxito: #28C76F - Estados exitosos  
Rojo alerta: #EA5455 - Eliminar/errores
Naranja atención: #FF9F43 - Pendiente/advertencias
Gris oscuro: #2E2E2E - Navbar/sidebar
Gris claro: #F5F7FA - Fondo general
Texto claro: #FFFFFF
Íconos secundarios: #6C757D
=================================
*/

/* ===== BOTONES PRINCIPALES ===== */
.btn-primary, 
.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: #007BFF !important;
    border-color: #007BFF !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* ===== BOTONES DE ÉXITO/ACEPTAR ===== */
.btn-success, 
.btn-success:hover, 
.btn-success:focus, 
.btn-success:active,
.label.bg-green,
.badge.bg-green {
    background-color: #28C76F !important;
    border-color: #28C76F !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.btn-success:hover {
    background-color: #1e9f5a !important;
    border-color: #1e9f5a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 199, 111, 0.3) !important;
}

/* ===== BOTONES DE ELIMINAR/PELIGRO ===== */
.btn-danger, 
.btn-danger:hover, 
.btn-danger:focus, 
.btn-danger:active,
.label.bg-red,
.badge.bg-red {
    background-color: #EA5455 !important;
    border-color: #EA5455 !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.btn-danger:hover {
    background-color: #d63031 !important;
    border-color: #d63031 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(234, 84, 85, 0.3) !important;
}

/* ===== BOTONES DE ADVERTENCIA ===== */
.btn-warning, 
.btn-warning:hover, 
.btn-warning:focus, 
.btn-warning:active,
.label.bg-yellow,
.badge.bg-yellow {
    background-color: #FF9F43 !important;
    border-color: #FF9F43 !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.btn-warning:hover {
    background-color: #e8890b !important;
    border-color: #e8890b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 159, 67, 0.3) !important;
}

/* ===== ESTADOS Y LABELS ===== */
.label, 
.badge {
    border-radius: 12px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.label.bg-green, 
span.label.bg-green {
    background-color: #28C76F !important;
    color: #FFFFFF !important;
}

.label.bg-red, 
span.label.bg-red {
    background-color: #EA5455 !important;
    color: #FFFFFF !important;
}

.label.bg-yellow, 
span.label.bg-yellow {
    background-color: #FF9F43 !important;
    color: #FFFFFF !important;
}

/* ===== BOTONES GENERALES 2025 ===== */
.btn {
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    text-transform: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s ease !important;
}

.btn:hover:before {
    left: 100% !important;
}

.btn-default {
    background-color: #6C757D !important;
    border-color: #6C757D !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
}

.btn-default:hover {
    background-color: #545b62 !important;
    border-color: #545b62 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
}

.btn-info {
    background-color: #007BFF !important;
    border-color: #007BFF !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
}

.btn-info:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* ===== NAVBAR Y HEADER ===== */
.main-header .navbar,
.main-header .logo,
.skin-blue .main-header .navbar {
    background-color: #2E2E2E !important;
    border-bottom: 1px solid #1a1a1a !important;
}

.main-header .logo:hover,
.skin-blue .main-header .logo:hover {
    background-color: #1a1a1a !important;
}

.main-header .navbar .nav > li > a,
.skin-blue .main-header .navbar .nav > li > a {
    color: #FFFFFF !important;
}

.main-header .navbar .nav > li > a:hover,
.skin-blue .main-header .navbar .nav > li > a:hover {
    background-color: #1a1a1a !important;
    color: #007BFF !important;
}

/* ===== SIDEBAR ===== */
.main-sidebar,
.skin-blue .main-sidebar {
    background-color: #2E2E2E !important;
    border-right: 1px solid #1a1a1a !important;
}

.skin-blue .sidebar-menu > li > a {
    color: #CCCCCC !important;
    border-left: 3px solid transparent !important;
}

.skin-blue .sidebar-menu > li:hover > a,
.skin-blue .sidebar-menu > li.active > a {
    color: #FFFFFF !important;
    background-color: #1a1a1a !important;
    border-left: 3px solid #007BFF !important;
}

.skin-blue .sidebar-menu > li.menu-open > a,
.skin-blue .sidebar-menu > li.active > a {
    background-color: #007BFF !important;
    color: #FFFFFF !important;
}

/* ===== CONTENT WRAPPER ===== */
.content-wrapper {
    background-color: #F5F7FA !important;
}

/* ===== BOX/PANELES ===== */
.box {
    background-color: #FFFFFF !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.box-header {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #e3e6f0 !important;
    border-radius: 8px 8px 0 0 !important;
}

.box-header.with-border {
    border-bottom: 1px solid #e3e6f0 !important;
}

.box-title {
    color: #2E2E2E !important;
    font-weight: 600 !important;
}

/* ===== DATATABLES ===== */
.table thead th {
    background-color: #F5F7FA !important;
    color: #2E2E2E !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #e3e6f0 !important;
}

.table tbody tr:hover {
    background-color: #f8f9fc !important;
}

/* ===== FORMULARIOS ===== */
.form-control {
    border-radius: 8px !important;
    border: 1px solid #e3e6f0 !important;
    transition: all 0.3s ease !important;
    padding: 10px 12px !important;
}

.form-control:focus {
    border-color: #007BFF !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

.form-control:hover {
    border-color: #007BFF !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
}

.input-group-addon {
    border-radius: 0 8px 8px 0 !important;
    background-color: #F5F7FA !important;
    border-color: #e3e6f0 !important;
}

.input-group .form-control:first-child {
    border-radius: 8px 0 0 8px !important;
}

.input-group .form-control:last-child {
    border-radius: 0 8px 8px 0 !important;
}

/* ===== ELEMENTOS SELECT BÁSICOS (para selects normales sin Select2) ===== */
select.form-control:not(.select2-hidden-accessible) {
    background-color: #FFFFFF !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 4px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    height: auto !important;
    min-height: 42px !important;
    margin-bottom: 8px !important;
}

select.form-control:not(.select2-hidden-accessible):focus {
    border-color: #007BFF !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
    outline: none !important;
    background-color: #FFFFFF !important;
}

select.form-control:not(.select2-hidden-accessible):hover {
    border-color: #007BFF !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
}

/* ===== Z-INDEX CORRECTO PARA SELECT2 ===== */
/* Select2 debe estar por debajo de modales de Bootstrap */
.select2-container {
    z-index: 1040 !important; /* Menor que modales (1050) */
}

.select2-dropdown {
    z-index: 1040 !important; /* Menor que modales (1050) */
}

/* Dentro de modales, Select2 debe tener z-index alto */
.modal .select2-container {
    z-index: 1060 !important; /* Mayor que el modal */
}

.modal .select2-dropdown {
    z-index: 1060 !important; /* Mayor que el modal */
}

/* Select2 dentro de modales - caso específico */
.modal-body .select2-container {
    z-index: 1060 !important;
}

.modal-body .select2-dropdown {
    z-index: 1060 !important;
}

/* ===== MODALES DE BOOTSTRAP ===== */
/* Asegurar que los modales tengan z-index correcto */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

/* Modal específico de artículos */
#myModal {
    z-index: 1050 !important;
}

#myModal .modal-dialog {
    z-index: 1055 !important;
}

/* Cuando el modal está abierto */
.modal.show {
    z-index: 1050 !important;
}

/* Select2 fuera de modales debe estar por debajo */
body:not(.modal-open) .select2-dropdown {
    z-index: 1040 !important;
}

/* Pero cuando hay modal abierto, Select2 debe estar por debajo del modal */
body.modal-open .select2-container:not(.modal .select2-container) {
    z-index: 1030 !important;
}

body.modal-open .select2-dropdown:not(.modal .select2-dropdown) {
    z-index: 1030 !important;
}

/* ===== MODAL DE ARTÍCULOS MEJORADO ===== */
#myModal .modal-dialog {
    margin: 30px auto !important;
}

#myModal .modal-content {
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

#myModal .modal-header {
    background-color: #007BFF !important;
    color: #FFFFFF !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px !important;
}

#myModal .modal-header .close {
    color: #FFFFFF !important;
    opacity: 0.8 !important;
    font-size: 24px !important;
}

#myModal .modal-header .close:hover {
    opacity: 1 !important;
}

#myModal .modal-body {
    padding: 20px !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}

#myModal .modal-footer {
    padding: 15px 20px !important;
    border-top: 1px solid #e3e6f0 !important;
    background-color: #F8F9FA !important;
    border-radius: 0 0 8px 8px !important;
}

/* Responsive para modal */
@media (max-width: 768px) {
    #myModal .modal-dialog {
        width: 95% !important;
        margin: 10px auto !important;
    }
    
    #myModal .modal-content {
        max-height: 95vh !important;
    }
    
    #myModal .modal-body {
        max-height: 75vh !important;
    }
}



/* ===== DISTRIBUCIÓN MEJORADA DE FORMULARIOS ===== */
.form-group {
    margin-bottom: 20px !important;
}

.form-group label {
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #495057 !important;
    display: block !important;
}



/* Mejora del espaciado entre elementos */
.row .form-group {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* ===== SELECT2 ESTILO PROFESIONAL TEKIO ===== */
.select2-container {
    width: 100% !important;
    margin-bottom: 8px !important;
}

.select2-selection--single {
    background-color: #FFFFFF !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 4px !important;
    height: 42px !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    display: flex !important;
    align-items: center !important;
}

.select2-selection--single:hover {
    border-color: #007BFF !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #007BFF !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
    outline: none !important;
}

.select2-selection__rendered {
    color: #495057 !important;
    line-height: 20px !important;
    padding: 0 !important;
}

.select2-selection__placeholder {
    color: #adb5bd !important;
}

.select2-selection__arrow {
    height: 40px !important;
    right: 10px !important;
}

.select2-selection__arrow b {
    border-color: #6C7B7F transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
}

/* Dropdown de Select2 */
.select2-dropdown {
    background-color: #FFFFFF !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    margin-top: 2px !important;
}

.select2-results__option {
    color: #495057 !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
}

.select2-results__option:hover,
.select2-results__option--highlighted {
    background-color: #007BFF !important;
    color: #FFFFFF !important;
}

.select2-results__option--selected {
    background-color: #F8F9FA !important;
    color: #007BFF !important;
    font-weight: 500 !important;
}

/* Search box en Select2 */
.select2-search--dropdown {
    padding: 6px 8px !important;
}

.select2-search__field {
    background-color: #F8F9FA !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 3px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #495057 !important;
    width: 100% !important;
}

.select2-search__field:focus {
    border-color: #007BFF !important;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.15) !important;
    outline: none !important;
}

/* Select2 múltiple */
.select2-selection--multiple {
    background-color: #FFFFFF !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 4px !important;
    min-height: 42px !important;
    padding: 5px 10px !important;
    font-size: 14px !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.select2-selection--multiple:hover {
    border-color: #007BFF !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
}

.select2-selection__choice {
    background-color: #007BFF !important;
    border: 1px solid #007BFF !important;
    border-radius: 3px !important;
    color: #FFFFFF !important;
    font-size: 12px !important;
    padding: 2px 8px !important;
    margin: 2px !important;
}

.select2-selection__choice__remove {
    color: #FFFFFF !important;
    font-weight: bold !important;
    margin-right: 5px !important;
}

.select2-selection__choice__remove:hover {
    color: #F8F9FA !important;
}

/* ===== ALERTAS ===== */
.alert-success {
    background-color: #d4edda !important;
    border-color: #28C76F !important;
    color: #155724 !important;
}

.alert-danger {
    background-color: #f8d7da !important;
    border-color: #EA5455 !important;
    color: #721c24 !important;
}

.alert-warning {
    background-color: #fff3cd !important;
    border-color: #FF9F43 !important;
    color: #856404 !important;
}

.alert-info {
    background-color: #d1ecf1 !important;
    border-color: #007BFF !important;
    color: #0c5460 !important;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    background-color: #FFFFFF !important;
    border-radius: 8px !important;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.breadcrumb > li + li:before {
    color: #6C757D !important;
}

/* ===== ÍCONOS SECUNDARIOS ===== */
.fa.text-muted,
.text-muted {
    color: #6C757D !important;
}

/* ===== ENLACES ===== */
a {
    color: #007BFF !important;
}

a:hover {
    color: #0056b3 !important;
}

/* ===== PAGINACIÓN ===== */
.pagination > li > a,
.pagination > li > span {
    color: #007BFF !important;
    border-color: #e3e6f0 !important;
    border-radius: 8px !important;
    margin: 0 2px !important;
    transition: all 0.3s ease !important;
}

.pagination > li > a:hover,
.pagination > li > span:hover {
    background-color: #F5F7FA !important;
    border-color: #007BFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2) !important;
}

.pagination > .active > a,
.pagination > .active > span {
    background-color: #007BFF !important;
    border-color: #007BFF !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span {
    border-radius: 8px !important;
}

.pagination > li:last-child > a,
.pagination > li:last-child > span {
    border-radius: 8px !important;
}

/* ===== RESPONSIVE MEJORAS ===== */
@media (max-width: 768px) {
    .box {
        margin-bottom: 15px !important;
    }
    
    .btn {
        margin-bottom: 5px !important;
    }
}

/* ===== BOTONES PEQUEÑOS ===== */
.btn-xs.btn-primary {
    background-color: #007BFF !important;
    border-color: #007BFF !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-xs.btn-primary:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3) !important;
}

.btn-xs.btn-danger {
    background-color: #EA5455 !important;
    border-color: #EA5455 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-xs.btn-danger:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(234, 84, 85, 0.3) !important;
}

.btn-xs.btn-warning {
    background-color: #FF9F43 !important;
    border-color: #FF9F43 !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-xs.btn-warning:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(255, 159, 67, 0.3) !important;
}

.btn-xs.btn-success {
    background-color: #28C76F !important;
    border-color: #28C76F !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.btn-xs.btn-success:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 8px rgba(40, 199, 111, 0.3) !important;
}

/* ===== MEJORAS VISUALES ADICIONALES ===== */
.content-header h1 {
    color: #2E2E2E !important;
    font-weight: 600 !important;
}

.small-box {
    border-radius: 8px !important;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

/* ===== DROPDOWN MENUS ===== */
.dropdown-menu {
    border: 1px solid #e3e6f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.dropdown-menu > li > a:hover {
    background-color: #F5F7FA !important;
    color: #007BFF !important;
}

/* ===== MEJORAS ESPECÍFICAS PARA EL SISTEMA ===== */
/* Footer personalizado */
.main-footer {
    background-color: #2E2E2E !important;
    color: #CCCCCC !important;
    border-top: 1px solid #1a1a1a !important;
}

.main-footer a {
    color: #007BFF !important;
}

.main-footer a:hover {
    color: #0056b3 !important;
}

/* Small boxes del dashboard */
.small-box.bg-aqua {
    background-color: #007BFF !important;
}

.small-box.bg-green {
    background-color: #28C76F !important;
}

.small-box.bg-yellow {
    background-color: #FF9F43 !important;
}

.small-box.bg-red {
    background-color: #EA5455 !important;
}

/* ===== FOOTER DE SMALL-BOX ===== */
.small-box > .small-box-footer,
.small-box .small-box-footer,
a.small-box-footer {
    color: #FFFFFF !important;
    opacity: 1 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border-radius: 0 0 12px 12px !important;
}

.small-box > .small-box-footer:hover,
.small-box .small-box-footer:hover,
a.small-box-footer:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.small-box > .small-box-footer:active,
.small-box .small-box-footer:active,
a.small-box-footer:active {
    transform: translateY(0) !important;
}

/* Icono dentro del footer */
.small-box-footer .fa {
    color: #FFFFFF !important;
    margin-left: 5px !important;
}

/* ===== BOTONES DE DATATABLES PROFESIONALES ===== */
.dt-buttons .btn,
.dt-button,
button.dt-button,
a.dt-button,
div.dt-button {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
    border: 1px solid #007BFF !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    margin: 2px 4px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.25) !important;
    text-shadow: none !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
}

/* Efecto brillante en botones DT */
.dt-buttons .btn::before,
.dt-button::before,
button.dt-button::before,
a.dt-button::before,
div.dt-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.5s !important;
}

.dt-buttons .btn:hover,
.dt-button:hover,
button.dt-button:hover,
a.dt-button:hover,
div.dt-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%) !important;
    border-color: #0056b3 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4) !important;
}

.dt-buttons .btn:hover::before,
.dt-button:hover::before,
button.dt-button:hover::before,
a.dt-button:hover::before,
div.dt-button:hover::before {
    left: 100% !important;
}

.dt-buttons .btn:active,
.dt-button:active,
button.dt-button:active,
a.dt-button:active,
div.dt-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3) !important;
}

/* Botones específicos de DataTables */
.dt-button.buttons-copy,
.dt-button.buttons-csv,
.dt-button.buttons-excel,
.dt-button.buttons-pdf,
.dt-button.buttons-print,
.dt-button.buttons-colvis {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
}

.dt-button.buttons-copy:hover { 
    background: linear-gradient(135deg, #28C76F 0%, #1e9754 100%) !important; 
    border-color: #28C76F !important;
}

.dt-button.buttons-excel:hover { 
    background: linear-gradient(135deg, #28C76F 0%, #1e9754 100%) !important; 
    border-color: #28C76F !important;
}

.dt-button.buttons-csv:hover { 
    background: linear-gradient(135deg, #FF9F43 0%, #e6842e 100%) !important; 
    border-color: #FF9F43 !important;
}

.dt-button.buttons-pdf:hover { 
    background: linear-gradient(135deg, #EA5455 0%, #d63031 100%) !important; 
    border-color: #EA5455 !important;
}

.dt-button.buttons-print:hover { 
    background: linear-gradient(135deg, #6C7B7F 0%, #5a6872 100%) !important; 
    border-color: #6C7B7F !important;
}

.dt-button.buttons-colvis:hover { 
    background: linear-gradient(135deg, #7C4DFF 0%, #6b3ce6 100%) !important; 
    border-color: #7C4DFF !important;
}

/* Contenedor de botones DT */
.dt-buttons {
    margin-bottom: 15px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
}

/* Responsive para botones DT */
@media (max-width: 768px) {
    .dt-buttons .btn,
    .dt-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
        margin: 1px 2px !important;
    }
}

/* ===== INPUTS DE BÚSQUEDA DATATABLES ===== */
/* Aplicar estilos form-control a los inputs de búsqueda de DataTables */
div.dataTables_filter input[type="search"],
.dataTables_filter input[type="search"],
input[type="search"][aria-controls*="tbl"],
label input[type="search"] {
    background-color: #FFFFFF !important;
    border: 1px solid #e3e6f0 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    width: 250px !important;
    margin-left: 8px !important;
}

div.dataTables_filter input[type="search"]:focus,
.dataTables_filter input[type="search"]:focus,
input[type="search"][aria-controls*="tbl"]:focus,
label input[type="search"]:focus {
    border-color: #007BFF !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
}

div.dataTables_filter input[type="search"]:hover,
.dataTables_filter input[type="search"]:hover,
input[type="search"][aria-controls*="tbl"]:hover,
label input[type="search"]:hover {
    border-color: #007BFF !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1) !important;
}

/* Estilo del contenedor de búsqueda */
div.dataTables_filter,
.dataTables_filter {
    margin-bottom: 15px !important;
}

div.dataTables_filter label,
.dataTables_filter label {
    font-weight: 500 !important;
    color: #495057 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

/* Placeholder styling */
div.dataTables_filter input[type="search"]::placeholder,
.dataTables_filter input[type="search"]::placeholder,
input[type="search"][aria-controls*="tbl"]::placeholder,
label input[type="search"]::placeholder {
    color: #adb5bd !important;
    font-style: italic !important;
}

/* ===== PÁGINA DE LOGIN PROFESIONAL ===== */
.login-page {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.login-box {
    width: 400px !important;
    margin: 0 auto !important;
}

.login-logo a {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
}

.login-logo a:hover {
    color: #F8F9FA !important;
    transform: scale(1.05) !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4) !important;
}

.login-box-body {
    background: #FFFFFF !important;
    padding: 30px !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border: none !important;
    backdrop-filter: blur(10px) !important;
    position: relative !important;
    overflow: hidden !important;
}

.login-box-body::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #007BFF, #28C76F, #FF9F43, #EA5455) !important;
}

.login-box-msg {
    margin: 0 0 25px 0 !important;
    text-align: center !important;
    font-size: 16px !important;
    color: #495057 !important;
    font-weight: 500 !important;
}

/* Inputs del login */
.login-box-body .form-control {
    background-color: #F8F9FA !important;
    border: 2px solid #e3e6f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px 12px 45px !important;
    font-size: 15px !important;
    color: #495057 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    height: auto !important;
}

.login-box-body .form-control:focus {
    border-color: #007BFF !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

.login-box-body .form-control:hover {
    border-color: #007BFF !important;
    background-color: #FFFFFF !important;
}

/* Iconos de feedback */
.login-box-body .form-control-feedback {
    color: #6C7B7F !important;
    font-size: 16px !important;
    z-index: 2 !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    pointer-events: none !important;
}

.login-box-body .has-feedback .form-control:focus + .form-control-feedback {
    color: #007BFF !important;
    transform: translateY(-50%) scale(1.1) !important;
}



/* Botón de login con estilo dt-button idéntico */
.login-box-body .dt-button.buttons-login {
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive para login */
@media (max-width: 768px) {
    .login-box {
        width: 90% !important;
        margin: 20px auto !important;
    }
    
    .login-box-body {
        padding: 25px 20px !important;
        border-radius: 12px !important;
    }
    
    .login-logo a {
        font-size: 36px !important;
    }
    
    .login-box-body .dt-button.buttons-login {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Progress bars */
.progress-bar {
    background-color: #007BFF !important;
}

.progress-bar-success {
    background-color: #28C76F !important;
}

.progress-bar-warning {
    background-color: #FF9F43 !important;
}

.progress-bar-danger {
    background-color: #EA5455 !important;
}

/* Modal dialogs */
.modal-header {
    background-color: #007BFF !important;
    color: #FFFFFF !important;
    border-bottom: 1px solid #e3e6f0 !important;
}

.modal-content {
    border-radius: 8px !important;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

/* Tabs */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    background-color: #007BFF !important;
    color: #FFFFFF !important;
    border-color: #007BFF !important;
}

.nav-tabs > li > a:hover {
    border-color: #007BFF #007BFF #007BFF !important;
    color: #007BFF !important;
}

/* Checkbox y radio personalizado */
.checkbox-primary input[type="checkbox"]:checked + label::before {
    background-color: #007BFF !important;
    border-color: #007BFF !important;
}

.radio-primary input[type="radio"]:checked + label::before {
    background-color: #007BFF !important;
    border-color: #007BFF !important;
}

/* Loading y spinners */
.fa-spin {
    color: #007BFF !important;
}

/* Tooltips */
.tooltip-inner {
    background-color: #2E2E2E !important;
}

.tooltip.top .tooltip-arrow {
    border-top-color: #2E2E2E !important;
}

.tooltip.bottom .tooltip-arrow {
    border-bottom-color: #2E2E2E !important;
}

/* Select2 personalizado */
.select2-container--default .select2-selection--single {
    border-color: #e3e6f0 !important;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #007BFF !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007BFF !important;
}

/* Mejoras para mobile */
@media (max-width: 767px) {
    .main-header .logo {
        background-color: #2E2E2E !important;
    }
    
    .sidebar-menu > li > a {
        padding: 12px 15px !important;
    }
    
    .btn {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .btn:last-child {
        margin-bottom: 0 !important;
    }
}

/* ===== MEJORAS 2025: LOOK MODERNO ===== */

/* Efectos adicionales para botones flotantes */
.btn-float {
    border-radius: 50% !important;
    width: 56px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
}

.btn-float:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Animaciones suaves para todos los elementos interactivos */
* {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Mejoras en dropdowns */
.dropdown-menu {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 0 !important;
}

.dropdown-menu > li > a {
    padding: 8px 20px !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    margin: 2px 8px !important;
}

.dropdown-menu > li > a:hover {
    background-color: #F5F7FA !important;
    color: #007BFF !important;
    transform: translateX(4px) !important;
}

/* Cards y paneles con esquinas redondeadas */
.panel,
.card {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
}

.panel-heading,
.card-header {
    border-radius: 12px 12px 0 0 !important;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
}

/* Tooltips modernos */
.tooltip {
    font-size: 12px !important;
}

.tooltip-inner {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Scrollbars personalizados (webkit) */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track {
    background: #F5F7FA !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
    background: #007BFF !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3 !important;
}

/* Animación de carga moderna */
@keyframes pulse2025 {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

.loading-2025 {
    animation: pulse2025 2s infinite !important;
}

/* ===== BOTONES DE PAGINACION DATATABLES TEKIO ===== */
.paginate_button,
.paginate_button a {
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%) !important;
    border: 1px solid #007BFF !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin: 0 2px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-width: 32px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Efecto brillante para botones de paginación */
.paginate_button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: all 0.6s ease !important;
}

.paginate_button:hover::before {
    left: 100% !important;
}

/* Botón activo/actual */
.paginate_button.current,
.paginate_button.current a {
    background: linear-gradient(135deg, #28C76F 0%, #1e9f5a 100%) !important;
    border-color: #28C76F !important;
    color: #FFFFFF !important;
    font-weight: 600 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(40, 199, 111, 0.4) !important;
}

/* Hover en botones normales */
.paginate_button:hover:not(.current):not(.disabled),
.paginate_button:hover:not(.current):not(.disabled) a {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%) !important;
    border-color: #0056b3 !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

/* Botones deshabilitados */
.paginate_button.disabled,
.paginate_button.disabled a {
    background: #E9ECEF !important;
    border-color: #DEE2E6 !important;
    color: #6C757D !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.paginate_button.disabled:hover,
.paginate_button.disabled:hover a {
    background: #E9ECEF !important;
    border-color: #DEE2E6 !important;
    color: #6C757D !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Botones Previous y Next con iconos mejorados */
.paginate_button.previous,
.paginate_button.next,
.paginate_button.previous a,
.paginate_button.next a {
    font-weight: 600 !important;
    padding: 8px 16px !important;
    color: #FFFFFF !important;
}

/* Contenedor de paginación */
.dataTables_paginate {
    margin-top: 15px !important;
    text-align: center !important;
}

.dataTables_paginate .pagination {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* Información de paginación profesional */
.dataTables_info {
    color: #6C757D !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 10px !important;
}

/* Asegurar texto blanco en todos los elementos de los botones (excepto deshabilitados) */
.paginate_button:not(.disabled) *,
.paginate_button:not(.disabled) span,
.paginate_button:not(.disabled):before,
.paginate_button:not(.disabled):after {
    color: #FFFFFF !important;
}

/* Asegurar texto gris en botones deshabilitados */
.paginate_button.disabled *,
.paginate_button.disabled span,
.paginate_button.disabled:before,
.paginate_button.disabled:after {
    color: #6C757D !important;
}

/* ===== FIN MEJORAS 2025 ===== */ 