/* editorCar.css */

/* ===== BASE ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #222;
  color: #eee;
  height: 100vh;
}

#app {
  display: flex;
  flex-direction: column;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 22px;
  letter-spacing: 1px;
}

/* ===== CONTAINER EDITEUR ===== */
.editor-container {
  display: flex;
  flex: 1;
  gap: 20px;
  height: calc(100% - 60px);
}

/* ===== COLONNE MENU ===== */
.menu-column {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #1a1a1a;
  padding: 12px;
  border-radius: 6px;
  box-sizing: border-box;
}

.menu-title {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 14px;
  color: #ddd;
}

.menu-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== INPUTS INLINE (ROUES) ===== */
.menu-line label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.menu-line input[type="number"] {
  width: 70px;
}

/* ===== COLONNE APERCU ===== */
.preview-column {
  flex: 1;
  background: #111;
  border: 2px solid #555;
  border-radius: 6px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

canvas {
  flex: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #000;
}

/* ===== BOUTONS ===== */
.bottom-buttons {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

button {
  padding: 10px 18px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

button:hover {
  opacity: 0.9;
}

button:active {
  transform: scale(0.97);
}

#save {
  background: linear-gradient(135deg, #0f9b0f, #00c853);
  color: #fff;
}

#back {
  background: linear-gradient(135deg, #555, #999);
  color: #fff;
}

/* ===== INPUTS / SELECT ===== */
select,
input[type="color"],
input[type="file"],
input[type="number"] {
  padding: 6px;
  border-radius: 4px;
  font-size: 14px;
  background: #333;
  color: #eee;
  border: 1px solid #444;
  box-sizing: border-box;
}

select:focus,
input:focus {
  outline: none;
  border-color: #00c853;
}

/* ===== FILE INPUT ===== */
input[type="file"] {
  cursor: pointer;
}

/* ===== INFOS COORDS ===== */
#wheel-coords {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}
