:root {
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-500: #0078d4;
  --brand-600: #0069ba;
  --brand-700: #005a9e;
  --text-900: #0f172a;
  --text-700: #334155;
  --text-600: #475569;
  --text-400: #94a3b8;
  --border-200: #e2e8f0;
  --border-300: #cbd5e1;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
}

body.theme-app {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-900);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-600);
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background: #f1f5f9;
  color: var(--text-900);
}

.sidebar-link.active {
  background: var(--brand-50);
  color: #1d4ed8;
  font-weight: 600;
}

.sidebar-section {
  padding: 1rem 0.75rem 0.25rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-400);
}

.card {
  background: var(--surface);
  border-radius: 0.75rem;
  border: 1px solid var(--border-200);
  box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.06);
}

.btn-primary,
.btn-secondary,
.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-700);
  border: 1px solid var(--border-300);
}

.btn-secondary:hover {
  background: var(--surface-muted);
}

.btn-danger {
  background: #dc2626;
  color: #fff;
}

.btn-danger:hover {
  background: #b91c1c;
}

.form-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border-300);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: var(--text-400);
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgb(59 130 246 / 0.25);
}

.form-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-700);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.icon-16 {
  width: 16px;
  height: 16px;
}

.icon-18 {
  width: 18px;
  height: 18px;
}

[x-cloak] {
  display: none !important;
}
