/* ============================================================
   teacher.css — Estils del mode professor
   ============================================================ */

/* Indicador de mode professor al header */
.teacher-mode-indicator {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #000;
  background: var(--color-warning);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  animation: pulse-teacher 2s infinite;
}

.teacher-mode-indicator.visible { display: flex; }

@keyframes pulse-teacher {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 140, 0, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(251, 140, 0, 0); }
}

/* ---------- Vista del mode professor ---------- */
.teacher-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Targetes d'estadística professor */
.teacher-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.teacher-stat {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.teacher-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.teacher-stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* Pannell de control d'exercicis (professor) */
.teacher-exercise-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.teacher-exercise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  gap: 0.75rem;
}

.teacher-exercise-item .ex-title {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
}

.teacher-exercise-item .ex-topic {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Editor d'exercicis */
.exercise-editor {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.exercise-editor-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

/* Llista de preguntes editables */
.editable-question {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.editable-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

/* ---------- Exportació d'informes ---------- */
.export-section {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Registre d'activitat */
.activity-log {
  background: var(--color-terminal);
  border: 1px solid #30363d;
  border-radius: var(--radius);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.8;
}

.activity-log-entry {
  display: flex;
  gap: 1rem;
  color: #c9d1d9;
}

.activity-log-entry .log-time {
  color: #6a737d;
  flex-shrink: 0;
}

.activity-log-entry .log-action { color: var(--color-green); }
.activity-log-entry .log-detail { color: var(--color-text-muted); }

/* Selector de mode a la llista lateral */
.mode-selector {
  padding: 0.75rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

.mode-selector select {
  width: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-sans);
  outline: none;
}

/* Presentació mode projecció */
.projection-mode {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99990;
  display: none;
  padding: 3rem;
  overflow-y: auto;
}

.projection-mode.active { display: block; }

.projection-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 2rem;
}

.projection-content {
  font-size: 1.5rem;
  line-height: 2;
  color: white;
  max-width: 900px;
  margin: 0 auto;
}

.projection-exit {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 99991;
}
