/**
 * Styles pour le journal de bord réflexif
 */

.tls-journal-dashboard {
  width: 100%;
  padding: 0;
}

/* En-tête */
.tls-journal-header {
  margin-bottom: 40px;
}

.tls-journal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.tls-journal-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  max-width: 800px;
}

/* Actions */
.tls-journal-actions {
  margin-bottom: 40px;
}


.tls-journal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.tls-journal-btn-primary {
  background: #2563eb;
  color: white;
}

.tls-journal-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.tls-journal-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.tls-journal-btn-secondary:hover {
  background: #e5e7eb;
}

.tls-journal-btn-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* Entrées vides */
.tls-journal-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.tls-journal-empty p {
  margin: 8px 0;
  font-size: 1.1rem;
}

/* Flux des entrées */
.tls-journal-entries {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tls-journal-entry {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.tls-journal-entry:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* En-tête de l'entrée */
.tls-journal-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.tls-journal-entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tls-journal-entry-type {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.tls-journal-entry-date {
  color: #6b7280;
  font-size: 0.9rem;
}

.tls-journal-entry-delete {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.tls-journal-entry-delete:hover {
  color: #ef4444;
}

/* Contenu de l'entrée */
.tls-journal-entry-content {
  color: #374151;
  line-height: 1.7;
}

.tls-journal-entry-lesson {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.tls-journal-entry-lesson a {
  color: #2563eb;
  text-decoration: none;
}

.tls-journal-entry-lesson a:hover {
  text-decoration: underline;
}

.tls-journal-entry-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.tls-journal-entry-text {
  color: #4b5563;
}

/* Questions/Réponses réflexion */
.tls-journal-reflex-qa {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tls-journal-qa-item {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #2563eb;
}

.tls-journal-question {
  margin-bottom: 12px;
  color: #1a1a1a;
  font-size: 1.05rem;
}

.tls-journal-answer {
  color: #4b5563;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Prévisualisation réflexion post découverte */
.tls-journal-reflex-preview {
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.tls-journal-reflex-preview p {
  margin-bottom: 12px;
  color: #4b5563;
}

/* Réponse exercice */
.tls-journal-apply-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tls-journal-apply-content {
  width: 100%;
}

.tls-journal-apply-response {
  margin-bottom: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.tls-journal-apply-sidebar {
  flex-shrink: 0;
  width: 200px;
}

.tls-journal-apply-sidebar .tls-journal-btn {
  width: 100%;
  white-space: normal;
  text-align: center;
  padding: 12px 16px;
}

.tls-journal-apply-attachment {
  margin-top: 12px;
}

.tls-journal-attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.95rem;
}

.tls-journal-attachment-link:hover {
  text-decoration: underline;
}

/* Section FAST intégrée */
.tls-journal-apply-fast-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
}

.tls-journal-fast-integrated {
  width: 100%;
}

.tls-journal-fast-toggle {
  width: 100%;
  justify-content: center;
  margin-bottom: 0;
}

.tls-journal-fast-toggle .fast-toggle-icon {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.tls-journal-fast-integrated-form {
  margin-top: 24px;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

/* Affichage réflexion FAST existante */
.tls-journal-fast-display {
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid #2563eb;
}

.tls-journal-fast-display-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.tls-journal-fast-display-entry-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
}

.tls-journal-fast-display-content {
  color: #4b5563;
  line-height: 1.7;
}

.tls-journal-fast-display-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.tls-journal-fast-display-date {
  font-size: 0.9rem;
  color: #6b7280;
}

/* Section toggle FAST dans modal */
.tls-journal-fast-toggle-section {
  margin: 24px 0;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
  text-align: center;
}

.tls-journal-fast-toggle-free {
  width: 100%;
  justify-content: center;
}


/* Modal */
.tls-journal-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tls-journal-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.tls-journal-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tls-journal-modal-fast {
  max-width: 900px;
}

.tls-journal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.tls-journal-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

.tls-journal-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.tls-journal-modal-close:hover {
  color: #1a1a1a;
}

.tls-journal-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Formulaire */
.tls-journal-form-field {
  margin-bottom: 24px;
}

.tls-journal-form-field label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.tls-journal-form-field input[type="text"],
.tls-journal-form-field textarea,
.tls-journal-form-field select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background-color: white;
}

.tls-journal-exercise-select {
  cursor: pointer;
}

.tls-journal-exercise-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tls-journal-form-field input[type="text"]:focus,
.tls-journal-form-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.tls-journal-form-field textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.6;
}

/* Textarea description dans modal libre */
#tls-journal-free-content {
  min-height: 120px;
}

/* Modèle FAST */
.tls-journal-fast-section {
  margin-bottom: 32px;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  border-left: 4px solid #2563eb;
}

.tls-journal-fast-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.tls-journal-fast-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: white;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
}

.tls-journal-fast-description {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
  font-style: italic;
}

.tls-journal-fast-content-section {
  margin-bottom: 32px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 3px solid #2563eb;
}

.tls-journal-fast-content-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.tls-journal-fast-content-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.tls-journal-fast-content-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tls-journal-fast-content-item strong {
  display: block;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.tls-journal-fast-content-item p {
  color: #4b5563;
  line-height: 1.7;
  margin: 0;
}

.tls-journal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

/* Éditeur de texte riche */
.tls-journal-editor {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  min-height: 200px;
  padding: 12px;
}

.tls-journal-editor:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .tls-journal-dashboard {
    padding: 0;
  }

  .tls-journal-title {
    font-size: 2rem;
  }

  .tls-journal-entry {
    padding: 16px;
  }

  .tls-journal-apply-wrapper {
    gap: 16px;
  }

  .tls-journal-modal-content {
    max-height: 95vh;
  }

  .tls-journal-modal-header,
  .tls-journal-modal-body {
    padding: 20px;
  }
}






