/* style.css */

/* === Cadres === */
.agile-board-frame > strong {
  display: block;
  font-size: 1.1rem;
  padding: 0.5em 0.75em;
  margin-bottom: 0.5em;
  font-weight: 500;
  color: var(--text-normal);
  border-bottom: 1px solid var(--background-modifier-border);
  border-radius: 6px 6px 0 0;
  background: var(--background-secondary);
}

.agile-board-frame {
  border: 1px solid var(--background-modifier-border);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  padding: 0;
  display: block;
  overflow: hidden;
  min-height: 80px;
  box-sizing: border-box;
  background: var(--background-primary);
  transition: all 0.2s ease;
}

.agile-board-frame:hover {
  border-color: var(--interactive-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* === Styles pour le mode Board === */
.frame-title {
  padding: 0.5em 0.75em;
  font-weight: 500;
  color: var(--text-normal);
  border-bottom: 1px solid var(--background-modifier-border);
  border-radius: 6px 6px 0 0;
  background: var(--background-secondary);
  font-size: 1.1rem;
}

.frame-content {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  background: var(--background-primary);
}

/* === Grille === */
.agile-board-grid {
  min-height: 70vh;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 12px;
  padding: 12px;
}

/* === Éditeur === */
.editor {
  color: var(--text-normal);
  font-size: var(--font-text-size);
  font-family: inherit;
  border: 1px solid var(--background-modifier-border);
  padding: 0.5em;
  border-radius: 4px;
  background: var(--background-primary);
}

.preview {
  cursor: text;
  white-space: pre-wrap;
}

/* === Couleurs de l'éditeur de layout === */
:root {
  --agile-board-color-0: #8b94a3;
  --agile-board-border-0: #6b7280;
  --agile-board-color-1: #a78bfa;
  --agile-board-border-1: #8b5cf6;
  --agile-board-color-2: #60a5fa;
  --agile-board-border-2: #3b82f6;
  --agile-board-color-3: #34d399;
  --agile-board-border-3: #10b981;
  --agile-board-color-4: #fbbf24;
  --agile-board-border-4: #f59e0b;
  --agile-board-color-5: #fb7185;
  --agile-board-border-5: #f43f5e;
  --agile-board-color-6: #c084fc;
  --agile-board-border-6: #a855f7;
  --agile-board-color-7: #4ade80;
  --agile-board-border-7: #22c55e;
  --agile-board-color-8: #f472b6;
  --agile-board-border-8: #ec4899;
  --agile-board-color-9: #38bdf8;
  --agile-board-border-9: #0ea5e9;
  --agile-board-color-10: #a3a3a3;
  --agile-board-border-10: #737373;
  --agile-board-color-11: #facc15;
  --agile-board-border-11: #eab308;
}

/* === Message d'erreur === */
.agile-board-error button {
  margin-top: 1em;
  padding: 0.5em 1em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--interactive-accent, #cc0000);
  color: white;
  border: none;
  border-radius: 4px;
}
