/* Psychic Admin BO — plain, no animation, minimal color. */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #222;
  background: #f5f5f5;
}
a { color: #1a56b0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top navigation */
nav.topnav {
  background: #23303d;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  flex-wrap: wrap;
}
nav.topnav .brand { font-weight: 700; margin-right: 12px; padding: 12px 0; }
nav.topnav a {
  color: #cfd8e0;
  padding: 12px 10px;
  display: inline-block;
}
nav.topnav a:hover { color: #fff; text-decoration: none; background: #31414f; }
nav.topnav a.active { color: #fff; border-bottom: 3px solid #fff; }
nav.topnav .spacer { flex: 1; }
nav.topnav .envbadge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  margin-right: 12px;
}
.envbadge.production { background: #b03030; color: #fff; }
.envbadge.development { background: #2e7d32; color: #fff; }
nav.topnav form { margin: 0; }
nav.topnav button.linklike {
  background: none; border: none; color: #cfd8e0; cursor: pointer;
  font-size: 14px; padding: 12px 10px;
}
nav.topnav button.linklike:hover { color: #fff; background: #31414f; }

main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { font-size: 20px; margin: 0 0 16px; }
h2 { font-size: 16px; margin: 24px 0 8px; }

/* Cards / sections */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 16px;
}
.card h2:first-child { margin-top: 0; }

/* Stat tiles */
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 120px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px 12px;
  background: #fafafa;
}
.stat .label { font-size: 12px; color: #666; }
.stat .value { font-size: 20px; font-weight: 700; margin-top: 2px; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
th { background: #f0f2f4; font-size: 12px; text-transform: uppercase; color: #555; }
tr:hover td { background: #f8f9fa; }

/* Forms */
label { display: block; font-size: 12px; color: #555; margin: 10px 0 3px; }
input[type=text], input[type=number], input[type=password], input[type=url], textarea, select {
  width: 100%;
  max-width: 480px;
  padding: 6px 8px;
  border: 1px solid #bbb;
  border-radius: 3px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 90px; max-width: 720px; }
input[type=checkbox] { width: auto; }
button, .btn {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #888;
  border-radius: 3px;
  background: #f0f0f0;
  color: #222;
  font: inherit;
  cursor: pointer;
}
button:hover, .btn:hover { background: #e2e2e2; text-decoration: none; }
button.primary, .btn.primary { background: #23303d; color: #fff; border-color: #23303d; }
button.primary:hover, .btn.primary:hover { background: #31414f; }
button.danger, .btn.danger { background: #b03030; color: #fff; border-color: #b03030; }
button.danger:hover { background: #922; }
button.small, .btn.small { padding: 3px 8px; font-size: 12px; }

/* Badges */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid transparent;
}
.badge.green { background: #e4f2e5; color: #2e7d32; border-color: #bfe0c1; }
.badge.red { background: #f8e2e2; color: #b03030; border-color: #ecc; }
.badge.gray { background: #eee; color: #555; border-color: #ddd; }
.badge.orange { background: #fbeedc; color: #b06a00; border-color: #ecd9b8; }

/* Utility */
.muted { color: #777; font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.row > * { flex: 1; min-width: 260px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar form { margin: 0; display: flex; gap: 8px; align-items: center; }
.toolbar input[type=text] { max-width: 240px; }
.pagination { margin: 16px 0; display: flex; gap: 8px; }
.error { background: #f8e2e2; border: 1px solid #ecc; color: #922; padding: 8px 12px; border-radius: 3px; margin-bottom: 12px; }
.success { background: #e4f2e5; border: 1px solid #bfe0c1; color: #2e7d32; padding: 8px 12px; border-radius: 3px; margin-bottom: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #ddd; }
.avatar.large { width: 72px; height: 72px; }

/* Simple bar chart (dashboard) */
.barchart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 20px; }
.barchart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.barchart .bar .fill { width: 70%; background: #4a6b8a; min-height: 2px; }
.barchart .bar .amt { font-size: 11px; color: #444; margin-bottom: 3px; }
.barchart .bar .lbl { font-size: 11px; color: #777; margin-top: 5px; }

/* Tabs (user detail) */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid #ccc; margin-bottom: 14px; }
.tabs a {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #eee;
  color: #444;
}
.tabs a.active { background: #fff; font-weight: 600; color: #111; }
.tabs a:hover { text-decoration: none; background: #f7f7f7; }

/* Login */
.login-box { max-width: 360px; margin: 80px auto; }
.login-box input { max-width: 100%; }
.login-box button { width: 100%; margin-top: 14px; }
