/* ═══════════════════════════════════════════
   TOOL PAGE LAYOUT - Sidebar + Main Content
═══════════════════════════════════════════ */

.tool-page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  margin-bottom: 80px;
}

/* ── SIDEBAR FOR TOOL PAGES ── */
.tool-page-sidebar {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 18px;
  height: fit-content;
  position: sticky;
  top: 190px;
  box-shadow: 0 2px 8px rgba(8, 15, 30, 0.06);
}

.tool-page-sidebar .sidebar-header {
  margin-bottom: 18px;
  border-bottom: 2px solid #0f1e3c;
  padding-bottom: 12px;
}

.tool-page-sidebar .sidebar-header h3 {
  font-size: 12px;
  font-weight: 800;
  color: #0f1e3c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Tools List in Sidebar */
.tool-page-sidebar .tools-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tool-page-sidebar .tool-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 10px;
  color: #475569;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 0;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
}

.tool-page-sidebar .tool-item:hover {
  background: #f8fafc;
  color: #0f1e3c;
  border-left-color: #2563eb;
}

.tool-page-sidebar .tool-item.active {
  background: #eff6ff;
  border-left-color: #2563eb;
  color: #2563eb;
  font-weight: 600;
}

.tool-page-sidebar .tool-text {
  flex: 1;
  line-height: 1.4;
}

/* ── MAIN CONTENT AREA ── */
.tools-content {
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   TOOL CALCULATOR - SINGLE COLUMN LAYOUT (Full Width Form + Below Results)
═══════════════════════════════════════════════════════════════ */

.tool-main-content {
  display: block;
  width: 100%;
  margin-bottom: 60px;
}

.tool-calculator-panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(8, 15, 30, 0.05);
  margin-bottom: 24px;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: flex-start;
}

.form-section h3 {
  font-size: 12px;
  font-weight: 800;
  color: #0f1e3c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid #f0f4f8;
  padding-bottom: 10px;
  margin: 0 0 8px 0;
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 13px;
  font-weight: 700;
  color: #64748b;
  pointer-events: none;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 13px 11px 34px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbfc;
  color: #0f1e3c;
  box-sizing: border-box;
}

.form-group select {
  padding-left: 13px;
  cursor: pointer;
}

.form-group input::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-help {
  font-size: 11px;
  color: #94a3b8;
}

.calc-submit-btn {
  padding: 13px 24px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
  margin-top: 8px;
  width: 100%;
}

.calc-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(37, 99, 235, 0.4);
}

/* ── RESULTS PANEL ── */
.tool-results-section {
  width: 100%;
}

.tool-results-panel-full {
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.results-placeholder {
  text-align: center;
  padding: 48px 24px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
}

.results-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-section h3 {
  font-size: 12px;
  font-weight: 800;
  color: #0f1e3c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  font-size: 13px;
}

.result-row:last-of-type {
  border-bottom: none;
}

.result-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.result-value {
  font-size: 14px;
  color: #0f1e3c;
  font-weight: 700;
}

.result-row.highlight {
  background: rgba(37, 99, 235, 0.1);
  padding: 12px 14px;
  border-radius: 8px;
  border-bottom: none;
  margin-top: 4px;
}

.result-row.highlight .result-value {
  color: #2563eb;
  font-size: 16px;
}

.info-box {
  background: white;
  border-left: 4px solid #2563eb;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.65;
}

.info-box strong {
  display: block;
  margin-bottom: 6px;
  color: #0f1e3c;
  font-weight: 700;
}

/* ── FEATURES SECTION ── */
.tool-features-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(8, 15, 30, 0.04);
}

.tool-features-section h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f1e3c;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f1e3c;
}

.feature-item p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .tool-main-content {
    display: block;
  }

  .tool-page-sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .tool-page-layout {
    grid-template-columns: 1fr;
  }

  .tool-page-sidebar {
    display: none;
  }

  .tool-main-content {
    display: block;
    gap: 0;
    margin-bottom: 40px;
  }

  .form-section {
    grid-template-columns: 1fr 1fr;
  }

  .tool-calculator-panel,
  .tool-results-panel-full {
    padding: 24px;
    position: static;
  }

  .tool-features-section {
    padding: 28px;
  }

  .tool-features-section h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .form-section {
    grid-template-columns: 1fr;
  }

  .tool-calculator-panel,
  .tool-results-panel-full {
    padding: 18px;
  }

  .form-section h3 {
    font-size: 11px;
  }

  .result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .result-value {
    font-size: 13px;
  }
}
