body {
  margin: 0;
  background-color: #000f16;
  font-family: 'Segoe UI', sans-serif;
  color: #E6E3E3;
}

header {
  background-color: #000000;
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #E6E3E3;
  font-size: large;
  color: #c2c1c1;
}

/* --- Top Panel Navigation --- */
.top-panel {
  background-color: #000000;
  display: flex;
  align-items: center;
  padding: 5px 25px;
  border-bottom: 2px solid #00394f;
  gap: 25px;
}

/* Reset details/summary */
.top-panel details {
  position: relative;
  list-style: none;
}

.top-panel summary {
  color: #E6E3E3;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.top-panel summary:hover {
  color: #00bfff;
  background: rgba(0, 191, 255, 0.1);
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #00141f;
  border: 1px solid #00394f;
  border-radius: 6px;
  margin-top: 6px;
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 1000;
}

.dropdown-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.95em;
  color: #E6E3E3;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
  background-color: #00394f;
  color: #00bfff;
}

/* Show dropdown when details is open */
.top-panel details[open] > .dropdown-menu {
  display: block;
}

/* Links without dropdown */
.top-panel > a,
.top-panel li > a {
  color: #E6E3E3;
  font-size: 1em;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.top-panel > a:hover,
.top-panel li > a:hover {
  color: #00bfff;
  background: rgba(0, 191, 255, 0.1);
}




main {
  padding: 20px;
  max-width: 580px;
  margin: auto;
}

footer {
  padding: 20px;
  color: #c2c1c1;
  text-align: center;
  font-size: 0.85em;
}

/* Input form */
.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* horizontal gap between left/right columns */
    align-items: start;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 2px;      /* spacing between label, input, small */
}

input {
    padding: 10px;       /* slightly smaller to reduce vertical space */
    font-size: 16px;
    background-color: #000;
    color: #e4e4e4;
    border: 1px solid #E6E3E3;
    border-radius: 5px;
    outline: none;
}

/* Results */
.results {
  grid-column: 1 / -1; /* spans both left + right */
  margin-top: 40px;
  background-color: #000000;
  padding: 20px;
  border-radius: 5px;
  color: #E6E3E3;
  border: 1px solid #002336;
  margin-left: 10%;
  margin-right: 10%;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #002336;
}

.result-item .label {
  flex: 1;
  font-weight: 500;
  color: #e0e0e0;
  padding-right: 10px;
}

.result-item strong {
  flex-shrink: 0;
  min-width: 150px;
  text-align: right;
  white-space: nowrap;
  font-weight: bold;
  color: #e0e0e0;
}

.disabled_input input {
  color: #5b5b5b;
}

.disabled_input {
  color: #5b5b5b;
}

.intro {
  background-color: #00141f;
  border: 1px solid #002336;
  border-radius: 6px;
  padding: 20px 25px;
  max-width: 720px;
  color: #e4e4e4;
  line-height: 1.6;
}

.intro h2 {
  margin-top: 0;
  color: #00bfff;
  font-size: 1.4em;
}

.intro h3 {
  margin-top: 20px;
  font-size: 1.1em;
  color: #c2c1c1;
}

.intro ul {
  padding-left: 20px;
  margin: 10px 0 20px;
}

.intro li {
  margin-bottom: 8px;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* left + right */
    gap: 30px;
}
.form-column {
    display: flex;
    flex-direction: column;
    gap: 10px; /* spacing between fields */
}

.form-column h3 {
    margin: 0;
    padding-bottom: 2px;
    font-size: 1em;
    border-bottom: 1px solid #00394f;
    color: #00bfff;
}

.form-wrapper {
  background-color: #00141f;
  border: 1px solid #002336;
  border-radius: 6px;
  padding: 20px 25px;
}

.calc-container {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr; /* left and right side */
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  align-items: stretch; /* make both sides equal height */
}

.intro,
.form-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* stick content to top */
  height: 100%;
}

.form-field small {
    margin: 0;
    line-height: 1.2;
}

.form-group .form-column .form-field {
    min-height: 60px; 
}

.form-column input {
    min-height: 15px; /* or whatever fits your design */
}