/* =========================================================
   SAN JUAN ACADEMY — EXAMINER
   Cleaned and consolidated stylesheet
   ========================================================= */


/* =========================================================
   1. COLOR PALETTE
   ========================================================= */

:root {
  --bg-color: rgb(245 240 223);       /* Soft Sand */
  --text-color: rgb(33 37 41);        /* Charcoal Black */
  --primary-color: rgb(21 101 161);   /* Deep Sea Blue */
  --nav-bg: rgb(113 186 236);         /* Light Sky Blue */
  --footer-bg: rgb(229 217 186);      /* Sandy Beach Beige */
}


/* =========================================================
   2. PAGE
   ========================================================= */

body {
  margin: 0;
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, sans-serif;
}


/* =========================================================
   3. SIMULATOR PANELS
   ========================================================= */

#windControl,
#pointOfSailControl,
#map,
#input-pane {
  background: #ffffff;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}


/* =========================================================
   4. MAP
   ========================================================= */

#map {
  background-color: #e5e9f0;
  border: 1px dashed #ccd4e0;
  height: 700px;
}


/* =========================================================
   5. INPUT PANE
   ========================================================= */

#input-pane {
  display: flex;
  flex-direction: column;
  padding: 4px;
}


/* =========================================================
   6. CONTROL SECTIONS
   ========================================================= */

/* Hidden controls */
.input-section:not(.active) {
  display: none !important;
}


/* Active control */
.input-section.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
  box-sizing: border-box;
}


/* =========================================================
   7. CONTROL ROWS AND COLUMNS
   ========================================================= */

.control-row {
  display: flex;
  gap: 4px;
}

.control-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


/* Active section rows/columns expand when needed */
.input-section.active .control-row,
.input-section.active .control-column {
  flex: 1;
}


/* =========================================================
   8. CONTROL BUTTONS
   ========================================================= */

.control-button {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 5px 8px;

  font-size: 0.85rem;
  font-weight: 500;
  color: #4a5568;

  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;

  cursor: pointer;
  transition: all 0.1s ease;
  white-space: nowrap;
}


/* Hover */
.control-button:hover {
  background-color: #edf2f7;
}


/* Selected control */
.control-button.selected,
.control-button.active-setting {
  background-color: #3182ce !important;
  color: #ffffff !important;
  border-color: #2b6cb0 !important;
  font-weight: bold !important;
}


/* =========================================================
   9. RADIO BUTTONS
   ========================================================= */

label {
  display: block;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 0.88rem;
}

input[type="radio"] {
  margin-right: 4px;
  vertical-align: middle;
}


/* =========================================================
   10. CONTROL SELECTOR
   ========================================================= */

.controlSelector {
  display: flex;
  gap: 12px;
  align-items: center;
}


/* =========================================================
   11. POINT OF SAIL OPTIONS
   ========================================================= */

#pointOfSailControl .point-of-sail-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

#pointOfSailControl label {
  white-space: nowrap;
}


/* =========================================================
   12. START EXAM BUTTON
   ========================================================= */

#startExamBtn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  z-index: 1000;

  background: #007acc;
  color: #ffffff;

  border: none;
  padding: 16px 32px;

  font-size: 1.2rem;
  font-weight: bold;

  border-radius: 8px;
  cursor: pointer;
}
