/******************************************************************************************/
/* Estilos modernos para DataTable */

/* Tabla principal */
table.dataTable {
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: none;
}

.dataTables_wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dataTables_wrapper .dataTables_info{
    padding-top: 5px !important;
}

/* Contenedor de búsqueda */
.dataTables_filter {
  margin-bottom: 5px;
}

.dataTables_filter label {
  font-weight: 600;
  color: #4a5568;
  font-size: 1rem;
}

.dataTables_filter input {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
  background: #f7fafc;
  width: 190px;
}

.dataTables_filter input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: #fff;
}

/* Cabecera de la tabla */
table.dataTable thead th {
  /*background: linear-gradient(135deg, #667eea, #764ba2);*/
  /*color: white;*/
  vertical-align: middle;
  font-weight: 600;
  padding: 1.25rem 1rem;
  text-align: left;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
  position: relative;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;  
}

table.dataTable thead th:first-child {
  border-top-left-radius: 15px;
  background-color: transparent;
}

table.dataTable thead th:last-child {
  border-top-right-radius: 15px;
  background-color: transparent;
}

table.dataTable tfoot td:first-child {
  border-bottom-left-radius: 15px;
  background-color: transparent;
}

table.dataTable tfoot td:last-child {
  border-bottom-right-radius: 15px;
  background-color: transparent;
}

/* Iconos de ordenamiento */
table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
  opacity: 0.7;
  font-size: 0.8rem;
}

/* Filas del cuerpo */
table.dataTable tbody tr {
  transition: all 0.3s ease;
}

table.dataTable tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

table.dataTable tbody tr:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

table.dataTable tbody td {
  padding: 1rem;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 0.95rem;
  vertical-align: middle;
}

/* Información de paginación */
.dataTables_info {
  color: #718096;
  font-weight: 500;
  margin-top: 15px;
}

/* Controles de paginación */
.dataTables_paginate {
  margin-top: 5px;
}

.dataTables_paginate .paginate_button {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  color: #4a5568;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border-radius: 10px !important;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -webkit-border-radius: 10px !important;
  -moz-border-radius: 10px !important;
  -ms-border-radius: 10px !important;
  -o-border-radius: 10px !important;
}

.dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dataTables_paginate .paginate_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Selector de longitud */
.dataTables_length {
  margin-bottom: 5px;
}

.dataTables_length label {
  font-weight: 600;
  color: #4a5568;
}

.dataTables_length select {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem;
  margin: 0 0.5rem;
  background: #f7fafc;
  color: #4a5568;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dataTables_length select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsivo */
@media (max-width: 768px) {
  .container {
	  padding: 1rem;
	  margin: 1rem;
  }

  h1 {
	  font-size: 2rem;
	  margin-bottom: 1rem;
  }

  table.dataTable {
	  font-size: 0.85rem;
  }

  table.dataTable thead th,
  table.dataTable tbody td {
	  padding: 0.75rem 0.5rem;
  }

  .dataTables_filter input {
	  width: 100%;
	  margin-top: 0.5rem;
	  margin-left: 0;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  animation: fadeIn 0.6s ease-out;
}

/* Efectos adicionales */
.dataTables_wrapper .dataTables_processing {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Scrollbars Modernos */
.dataTables_scrollBody {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

/* Webkit Scrollbars (Chrome, Safari, Edge) */
.dataTables_scrollBody::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
    margin: 2px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #cbd5e0, #94a3b8);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.dataTables_scrollBody::-webkit-scrollbar-corner {
    background: #f1f5f9;
}

/* Scrollbar más delgado en móviles */
@media (max-width: 768px) {
    .dataTables_scrollBody::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    .dataTables_scrollBody::-webkit-scrollbar-thumb {
        border: 1px solid #f1f5f9;
    }
}

/* Scrollbar con efectos adicionales */
.dataTables_wrapper .dataTables_scroll {
    position: relative;
}

/* Sombra en el scroll horizontal */
.dataTables_scrollBody {
    position: relative;
}