/* ===============================
   RESET & BASE
   =============================== */
* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

body {
  margin: 0;
  background: #f3f4f6;
  color: #111827;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   LAYOUT
   =============================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 16px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 18px;
}

/* ===============================
   HEADER / TOP BAR
   =============================== */
.header {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #ffffff;
  padding: 18px;
}

.header h1 {
  margin: 0;
  font-size: 22px;
}

/* ===============================
   HEADINGS
   =============================== */
h2 {
  margin-top: 0;
  font-size: 20px;
}
h3 {
  margin-bottom: 10px;
}

/* ===============================
   DASHBOARD SUMMARY
   =============================== */
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 14px;
}

.summary-box {
  padding: 20px;
  border-radius: 16px;
  color: white;
}

.income { background: #16a34a; }
.expense { background: #dc2626; }
.balance { background: #4f46e5; }

/* ===============================
   MENU / ACTION TILES
   =============================== */
.menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 14px;
  margin-top: 16px;
}

.menu a {
  background: #f9fafb;
  padding: 18px;
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  transition: all .2s ease;
}

.menu a:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-2px);
}

/* ===============================
   BUTTONS
   =============================== */
button {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #1e3a8a;
}

button.danger {
  background: #dc2626;
}

/* ===============================
   FORMS
   =============================== */
input, select, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  margin-bottom: 14px;
  font-size: 14px;
}

/* ===============================
   TABLES (RESPONSIVE)
   =============================== */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

th {
  background: #f9fafb;
}

/* ===============================
   LOGIN
   =============================== */
.login-box {
  max-width: 380px;
  margin: 80px auto;
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 600px) {
  .header h1 {
    font-size: 18px;
  }
}
