:root {
  --ink: #172026;
  --muted: #66707a;
  --line: #dce3e8;
  --surface: #ffffff;
  --page: #f4f7f8;
  --teal: #0f766e;
  --teal-soft: #dff6f1;
  --coral: #d95f43;
  --amber: #f2b84b;
  --blue: #3657a8;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 360px),
    var(--page);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: var(--teal);
}

.app-navbar {
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
  backdrop-filter: blur(12px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-size: 0.9rem;
}

.nav-link {
  color: #34414a;
  font-weight: 500;
}

.page-shell {
  padding-top: 28px;
  padding-bottom: 56px;
}

.footer {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.btn {
  border-radius: 7px;
  font-weight: 600;
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-outline-dark {
  border-color: #28343c;
  color: #28343c;
}

.dashboard-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 42px;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(16, 29, 35, 0.88), rgba(16, 29, 35, 0.58), rgba(16, 29, 35, 0.18)),
    url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero-copy {
  max-width: 620px;
}

.hero-copy h1,
.auth-visual h1 {
  margin: 0;
  line-height: 1.05;
  font-weight: 800;
}

.dashboard-hero h1 {
  max-width: 720px;
  font-size: 3rem;
}

.hero-text {
  max-width: 560px;
  margin: 16px 0 24px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-hero .eyebrow,
.auth-visual .eyebrow {
  color: #ffd88c;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.stat-tile,
.panel,
.auth-panel {
  background: var(--surface);
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(22, 38, 46, 0.07);
}

.stat-tile {
  padding: 20px;
}

.stat-tile span,
.mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 2.25rem;
  line-height: 1;
}

.section-heading,
.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0 20px;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-weight: 800;
}

.page-title h1 {
  font-size: 2.15rem;
}

.title-actions,
.form-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(23, 32, 38, 0.09);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(22, 38, 46, 0.08);
}

.event-card-image {
  width: 100%;
  height: 185px;
  display: block;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(217, 95, 67, 0.24)),
    #dfe8e7;
}

.event-card-body {
  padding: 18px;
}

.event-card h2,
.event-card h3 {
  margin: 12px 0 8px;
  font-size: 1.18rem;
  font-weight: 800;
}

.event-card p {
  color: var(--muted);
}

.event-card-topline,
.event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-meta {
  margin: 14px 0;
  color: #3f4c54;
  font-size: 0.9rem;
}

.event-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #075148;
  background: var(--teal-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.status-pill.muted {
  color: #6d4a0d;
  background: #fff0ca;
}

.capacity {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 240px) auto auto;
  gap: 10px;
  margin-bottom: 22px;
}

.form-control,
.form-select {
  border-radius: 7px;
  border-color: #cfd8de;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  min-height: calc(100vh - 170px);
}

.auth-visual {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 42px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(23, 32, 38, 0.08), rgba(23, 32, 38, 0.86)),
    url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.register-visual {
  background:
    linear-gradient(180deg, rgba(23, 32, 38, 0.06), rgba(23, 32, 38, 0.84)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.auth-visual p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.9);
}

.auth-panel {
  align-self: center;
  padding: 30px;
}

.auth-panel h2,
.panel h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 16px;
}

.panel {
  padding: 24px;
}

.form-panel {
  max-width: 900px;
}

.detail-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 8px;
  background: #dfe8e7;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-overlay {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background: rgba(15, 24, 29, 0.72);
}

.detail-overlay h2 {
  margin: 10px 0 4px;
  font-weight: 800;
}

.detail-overlay p {
  margin: 0;
}

.detail-grid,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 20px;
}

.lead-text {
  color: #34414a;
  font-size: 1.05rem;
}

.detail-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 18px;
  margin: 18px 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 700;
}

.detail-list dd {
  margin: 0;
}

.participant-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.participant-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.participant-list small {
  color: var(--muted);
}

.table-panel {
  padding: 8px 18px;
}

.table {
  margin: 0;
}

.table thead th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.segmented-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented-filter a {
  padding: 8px 12px;
  border-radius: 6px;
  color: #35414a;
  text-decoration: none;
  font-weight: 700;
}

.segmented-filter a.active {
  color: #fff;
  background: var(--teal);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mini-stats div {
  padding: 16px;
  border-radius: 8px;
  background: #f3f7f7;
}

.mini-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 2rem;
}

.empty-state {
  width: 100%;
  padding: 42px;
  text-align: center;
  border: 1px dashed #b7c5ca;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
}

.empty-state h2 {
  font-size: 1.4rem;
  font-weight: 800;
}

.delete-panel {
  max-width: 740px;
  border-color: rgba(220, 53, 69, 0.2);
}

@media (max-width: 992px) {
  .stats-grid,
  .auth-layout,
  .detail-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 380px;
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding-top: 18px;
  }

  .dashboard-hero,
  .auth-visual {
    padding: 28px;
  }

  .dashboard-hero h1 {
    font-size: 2.1rem;
  }

  .section-heading,
  .page-title {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    height: 280px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .card-actions .btn,
  .card-actions form {
    flex: 1 1 auto;
  }
}
