/* ==========================================================================
   XSEEDINFO INTERACTIVE B2B ENGINEERING & FINANCIAL CALCULATORS STYLING
   Engineered for Perfect Contrast in Both Classic Light & Dark Edition
   ========================================================================== */

.calc-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.calc-container:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-heavy);
}

.calc-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}

.calc-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-serif-head);
  margin: 0.4rem 0 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.calc-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-sublabel {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.calc-input {
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.calc-select {
  background: var(--bg-page);
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  width: 100%;
  cursor: pointer;
  transition: border-color 0.2s;
}

.calc-select:focus {
  outline: none;
  border-color: #38bdf8;
}

.calc-results-col {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-card-main {
  text-align: center;
  padding: 1.25rem 1.1rem;
  border-radius: 6px;
  margin-bottom: 1.35rem;
  border: 1.5px solid transparent;
}

.result-status-safe {
  background: rgba(16, 185, 129, 0.12);
  border-color: #10b981;
  color: #047857;
}

body.dark-edition .result-status-safe {
  color: #34d399;
}

.result-status-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: #ef4444;
  color: #b91c1c;
}

body.dark-edition .result-status-danger {
  color: #f87171;
}

.result-status-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: #f59e0b;
  color: #b45309;
}

body.dark-edition .result-status-warning {
  color: #fbbf24;
}

.result-status-title {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.result-breakdown-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.result-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.9rem;
}

.result-breakdown-label {
  color: var(--text-sub);
  font-weight: 500;
}

.result-breakdown-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--text-main);
}

.calc-methodology-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}
