:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-color: #f3f4f6;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --danger: #ef4444;
  --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); min-height: 100vh; }

.auth-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.auth-card { background: var(--card-bg); padding: 2.5rem; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; }
.auth-card h2 { margin-bottom: 0.5rem; text-align: center; }
.auth-card p.subtitle { color: var(--text-muted); font-size: 0.875rem; text-align: center; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.875rem; outline: none; }
.form-group input:focus { border-color: var(--primary); }

.btn { width: 100%; padding: 0.75rem; background-color: var(--primary); color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
.btn:hover { background-color: var(--primary-hover); }
.btn-secondary { background-color: var(--text-muted); }

.auth-switch { text-align: center; margin-top: 1rem; font-size: 0.875rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary); text-decoration: none; font-weight: 500; }

.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background-color: #1e293b; color: white; padding: 1.5rem 1rem; display: flex; flex-direction: column; }
.sidebar h2 { font-size: 1.25rem; margin-bottom: 2rem; padding-left: 0.5rem; }
.nav-links { list-style: none; flex: 1; }
.nav-links a { color: #94a3b8; text-decoration: none; padding: 0.75rem 1rem; display: block; border-radius: 6px; }
.nav-links a.active { background-color: #334155; color: white; }

.main-content { flex: 1; padding: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.stat-card { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.table-card { background: var(--card-bg); border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); }
