:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --text-1: #f8fafc;
  --text-2: #cbd5e1;
  --border: #334155;
  --radius: 12px;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-1);
  line-height: 1.5;
}

/* Utilities */
.hidden { display: none !important; }
.flex-center { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.w-full { width: 100%; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-12 { margin-bottom: 3rem; }
.mr-4 { margin-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.p-6 { padding: 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-2); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.border-b { border-bottom: 1px solid var(--border); }
.pb-2 { padding-bottom: 0.5rem; }

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Auth Card */
.auth-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  text-align: center;
}
.auth-logo {
  height: 48px;
  margin-bottom: 1rem;
}
.auth-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.auth-card form {
  margin-top: 1.5rem;
  text-align: left;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--text-2);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}
.form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
select option {
  background: var(--bg-card);
}

.grid {
  display: grid;
}
.gap-4 { gap: 1rem; }
.col-2 { grid-template-columns: 1fr 1fr; }
@media(max-width:600px) {
  .col-2 { grid-template-columns: 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid var(--success); }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid var(--danger); }

/* Navbar */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}
.tab {
  background: none;
  border: none;
  color: var(--text-2);
  padding: 0.5rem 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}
.tab.active {
  color: var(--primary);
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Cards & Lists */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.res-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.res-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
.res-title { font-weight: 600; font-size: 1.1rem; }
.res-date { font-size: 0.85rem; color: var(--text-2); display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status-pending { background: rgba(245,158,11,0.1); color: var(--warning); }
.status-confirmed, .status-completed { background: rgba(16,185,129,0.1); color: var(--success); }
.status-reassigned, .status-cancelled { background: rgba(239,68,68,0.1); color: var(--danger); }

.res-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.detail-item {
  color: var(--text-2);
}
.detail-item strong { color: white; display: block; font-size: 0.8rem; margin-bottom: 2px; }

.res-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Toast */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-card); border: 1px solid var(--border); padding: 12px 18px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); display: flex; align-items: center; gap: 10px; font-size: 0.9rem; animation: slideIn 0.3s ease; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
