/* ============================
   GST CALCULATOR — MODERN UI
   Matches SIP Calculator Style
============================ */

:root {
  --primary: #2563eb;
  --primary-soft: #e8efff;
  --accent: #16a34a;
  --bg-card: #ffffff;
  --bg-soft: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-soft: #e5e7eb;
  --radius: 14px;
}

/* Tool panel */
.tool-panel {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* Section headings */
.section-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-main);
}

.section-subtitle {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

/* Result box */
.result {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--border-soft);
  line-height: 1.7;
}

.result strong {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Action bar */
.tool-action-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Reset button */
#resetGST {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  font-size: 13px;
  padding: 6px 14px;
}

/* ===== CONTENT SECTIONS ===== */

.gst-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Bullet lists */
.gst-list {
  padding-left: 1rem;
  margin-bottom: 0;
}

.gst-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* FAQs */
.gst-faq {
  margin-bottom: 0.75rem;
}

.gst-q {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.gst-a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tables */
.gst-table th {
  background: var(--primary-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.gst-table td {
  font-size: 0.85rem;
}

/* ===== MOBILE OPTIMIZATION ===== */

@media (max-width: 768px) {
  .section-title {
    font-size: 1.05rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .result {
    font-size: 0.85rem;
  }

  .gst-table th,
  .gst-table td {
    font-size: 12px;
    white-space: nowrap;
  }

  /* Floating reset like SIP */
  #resetGST {
    position: fixed;
    bottom: 64px;
    right: 14px;
    z-index: 1050;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
  }
}

/* Subtle animation */
.tool-panel,
.result,
.gst-content {
  animation: fadeUp 0.4s ease;
}

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