/* Badges de cursos */
.course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  background-color: #e0e7ff;
  color: #2563eb;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.badge-remove {
  background: none;
  border: none;
  color: #2563eb;
  margin-left: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.25rem;
}

.badge-remove:hover {
  color: #1e40af;
}

/* Loader pequeño */
.loader-sm {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  border-top-color: #2563eb;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Modal de asignación */
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-family: "Inter", sans-serif;
}

/* Header acciones */
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 768px) {
  .header-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .search-box {
    width: 100%;
  }
}
