/* PsiQ — base styles. Plain CSS, no Tailwind/build step, matching the
   no-Composer/no-build-tool approach used across your other projects. */

:root {
  --indigo: #4338ca;
  --indigo-dark: #3730a3;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --green: #15803d;
  --red: #b91c1c;
  --amber: #b45309;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  margin: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--indigo);
  color: white;
  font-size: 14px;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 32px;
  margin-top: 24px;
}

h1 { font-size: 18px; margin: 0 0 4px; }
p.subtitle { color: var(--slate-500); font-size: 14px; margin: 0 0 24px; }

label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--indigo);
  outline-offset: -1px;
}

button, .btn {
  display: inline-block;
  background: var(--indigo);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
button:hover, .btn:hover { background: var(--indigo-dark); }
.btn-secondary { background: white; color: var(--slate-700); border: 1px solid var(--slate-200); }
.btn-secondary:hover { background: var(--slate-100); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.alert { padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fef2f2; color: var(--red); }
.alert-success { background: #f0fdf4; color: var(--green); }

.muted-link { text-align: center; font-size: 14px; color: var(--slate-500); margin-top: 24px; }
.muted-link a { color: var(--indigo); text-decoration: none; font-weight: 500; }

/* App shell (dashboard) */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid var(--slate-200);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.sidebar nav { flex: 1; margin-top: 32px; }
.sidebar nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--slate-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}
.sidebar nav a:hover { background: var(--slate-100); color: var(--indigo); }
.sidebar-footer { border-top: 1px solid var(--slate-200); padding-top: 16px; font-size: 13px; }
.sidebar-footer .name { font-weight: 500; color: var(--slate-900); }
.sidebar-footer .email { color: var(--slate-500); }
.main { flex: 1; padding: 32px; }

.card { background: white; border: 1px solid var(--slate-200); border-radius: 12px; padding: 24px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--slate-100); color: var(--slate-700); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--slate-500); padding: 10px 12px; border-bottom: 1px solid var(--slate-200); }
td { padding: 10px 12px; border-bottom: 1px solid var(--slate-100); }
