body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  margin: 0;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 20px 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 15px;
}

h2, h3 {
  margin-top: 20px;
}

.hidden {
  display: none;
}

label {
  display: block;
  margin-bottom: 5px;
}

input[type="text"] {
  padding: 8px;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

button {
  background-color: #1976d2;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #145ca3;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  color: #c62828;
  margin-top: 8px;
}

.info {
  color: #1565c0;
  margin-top: 10px;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  background: #e3f2fd;
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

#item-container {
  margin-bottom: 10px;
}

.item-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.option-block {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-text {
  max-width: 70%;
}

.option-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.option-controls label {
  font-size: 0.9rem;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.navigation button {
  margin-top: 0;
}

#results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

#results-table th,
#results-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
}

#results-table th {
  background: #e3f2fd;
  text-align: left;
}
