/* =====================================================
   Base Styles
   ===================================================== */

#geotech-estimator-tool {
  max-width: 720px;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tool-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* =====================================================
   Inputs
   ===================================================== */

.tool-row {
  margin-bottom: 1rem;
}

.tool-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tool-row input,
.tool-row select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #d0d7de;
}

.tool-row input:focus,
.tool-row select:focus {
  outline: none;
  border-color: #155a96;
  box-shadow: 0 0 0 2px rgba(21,90,150,0.15);
}

.tool-row input:disabled,
.tool-row select:disabled {
  background-color: #f2f2f2;
  color: #666;
  cursor: not-allowed;
}

/* =====================================================
   Buttons
   ===================================================== */

.tool-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

#geotech-estimator-tool button {
  width: 100%;
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: #155a96;
  color: #fff;
}

.btn-primary:hover {
  background: #0f3d66;
}

.btn-reset {
  background: #d32f2f;
  color: #fff;
}

.btn-reset:hover {
  background: #b71c1c;
}

@media (min-width: 640px){
  .tool-actions { flex-direction: row; }
  #geotech-estimator-tool button { width:auto; flex:1; }
}

/* =====================================================
   Title Card
   ===================================================== */

.tool-title-card {
  text-align: center;
  background: linear-gradient(135deg, #0f3d66, #155a96);
  color: white;
}

.tool-title-card h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

.tool-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 0.4rem;
}

/* =====================================================
   Structure Card
   ===================================================== */

.structure-card h3 {
  font-size: 1.2rem;
  color: #0f3d66;
}

/* =====================================================
   Result Card
   ===================================================== */

.result-card {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 12px;
  background: #f8fbff;
  border-left: 6px solid #155a96;
  font-size: 0.95rem;
  line-height: 1.6;
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: #0f3d66;
}

.result-card p {
  margin: 0.4rem 0;
}

.result-card strong {
  color: #0f3d66;
  font-weight: 600;
}

.tool-warning {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: #b02a37;
  font-weight: 600;
}

/* Highlighted recommended values */
.highlight {
  font-size: 1rem;
  font-weight: bold;
  color: #155a96;
}