:root {
  --brand: #0b5ed7;
  --bg: #f4f6f8;
  --card-bg: #ffffff;
  --text: #1c2530;
  --muted: #667085;
  --border: #dfe3e8;
  --danger: #b3261e;
  --success: #1a7f37;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

header.topbar {
  background: #14213d;
  color: #fff;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
header.topbar .brand { display: flex; align-items: center; gap: 0.6rem; }
header.topbar .brand img { height: 22px; width: 22px; display: block; }
header.topbar .actions { display: flex; gap: 0.75rem; align-items: center; font-size: 0.9rem; }

.signin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.signin-card > * { max-width: 100%; }
.signin-logo { height: 192px; width: 192px; margin-bottom: 1rem; display: block; }

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
}
.btn.secondary { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: default; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; }

a.link-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.link-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
a.link-card .label { font-weight: 600; margin-bottom: 0.25rem; }
a.link-card .desc { font-size: 0.85rem; color: var(--muted); }

.link-card-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.link-card-wrap .link-card { flex: 1; }
.activation-request-btn { font-size: 0.8rem; padding: 0.4rem 0.75rem; align-self: flex-start; }

.announcement {
  background: #eaf2ff;
  border: 1px solid #c7ddff;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
}
.announcement h3 { margin: 0 0 0.25rem; font-size: 1rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge.active { background: #e6f4ea; color: var(--success); }
.badge.inactive { background: #f3f4f6; color: var(--muted); }
.badge.admin { background: #e8ecff; color: #3538cd; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tabs button {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 0.5rem 1rem; cursor: pointer; font-size: 0.9rem;
}
.tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }

form.inline-form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 480px; }
form.inline-form label { font-size: 0.85rem; color: var(--muted); }
form.inline-form input, form.inline-form textarea {
  padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem;
}
.error-text { color: var(--danger); font-size: 0.85rem; }
.muted { color: var(--muted); font-size: 0.85rem; }
[hidden] { display: none !important; }

footer.site-footer {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  text-align: center;
}
footer.site-footer .footer-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.9rem;
}
footer.site-footer .footer-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site-footer a { color: var(--brand); text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
