/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1a1a2e; line-height: 1.6; background: #f4f5f7; }

/* Nav */
nav { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 2rem; background: #0f172a; }
.logo { font-size: 1.1rem; font-weight: 700; text-decoration: none; color: #fff; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { text-decoration: none; color: #94a3b8; font-size: 0.875rem; transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.nav-user { color: #64748b; font-size: 0.8rem; }

/* Layout */
main { padding: 2rem; max-width: 1100px; margin: 0 auto; }
h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; color: #0f172a; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: #334155; }

/* Buttons */
.btn { display: inline-block; padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; font-weight: 500; border: 1px solid #e2e8f0; color: #334155; cursor: pointer; font-size: 0.875rem; background: #fff; transition: all 0.15s; }
.btn:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-primary { background: #3b82f6; color: #fff; border-color: #3b82f6; }
.btn-primary:hover { background: #2563eb; }
.btn-danger { background: #fff; color: #ef4444; border-color: #fca5a5; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; text-align: center; padding: 0.625rem; }

/* Auth page */
.auth-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); }
.auth-card { background: #fff; padding: 2.5rem; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.25); width: 100%; max-width: 400px; }
.auth-logo { text-align: center; font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; margin-bottom: 0.25rem; }
.auth-card h1 { text-align: center; font-size: 0.9rem; font-weight: 400; color: #64748b; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.375rem; font-weight: 500; font-size: 0.875rem; color: #334155; }
.form-group input { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 0.95rem; transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.form-group input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group input::placeholder { color: #94a3b8; }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.875rem; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.5rem; border-radius: 12px; text-align: center; border: 1px solid #e2e8f0; }
.stat-number { font-size: 2rem; font-weight: 700; color: #0f172a; }
.stat-label { color: #64748b; font-size: 0.8rem; margin-top: 0.25rem; }

/* Cards */
.card { background: #fff; padding: 1.25rem; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 1rem; }
.detail-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.detail-row:last-child { border-bottom: none; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.data-table th { text-align: left; padding: 0.75rem 1rem; background: #f8fafc; font-weight: 600; font-size: 0.8rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.data-table td { padding: 0.75rem 1rem; border-top: 1px solid #f1f5f9; }
.data-table a { color: #3b82f6; text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

/* Misc */
.empty-state { color: #94a3b8; text-align: center; padding: 2rem; }
.text-muted { color: #94a3b8; }
.text-success { color: #10b981; }
code { background: #f1f5f9; padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.85rem; }
