/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Importar componentes personalizados */
@import "components/level_tabs_swiper.css";

/* Los estilos de Trix ahora se incluyen a través de CDN */

/* Estilos adicionales para Action Text */
.trix-button--icon {
  color: #4b5563;
}

.trix-button.trix-active {
  background-color: #a78bfa !important; /* purple-400 */
  color: white !important;
}

.trix-button:hover {
  background-color: #f3f4f6;
}

/* Estilos de trix para que combinen con el tema de Tailwind */
trix-toolbar .trix-button-group {
  border-color: #e5e7eb !important;
  margin-bottom: 0.25rem;
}

trix-toolbar .trix-button {
  border: none !important;
}

trix-editor {
  min-height: 12rem;
  border-radius: 0.375rem;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
}

trix-editor:focus {
  outline: none;
  border-color: #a78bfa; /* purple-400 */
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.3);
}

/* Estilos para el contenedor de instrucciones */
.exercise-instructions-content {
  max-height: 40dvh;
  overflow: auto;
  padding-right: 0.5rem;
}

/* Estilo para la barra de desplazamiento */
.exercise-instructions-content::-webkit-scrollbar {
  width: 6px;
}

.exercise-instructions-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.exercise-instructions-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.exercise-instructions-content::-webkit-scrollbar-thumb:hover {
  background: #a78bfa;
}

