:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255,255,255,0.1);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--surface-hover);
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-hover);
}
.badge.success { color: var(--success); background: rgba(16, 185, 129, 0.2); }
.badge.warning { color: var(--warning); background: rgba(245, 158, 11, 0.2); }

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.nav-links a { 
  color: var(--text-muted); 
  text-decoration: none; 
  margin-left: 1.5rem; 
  transition: color 0.3s; 
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }

.card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-color: var(--primary);
}

form .form-group { margin-bottom: 1.25rem; }
form label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.875rem;}
form input, form select, form textarea {
  width: 100%; padding: 0.85rem; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.5); color: var(--text); outline: none; transition: border-color 0.3s;
  font-family: inherit;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--primary); }

.alert {
  padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500;
}
.alert-error { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.alert-success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }

.table-wrapper { overflow-x: auto; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
th { background: rgba(255,255,255,0.02); color: var(--text-muted); font-weight: 600; font-size: 0.875rem; }
tr:last-child td { border-bottom: none; }
tr:hover { background: rgba(255,255,255,0.02); }

.grid { display: grid; gap: 1.5rem; }
.grid-cols-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.hero { text-align: center; padding: 5rem 0; }
.hero h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.2; 
background: linear-gradient(to right, #a855f7, #6366f1); -webkit-background-clip: text; color: transparent; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }

.auth-card {
    max-width: 400px; margin: 4rem auto; background: var(--surface);
    padding: 2.5rem; border-radius: 16px; border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.auth-card h2 { text-align: center; margin-bottom: 2rem; }
