:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #052545;
  --card: #c4ba61;
  --text: #1e293b;
  --border: #e2e8f0;
  --success: #16a34a;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 700px;
  background: var(--card);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

h1 {
  margin-top: 0;
  font-size: 1.6rem;
  text-align: center;
  color: #0f172a;
}

.group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

select,
input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

select:focus,
input:focus {
  outline: 2px solid var(--primary);
}

select optgroup {
  font-weight: bold;
  color: var(--primary);
  background: #fff;
}

.inputs-panel {
  background: #f1f5f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.input-row {
  margin-bottom: 15px;
}

.input-row:last-child {
  margin-bottom: 0;
}

.unit-toggle-group {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.unit-btn {
  background: #e2e8f0;
  border: none;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s ease;
}

.unit-btn.active {
  background: var(--primary);
  color: white;
}

.result-panel {
  background: #dcfce7;
  color: #14532d;
  padding: 18px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  border: 1px solid #bbf7d0;
  word-wrap: break-word;
  margin-bottom: 15px;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #15803d;
}
