:root {
  --tlc-blue: #1e3c72;
  --tlc-blue-2: #2a5298;
  --tlc-text: #1f2937;
  --tlc-muted: #475569;
  --tlc-soft: #f8fafc;
  --tlc-border: #dbe4ef;
  --tlc-error: #b91c1c;
  --tlc-success: #166534;
  --tlc-warning: #92400e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #eef3f9;
  color: var(--tlc-text);
  font-family: Arial, Helvetica, sans-serif;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

.hero {
  background: linear-gradient(135deg, var(--tlc-blue) 0%, var(--tlc-blue-2) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 48px 28px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  margin-bottom: 24px;
}

.admin-hero { margin-bottom: 18px; }

.hero-badge,
.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .35px;
  margin-bottom: 16px;
}

.eyebrow {
  background: #eef6ff;
  color: var(--tlc-blue);
  margin: 0 0 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  color: #fff;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

.auth-status {
  margin-top: 16px !important;
  font-size: 14px !important;
  color: rgba(255,255,255,.86) !important;
}

.section-card {
  background: #fff;
  border: 1px solid var(--tlc-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
}

.section-heading {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 24px;
}

.section-heading h2 {
  color: var(--tlc-blue);
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.section-heading p:not(.eyebrow) {
  color: var(--tlc-muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.opportunity-card,
.admin-item,
.submission-item {
  background: var(--tlc-soft);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.opportunity-card h3,
.admin-item h3,
.submission-item h3 {
  color: var(--tlc-blue);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.opportunity-card p,
.admin-item p,
.submission-item p {
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.meta-list {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-size: 14px;
  color: #334155;
}

.meta-list strong { color: var(--tlc-blue); }

.requirement-list,
.link-list {
  margin: 10px 0 14px;
  padding-left: 22px;
  color: #334155;
  line-height: 1.55;
  font-size: 14.5px;
}

.link-list a { color: var(--tlc-blue); font-weight: 800; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #e0ecff;
  color: var(--tlc-blue);
}

.badge.inactive { background: #e5e7eb; color: #64748b; }
.badge.approved { background: #dcfce7; color: #166534; }
.badge.warning { background: #fef3c7; color: #92400e; }
.badge.error { background: #fee2e2; color: #991b1b; }

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.btn-primary { background: var(--tlc-blue); color: #fff; box-shadow: 0 8px 18px rgba(30,60,114,.22); }
.btn-secondary { background: #f1f5f9; color: var(--tlc-blue); border: 1px solid #dbe4ef; }
.btn-light { background: #fff; color: var(--tlc-blue); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.24); }
.btn-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
  font-size: 14px;
}

label span { line-height: 1.35; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 13px;
  color: #1f2937;
  background: #fff;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(42, 82, 152, .18);
  border-color: var(--tlc-blue-2);
}

.wide { grid-column: 1 / -1; }

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  background: #eef6ff;
  border: 1px solid #cfe3ff;
  border-radius: 16px;
  padding: 14px;
}

.checkbox-row input { width: 18px; height: 18px; margin-top: 1px; }

.form-actions,
.inline-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-actions { justify-content: flex-start; }
.inline-actions { margin-top: 12px; }
.toolbar { justify-content: space-between; margin-bottom: 18px; }
.toolbar label { min-width: 240px; }

.message {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-weight: 800;
  line-height: 1.5;
  background: #eef6ff;
  color: var(--tlc-blue);
  border: 1px solid #cfe3ff;
}

.message.success { background: #dcfce7; color: var(--tlc-success); border-color: #bbf7d0; }
.message.error { background: #fee2e2; color: var(--tlc-error); border-color: #fecaca; }
.message.warning { background: #fef3c7; color: var(--tlc-warning); border-color: #fde68a; }

.loading {
  color: var(--tlc-muted);
  font-weight: 800;
  text-align: center;
  padding: 20px;
}

.hidden { display: none !important; }

.stack-list {
  display: grid;
  gap: 14px;
}

.admin-item-header,
.submission-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.submission-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.checklist-grid label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 9px;
  font-weight: 700;
}

.checklist-grid input { width: 17px; height: 17px; margin-top: 1px; }

.admin-note-box {
  margin-top: 12px;
}

.small-text {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .app-shell { padding: 20px 12px 44px; }
  .hero { padding: 36px 20px; }
  .section-card { padding: 22px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; }
  .toolbar label, .toolbar .btn { width: 100%; }
}
