* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  background: #f5f7fa;
  color: #222;
}

.app-container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* Panels */
.panel {
  padding: 20px;
}

.panel-left {
  width: 30%;
  background: #ffffff;
  border-right: 1px solid #dde1e7;
}

.panel-right {
  width: 70%;
  padding: 20px 30px;
}

/* Titles */
.app-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #1976d2;
}

/* Sections */
.panel-section {
  margin-bottom: 20px;
  border: 1px solid #e3e6ec;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fafbfe;
}

.panel-section h2 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}

/* Inputs */
label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

label input {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #c2c8d4;
  font-size: 0.9rem;
}

.hint {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 8px;
}

code {
  background: #eef1f5;
  padding: 1px 3px;
  border-radius: 3px;
}

/* Button */
.primary-btn {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  border: none;
  background: #1976d2;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.primary-btn:hover {
  background: #1259a3;
}

/* Status */
.status-box {
  margin-top: 10px;
  padding: 8px;
  border-radius: 4px;
  background: #eef1f5;
  font-size: 0.85rem;
}

/* Results */
.panel-right h2 {
  margin-bottom: 10px;
}

/* Summary table */
#summaryTableContainer {
  margin-bottom: 15px;
}

#summaryTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 5px;
}

#summaryTable th,
#summaryTable td {
  border: 1px solid #d1d6e0;
  padding: 6px 8px;
  text-align: right;
}

#summaryTable th:first-child,
#summaryTable td:first-child {
  text-align: left;
}

#summaryTable thead {
  background: #e3e7f0;
}

/* Plots */
.plots-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plot-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #dde1e7;
}

.plot-card h3 {
  font-size: 0.95rem;
  margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 900px) {
  .app-container {
    flex-direction: column;
  }
  .panel-left,
  .panel-right {
    width: 100%;
  }
}
