/* ==========================
   EMU Instructor Manager CSS
   Basado en el CSS que me enviaste,
   adaptado a los selectores del plugin
   ========================== */

/* Contenedor base */

div#confirmDeleteUserModal.show {
  opacity: 1;
}
.empresa-logo-curso-empresa {
  position: absolute;
  top: 10px;
  left: 10px !important;
  right: auto !important;
  display: flex;
  background-color: white;
  align-content: center;
  justify-content: center;
  padding: 5px;
  border-radius: 10px;
  margin-top: 0;
}

div#confirmNotifyModal.show {
  opacity: 1;
}
.stm_lms_instructor_courses__single--price.heading_font.members_only strong {
  display: none;
}
.stm_lms_account_dropdown .dropdown .masterstudy-dropdown-menu {
  transition: none !important;
}
.masterstudy-dropdown-menu.dropdown-menu.show {
  right: 0px !important;
  position: absolute !important;
  top: 0px !important;
  left: 0px !important;
  transform: translate3d(-316px, 48px, 0px) !important;
  will-change: revert !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.dropdown-greeting.bienvenida-usuario {
  display: flex !important;
  align-items: flex-start !important;
}

.greeting-text {
  font-family: Quicksand;
  font-weight: 700;
  font-style: Bold;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 26px;
  letter-spacing: -0.2px;
  vertical-align: middle;
  color: #4d5e6f !important;
}
.masterstudy-dropdown-menu__logout a span {
  color: #4d5e6f !important;
}
.greeting-role {
  font-family: Quicksand;
  font-weight: 600;
  font-style: SemiBold !important;
  font-size: 14px !important;
  leading-trim: NONE;
  line-height: 26px !important;
  letter-spacing: -0.2px;
  vertical-align: middle;
  color: #385bce !important;
}

.dropdown-area-aprender {
  padding: 10px 15px;
  font-family: Quicksand;
  font-weight: 700;
  font-style: Bold;
  font-size: 14px;
  leading-trim: NONE;
  line-height: 18px;
  letter-spacing: -0.2px;
  vertical-align: middle;
  color: #4d5e6f;
}
.emu-wrapper {
  padding: 2rem;
  font-family: sans-serif;
  color: #001931;
  box-sizing: border-box;
}

/* Header / título */
.emu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.emu-header h2,
.titulo-alumnos-listado {
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  color: #001931;
}

.bajada-tabla-alumnos-listado {
  color: #4d5e6f;
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
  font-family: Quicksand, sans-serif;
  font-weight: 600;
}

/* Toolbar (buscador + acciones) */
.emu-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.emu-toolbar input[type="text"],
#search-alumno {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  width: 260px;
  font-family: Quicksand, sans-serif;
  font-weight: 500;
  font-size: 14px;
  box-sizing: border-box;
}

.emu-toolbar .emu-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Tabla */
.emu-table-container {
  overflow-x: auto;
}

#emu-table,
#emu-instructor-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

#emu-table thead th,
#emu-instructor-table thead th {
  background: #f0f0f5;
  text-align: left;
  padding: 0.75rem;
  border-bottom: none;
  color: #4d5e6f !important;
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 26px;
}

#emu-table tbody td,
#emu-instructor-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid #cecfd1;
  vertical-align: middle;
  color: #243348;
  font-size: 14px;
}

#emu-table tbody tr:hover,
#emu-instructor-table tbody tr:hover {
  background: #f9f9f9;
}

/* Thead padding custom */
#emu-table thead {
  padding: 17px 20px 22px 26px;
}

/* Ajustes de padding por columna en thead */
#emu-table thead tr th:first-child,
#emu-instructor-table thead tr th:first-child {
  padding: 17px 20px 22px 26px !important;
  border-radius: 8px 0 0 0;
}
#emu-table thead tr th:not(:first-child):not(:last-child),
#emu-instructor-table thead tr th:not(:first-child):not(:last-child) {
  padding: 17px 0 22px 0 !important;
}
#emu-table thead tr th:last-child,
#emu-instructor-table thead tr th:last-child {
  padding: 17px 0 22px 0 !important;
  border-radius: 0 8px 0 0;
}

/* Botones */
button.emu-btn,
button.emu-btn:active,
input[type="submit"].emu-btn {
  padding: 0.5rem 1rem;
  border: none;
  background-color: #1e40af;
  color: #fff;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: Quicksand, sans-serif;
  font-weight: 700;
}

button.emu-btn:hover {
  background-color: #1e3a8a;
}

/* Botón estilo principal usado en toolbar */
.boton-menu-cargar-archivos,
.btn.btn-s.boton-menu-cargar-archivos {
  background-color: #385bce;
  color: #fff;
  padding: 11px 19px;
  border-radius: 45px;
  border: none;
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  z-index: 2;
}

/* Estilo del botón eliminar (outline) */
.boton-eliminar-usuario {
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #385bce;
  padding: 11px 20px;
  border: 1px solid #385bce;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
}
.boton-eliminar-usuario:hover {
  background-color: #f5f7ff;
}

/* Dropdowns */
.emu-dropdown {
  position: relative;
  display: inline-block;
}
.emu-dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  z-index: 1;
}
.emu-dropdown:hover .emu-dropdown-content {
  display: block;
}
.dropdown-menu {
  width: 100% !important;
  padding-top: 20px;
  margin-top: -10px;
  z-index: 1;
  background-color: #eff6ff;
  padding: 20px 13px 6px 17px;
}
.link-dropdown {
  padding-bottom: 10px;
  font-family: Quicksand, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #4d5e6f;
}

/* Pagination DataTables (estética similar) */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 10px;
  text-align: right;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none;
  background: transparent;
  padding: 0 8px;
  margin: 0 2px;
  color: #333;
  font-weight: 500;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
a.paginate_button.current {
  background-color: #eff6ff !important;
  border-radius: 50%;
  color: #1e70bf;
  padding: 8px 12px;
}

/* File input tweaks */
.custom-file-input {
  height: calc(1.5em + 0.75rem + 2px);
}
.custom-file-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Import form alignment */
div#emu-import-form {
  text-align: right;
}

/* Padding especial para la variante contenedor-alumno-lista-carga */
.emu-container.contenedor-alumno-lista-carga {
  padding: 0 !important;
}

/* ==========================
   Modals & Progress
   ========================== */
#emuCreateInstructorModal .modal-content,
#confirmDeleteUserModal .modal-content {
  border-radius: 8px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#emuCreateInstructorModal .modal-header,
#confirmDeleteUserModal .modal-header {
  border-bottom: none;
  padding: 18px 20px;
}

#emuCreateInstructorModal .modal-body,
#confirmDeleteUserModal .modal-body {
  padding: 18px 20px;
}

#emuCreateInstructorModal .form-control,
#confirmDeleteUserModal .form-control {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 10px;
}

/* Progress modal inline style adjustment (cuando se muestra con show class) */
#emuProgressModal {
  display: none;
}
#emuProgressModal.show {
  display: flex !important;
}

/* ==========================
   Notificaciones
   ========================== */
.notifications-container {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.22s ease;
}

.notification.show {
  opacity: 1;
  transform: none;
}
.notification.success {
  border-left: 4px solid #28a745;
}
.notification.error {
  border-left: 4px solid #dc3545;
}
.notification .notification-message {
  font-size: 14px;
  color: #243348;
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 768px) {
  .emu-header {
    gap: 8px;
  }
  .emu-toolbar input[type="text"],
  #search-alumno {
    width: 100%;
    max-width: 100%;
  }
  .boton-menu-cargar-archivos {
    padding: 9px 14px;
  }
}

@media (max-width: 480px) {
  .titulo-alumnos-listado {
    font-size: 24px;
    line-height: 32px;
  }
  .bajada-tabla-alumnos-listado {
    font-size: 13px;
  }
  #emu-table thead th,
  #emu-instructor-table thead th {
    font-size: 13px;
  }
  .boton-eliminar-usuario {
    padding: 8px 12px;
    font-size: 13px;
  }
}
