/* Color palette: SBI-inspired blues and accent */
:root {
  --blue-900: #003d6b;
  --blue-700: #035e91;
  --blue-100: #e6f1fb;
  --accent: #f5a623;
  --text: #1d2939;
  --muted: #667085;
  --border: #d0d5dd;
  --success: #2e7d32;
  --danger: #c62828;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: #fafafa;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo-circle { display: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; background: #ffffff; padding: 3px; border: 1px solid var(--border); object-fit: contain; }
.brand-title { margin: 0; font-size: 20px; font-weight: 700; }
.brand-badge { background: var(--accent); color: #1d1d1d; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.nav a { color: #eaf2fb; text-decoration: none; margin-left: 18px; font-weight: 500; }
.nav a.active { color: white; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* Hero */
.hero { background: var(--blue-100); border: 1px solid var(--border); padding: 18px; border-radius: 10px; margin: 20px 0; }
.hero h2 { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* Cards */
.card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin: 20px 0; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.card h3 { margin-top: 0; }
.hidden { display: none; }

/* Form */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: end; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 14px; color: var(--text); }
input[type="text"], input[type="date"] {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; outline: none;
}
input[type="text"]:focus, input[type="date"]:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(3,94,145,0.15); }
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-message { margin: 6px 2px 0; min-height: 20px; }

/* Buttons */
.btn { appearance: none; border: none; border-radius: 8px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.btn-primary { background: var(--blue-700); color: white; }
.btn-secondary { background: #eceff4; color: var(--text); }
.btn-accent { background: var(--accent); color: #1d1d1d; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Summary */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary-item { padding: 10px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; }
.summary-item .label { color: var(--muted); font-size: 12px; }
.summary-item .value { font-weight: 600; }
.transactions { margin-top: 12px; }
.transactions table { width: 100%; border-collapse: collapse; }
.transactions th, .transactions td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; font-size: 14px; }
.transactions th { background: #f1f5f9; }
.amount-credit { color: var(--success); }
.amount-debit { color: var(--danger); }
.download-exe-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #dc3545;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  margin: 15px 0;
  box-shadow: 0 4px 10px #dc3545(220,53,69,0.3);
  transition: 0.3s;
}
.download-exe-btn:hover {
  background: #f5a6233;
  transform: translateY(-2px);
}
/* Footer */
.site-footer { margin-top: 30px; padding: 16px 0; border-top: 1px solid var(--border); background: #f8fafc; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .summary-grid { grid-template-columns: 1fr; }
  .nav a { margin-left: 12px; }
}