/* ============================================================
   File: X710.css
   Description: GUI for the X710 simulator
   Author: VincentD
   Created: Mars 2026
   Last Updated: April 02, 2026
   Version: 1.0
   ============================================================ */


body {
  font-family: sans-serif;
  margin: 20px;
}

/* Section COM */
.com {
  margin-bottom: 20px;
}
.com label {
  margin-right: 10px;
}
.com button {
  margin-left: 10px;
}

/* Section Files */
.files {
  margin-bottom: 20px;
}
.files input[type="file"] {
  margin-right: 10px;
}

/* Layout */
.layout {
  display: flex;
  flex-direction: row;
  gap: 1em;
  box-sizing: border-box;
}

.commands {
  flex: 0 0 30%;
  min-width: 0;
}

.canvas {
  flex: 1;
  min-width: 0;
}

/* Éléments */
textarea {
  width: 100%;
  height: 40lh;
  min-height: 12lh;
  resize: vertical;
  box-sizing: border-box;
}

textarea:focus {
  outline: none;
  border-color: #4CAF50;
}

canvas {
  border: 1px solid #000;
  display: block;
  margin-top: 10px;
  width: 100%;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
}

label {
  display: inline-block;
  margin-right: 10px;
}

select {
  margin-left: 5px;
}

/* documentation */
summary {
  display: flex;
  list-style: none;
  align-items: center;
  cursor: pointer;
}

summary h2,
summary h3 {
  display: inline;
  margin: 0;
}

summary::-webkit-details-marker {
  display: none;
}

details details {
  margin-left: 20px;
}

details[open] > summary::before {
  content: "➖ ";
}

details > summary::before {
  content: "➕ ";
}

/* ==================== EOF ===================== */