/* ============================================
   EDITOR PANEL - Sidebar de l'éditeur
   ============================================ */

.editor-panel {
  width: 380px;
  background: #1e1e2e;
  padding: 20px;
  overflow-y: auto;
  max-height: 100vh;
  border-right: 1px solid #333;
}

.editor-panel h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #00c27a;
  color: #00ffa3;
  text-align: center;
}

/* ============================================
   SECTIONS DE CONTRÔLE
   ============================================ */

.control-section {
  background: #252535;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #333;
  transition: border-color 0.3s;
}

.control-section:hover {
  border-color: #00c27a;
}

.control-section h2 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #00ffa3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group {
  margin-bottom: 12px;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: #b0b0b0;
}

/* ============================================
   SÉLECTEUR DE VALEUR
   ============================================ */

.value-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.value-selector input[type="range"] {
  margin-bottom: 5px;
}

/* ============================================
   PRESETS DE COULEURS
   ============================================ */

.color-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.preset-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #444;
  border-radius: 10px;
  background: #252535;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s, border-color 0.3s;
}

.preset-btn:hover {
  transform: scale(1.1);
  border-color: #00c27a;
}

.preset-btn.active {
  border-color: #00ffa3;
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.5);
}

/* Boutons presets pour le verso */
.preset-back-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #444;
  border-radius: 10px;
  background: #252535;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s, border-color 0.3s;
}

.preset-back-btn:hover {
  transform: scale(1.1);
  border-color: #e94560;
}

.preset-back-btn.active {
  border-color: #e94560;
  box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

/* Tooltips pour presets */
.preset-btn[title]:hover::after,
.preset-back-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a28;
  color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  border: 1px solid #333;
}

/* ============================================
   GALERIE SVG
   ============================================ */

.svg-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 5px;
  background: #1a1a28;
  border-radius: 8px;
  border: 1px solid #333;
}

.svg-item {
  width: 100%;
  aspect-ratio: 1;
  background: #252535;
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: all 0.2s;
}

.svg-item:hover {
  border-color: #00c27a;
  transform: scale(1.05);
}

.svg-item.active {
  border-color: #00ffa3;
  background: #303050;
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

.svg-item svg {
  width: 100%;
  height: 100%;
  fill: #00c27a;
}

/* ============================================
   SECTION EXPORT
   ============================================ */

.export-section {
  background: linear-gradient(135deg, #252535, #2a3a4a);
  border: 1px solid #00c27a;
}

.export-section h2 {
  color: #00ffa3;
}

.export-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.export-buttons .btn {
  width: 100%;
}

.save-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.save-buttons .btn {
  width: 100%;
}
