body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background-color: #f9f9fb;
  margin: 0;
  padding: 0;
}

.page { display: none; }
.page.active { display: block; animation: fadeIn 0.4s ease; }

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

.tab-active { color: #6d28d9; }
.tab-inactive { color: #9ca3af; }

button { cursor: pointer; transition: all 0.2s ease-in-out; }
button:hover { transform: scale(1.03); }

input, select { outline: none; }
input:focus, select:focus { ring: 2px solid #a78bfa; }

.bg-white { background-color: #ffffff; }
.bg-purple-100 { background-color: #ede9fe; }
.text-purple-700 { color: #6d28d9; }
.text-red-500 { color: #ef4444; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

main { width:100%; max-width:420px; margin:0 auto; padding:0 1rem; }
header { width:100%; }

nav {
  border-top: 1px solid #e5e7eb;
  padding: 0.5rem 0;
  display:flex;
  justify-content: space-around;
  background-color: #fff;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.05);
  border-top-left-radius:1.5rem;
  border-top-right-radius:1.5rem;
}

i { vertical-align: middle; }

/* Responsive */
@media (max-width:480px) {
  main { padding:0 0.5rem; }
  header h1 { font-size: 1.1rem; }
}
/* فاصله دادن کارت‌های Income و Expense از هدر */
#overviewPage .flex.justify-between {
  margin-top: 1.5rem; /* یا 2rem بسته به سلیقه */
}