:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #15233b;
  --muted: #66758f;
  --primary: #4b3fe4;
  --primary-dark: #372cc0;
  --line: #dde4f0;
  --success: #e9fff3;
  --success-text: #1a7b45;
  --error: #fff1f1;
  --error-text: #b42318;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef3ff 0%, var(--bg) 100%);
  color: var(--text);
}
.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 20px;
}
.admin-shell { justify-content: flex-start; }
.card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(34, 51, 84, 0.08);
  border: 1px solid rgba(221, 228, 240, 0.75);
}
.hero-card {
  padding: 28px;
  background: linear-gradient(135deg, #1d3c89 0%, #4b3fe4 100%);
  color: #fff;
}
.hero-card.compact { padding: 22px 28px; }
.form-card, .table-card { padding: 28px; }
.badge {
  display: inline-block;
  padding: 8px 12px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 14px;
}
.success-badge {
  background: var(--success);
  color: var(--success-text);
  border-color: #b8efcf;
}
h1, h2, p { margin-top: 0; }
.lead {
  margin-bottom: 0;
  color: inherit;
  opacity: 0.92;
}
.meta-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.meta-grid.single { grid-template-columns: 1fr; }
.meta-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
}
.form-card .meta-item {
  background: #f7f9fd;
  border: 1px solid var(--line);
}
.meta-item span {
  display: block;
  font-size: 12px;
  color: inherit;
  opacity: 0.72;
  margin-bottom: 6px;
}
.meta-item strong { font-size: 16px; }
.stack-form { display: grid; gap: 14px; }
label { font-weight: 700; font-size: 14px; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  font-size: 16px;
  outline: none;
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(75,63,228,0.12);
}
.btn-primary, .session-btn {
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary:hover, .session-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.full-width { width: 100%; }
.session-choice-form { margin-top: 18px; }
.session-btn {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}

.warning-note{
  margin-top:10px;
  font-size:14px;
  color:#b00020;
  text-align:center;
}

.session-btn small { opacity: 0.92; }
.session-btn:disabled {
  background: #bcc5d6;
  cursor: not-allowed;
  transform: none;
}
.alert {
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.alert.error {
  background: var(--error);
  color: var(--error-text);
  border: 1px solid #f0b2b2;
}
.alert.success {
  background: var(--success);
  color: var(--success-text);
  border: 1px solid #b8efcf;
}
.muted-link {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
}
.muted-link a, .logout-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.centered { text-align: center; }
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}
th { background: #f7f9fd; }
@media (max-width: 640px) {
  .page-shell { padding: 16px; }
  .hero-card, .form-card, .table-card { padding: 20px; }
  .session-btn { flex-direction: column; align-items: flex-start; gap: 6px; }
}
