/* MBA: My Budgeting Apprentice */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #f4f6f9;
  color: #333;
  min-height: 100vh;
}

nav {
  background: #003087;
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
nav .brand { font-size: 1.3em; font-weight: bold; flex: 1; }
nav a { color: rgba(255,255,255,0.85); text-decoration: none; }
nav a:hover { color: white; }

.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }

h1 { color: #003087; margin-bottom: 20px; }
h2 { color: #003087; margin-bottom: 16px; }

.card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

.auth-grid { display: flex; justify-content: center; padding-top: 40px; }
.auth-grid .card { min-width: 380px; }

label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.9em;
  font-weight: 500;
  color: #555;
}
label input, label select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95em;
  transition: border-color 0.2s;
}
label input:focus, label select:focus {
  outline: none;
  border-color: #003087;
}

.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary { background: #003087; color: white; }
.btn-primary:hover { background: #00205c; }
.btn-secondary { background: #e8ecf3; color: #003087; }
.btn-secondary:hover { background: #d0d8eb; }
.btn-ghost { background: transparent; color: #666; border: 1px solid #ddd; }
.btn-ghost:hover { background: #f0f0f0; }

.action-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9em;
}
.alert-error { background: #fdecea; color: #c62828; border-left: 4px solid #c62828; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.82em; }
.data-table th {
  background: #003087;
  color: white;
  padding: 8px 6px;
  text-align: center;
  white-space: nowrap;
}
.data-table td {
  padding: 6px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.data-table td:first-child { text-align: left; }
.data-table tr:hover { background: #f0f5ff; }
.data-table .zero { color: #ccc; }

.muted { color: #888; font-size: 0.88em; margin-top: 8px; }
