:root {
  --primary: #1e293b;
  --accent: #10b981;
  --bg: #f8fafc;
  --text: #334155;
  --card-bg: #ffffff;
}
.welcome-screen {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top right, #1e293b, #0f172a); /* Deep professional gradient */
    color: white;
}

.welcome-content {
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.welcome-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.welcome-title span {
    color: #10b981; /* Accent color */
}

.welcome-instructions {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.start-button {
    background: #10b981;
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.start-button:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.welcome-features {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #64748b;
    font-size: 0.9rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
body.dark-mode {
  --bg: #0f172a;
  --text: #f1f5f9;
  --card-bg: #1e293b;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}
/* Container for the table to add spacing */
.table-container {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #03142b;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.95rem;
}

/* Header Styling */
.modern-table thead tr {
    background-color: #1e293b;
    color: #a79898;
    text-align: left;
}

.modern-table th {
    padding: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

/* Body Styling */
.modern-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

/* Zebra Stripes for Readability */
.modern-table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

/* Highlight "0%" Rate */
.modern-table td:last-child {
    font-weight: 600;
}

/* Hover Effect */
.modern-table tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Dark Mode Table Adjustment */
.dark-mode .table-container {
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(73, 70, 70, 0.4);
}

.dark-mode .modern-table {
    background: #334a6f;
}

.dark-mode .modern-table td {
    color: #a6b0bd;
    border-bottom: 1px solid #334155;
}

.dark-mode .modern-table thead tr {
    background-color: #2f384f;
}
.savings-alert {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.text-save { color: #10b981; font-weight: bold; } /* Green */
.text-loss { color: #ef4444; font-weight: bold; } /* Red */

.comparison-section {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.dashboard {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.input-panel {
  background: var(--card-bg);
  padding: 2rem;
  border-right: 1px solid #e5e7eb;
  transition: background 0.3s;
}

.results-panel {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1rem;
}
.tax-slab {
  margin-top: 2rem;
}

.tax-slab table {
  width: 100%;
  border-collapse: collapse;
}

.tax-slab th, .tax-slab td {
  border: 1px solid #cbd5e1;
  padding: 0.4rem;
  text-align: center;
}

.tax-slab th {
  background-color: #f1f5f9;
  font-weight: 600;
}
.trust-note {
    margin-top: 20px;
    padding: 12px;
    background-color: #f0f9ff; /* Soft blue background */
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lock-icon {
    margin-right: 8px;
    font-size: 1rem;
}

/* Dark Mode Support */
.dark-mode .trust-note {
    background-color: #1e293b;
    border-color: #334155;
    color: #38bdf8;
}


input {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
}

.toggle-group {
  display: flex;
  gap: 0.5rem;
}

.toggle-group button,
.chart-toggle button,
.btn-primary {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.toggle-group button.active,
.chart-toggle button.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: background 0.3s;
}

.chart-toggle {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-container {
  height: 400px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1rem;
  transition: background 0.3s;
}

.chart-container canvas {
  width: 100%;
  height: 100%;
}

.explanation {
  font-size: 0.9rem;
  color: #475569;
}

body.dark-mode .explanation {
  color: #cbd5e1;
}

/* MOBILE */
@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }
}
