/* Remove body styling so we don't break the Quarto theme */

/* Rename .container to .gs-container */
.gs-container {
  display: flex;
  /* Use a fixed height instead of 100vh so it fits inside the page */
  height: 700px;
  width: 100%;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  /* Optional: adds a nice border */
  border-radius: 8px;
  background: white;
  position: relative;
  /* Keeps it contained */
}

/* Rename .sidebar to .gs-sidebar */
.gs-sidebar {
  width: 320px;
  background: #fdfdfd;
  padding: 20px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow-y: auto;
  border-right: 1px solid #eee;
  /* Ensure text aligns correctly inside the sidebar */
  text-align: left;
}

h2 {
  margin-top: 0;
  font-size: 18px;
  color: #333;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* Inputs */
.input-group {
  background: white;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  border-left: 4px solid #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: #555;
  display: block;
}

.coord-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coord-row div {
  display: flex;
  align-items: center;
}

.coord-row label {
  font-size: 12px;
  color: #777;
  font-weight: bold;
  margin-right: 4px;
  margin-bottom: 0;
  /* Fix for Quarto label spacing */
}

input[type="number"] {
  width: 50px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: monospace;
  text-align: right;
  transition: border 0.2s;
}

input[type="number"]:focus {
  border-color: #3498db;
  outline: none;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: #3498db;
  color: white;
  margin-top: 10px;
  width: auto;
  align-self: flex-start;
  padding: 8px 20px;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-nav {
  background-color: #e2e6ea;
  color: #495057;
}

.btn-nav:hover:not(:disabled) {
  background-color: #dbe2ef;
}

.btn-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.controls-area {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  display: none;
}

.step-box {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  color: #0d47a1;
  margin-bottom: 15px;
  min-height: 60px;
}

.nav-row {
  display: flex;
  gap: 10px;
}

.step-counter {
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: #999;
}

/* Rename plot container to avoid conflicts */
.gs-plot-container {
  flex: 1;
  position: relative;
  background: #fcfcfc;
}