html {
  font-size: 15px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1f2937;
  background:
    radial-gradient(circle at top left, rgba(255, 214, 102, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.18), transparent 28%),
    linear-gradient(180deg, #fffdf7 0%, #f4f7fb 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 116, 144, 0.18);
}

.app-frame {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  padding: 2rem 1.35rem;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.app-sidebar__brand {
  padding: 0.5rem 0.35rem;
}

.brand-mark {
  color: #f8fafc;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-copy {
  margin: 0.65rem 0 0;
  color: #94a3b8;
  line-height: 1.5;
}

.sidebar-nav {
  display: grid;
  gap: 0.55rem;
}

.sidebar-nav__link {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: #dbeafe;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.08);
  transition: 160ms ease;
}

.sidebar-nav__link:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-nav__link--active {
  color: #082f49;
  background: linear-gradient(135deg, #fbbf24 0%, #fde68a 100%);
  border-color: transparent;
  font-weight: 700;
}

.sidebar-meta {
  margin-top: auto;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.5;
}

.app-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  padding: 2rem 2.25rem 0.5rem;
}

.app-topbar__title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #0f172a;
}

.app-main {
  padding: 0 2.25rem 2.5rem;
}

.app-shell__footer {
  padding: 0 2.25rem 2rem;
  color: #64748b;
}

.hero-panel {
  margin-bottom: 1.5rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 250, 235, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 20px 60px rgba(148, 163, 184, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.hero-panel--narrow {
  align-items: flex-start;
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.02;
  color: #0f172a;
}

.hero-panel__copy {
  margin: 0.9rem 0 0;
  max-width: 48rem;
  color: #475569;
}

.eyebrow {
  margin-bottom: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #0f766e;
  font-size: 0.8rem;
}

.content-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 16px 40px rgba(148, 163, 184, 0.12);
}

.content-card + .content-card {
  margin-top: 1.25rem;
}

.content-card--form {
  max-width: 64rem;
}

.content-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.content-card__header h2 {
  margin: 0;
}

.content-card__header p {
  margin: 0.25rem 0 0;
  color: #64748b;
}

.members-table th,
.admin-table th {
  color: #475569;
  font-weight: 700;
  border-bottom-color: rgba(148, 163, 184, 0.25);
}

.members-table td,
.admin-table td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-chip--active {
  color: #166534;
  background: rgba(187, 247, 208, 0.7);
}

.status-chip--inactive {
  color: #9a3412;
  background: rgba(254, 215, 170, 0.7);
}

.empty-state {
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 0.5rem;
}

.form-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form-actions {
  margin-top: 2rem;
}

.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
  border: none;
}

.btn-accent:hover {
  color: #fff;
  background: linear-gradient(135deg, #115e59 0%, #164e63 100%);
}

@media (max-width: 991.98px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .app-topbar,
  .app-main,
  .app-shell__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-panel {
    padding: 1.4rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .content-card {
    padding: 1.1rem;
  }
}
