* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #1a1a2e; }
a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav { background: #1a1a2e; color: white; padding: 0 24px; display: flex; align-items: center; height: 56px; }
.nav-brand { font-weight: 700; font-size: 18px; margin-right: 32px; }
.nav-links { display: flex; gap: 24px; flex: 1; }
.nav-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: white; text-decoration: none; }
.nav-user { font-size: 13px; color: rgba(255,255,255,0.6); }
.nav-user button { background: none; border: 1px solid rgba(255,255,255,0.3); color: white; padding: 6px 14px; border-radius: 6px; cursor: pointer; margin-left: 12px; font-size: 13px; }

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 24px; }
.page-title { font-size: 24px; font-weight: 700; margin-bottom: 20px; }

/* Cards */
.card { background: white; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 16px; }
.card-title { font-size: 14px; color: #666; font-weight: 500; margin-bottom: 8px; }
.card-value { font-size: 28px; font-weight: 700; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 10px 12px; font-size: 12px; color: #666; text-transform: uppercase; border-bottom: 2px solid #eee; }
td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
tr:hover { background: #f8f9fa; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #333; }
.form-input { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.form-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
select.form-input { appearance: auto; }

/* Buttons */
.btn { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: #4f46e5; color: white; }
.btn-primary:hover { background: #4338ca; }
.btn-danger { background: #ef4444; color: white; }
.btn-secondary { background: #e5e7eb; color: #333; }

/* Login */
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.login-card { background: white; border-radius: 16px; padding: 40px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.login-subtitle { text-align: center; color: #666; font-size: 14px; margin-bottom: 24px; }
.login-error { background: #fef2f2; color: #dc2626; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-credit { background: #dcfce7; color: #16a34a; }
.badge-debit { background: #fef2f2; color: #dc2626; }
.badge-info { background: #e0e7ff; color: #4f46e5; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fef2f2; color: #991b1b; }

/* Search */
.search-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.search-bar input { flex: 1; }

/* Responsive */
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 12px; }
}
