:root {
  --ce-indigo: #1b1238;
  --ce-plum: #5b286e;
  --ce-gold: #c9a24b;
  --ce-gold-light: #ead28f;
  --ce-cream: #fbf8f1;
  --ce-soft: #f2eee5;
  --ce-ink: #1d1a22;
  --ce-muted: #6b6474;
  --sidebar-width: 292px;
  --bs-body-font-family: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  color: var(--ce-ink);
  background: var(--ce-soft);
}

h1,
h2,
h3,
.brand span {
  font-family: "Fraunces", Georgia, serif;
}

.eyebrow {
  color: var(--ce-gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-ce-gold {
  --bs-btn-bg: var(--ce-gold);
  --bs-btn-border-color: var(--ce-gold);
  --bs-btn-color: #171124;
  --bs-btn-hover-bg: var(--ce-gold-light);
  --bs-btn-hover-border-color: var(--ce-gold-light);
  --bs-btn-hover-color: #171124;
  --bs-btn-font-weight: 800;
}

.btn-ce-dark {
  --bs-btn-bg: var(--ce-indigo);
  --bs-btn-border-color: var(--ce-indigo);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--ce-plum);
  --bs-btn-hover-border-color: var(--ce-plum);
  --bs-btn-hover-color: #fff;
}

.dash-lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid rgba(201, 162, 75, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.topbar .dash-lang-switch {
  background: rgba(27, 18, 56, 0.04);
}

.dash-lang-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ce-indigo);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.72rem;
}

.dash-lang-switch button.active {
  background: var(--ce-gold);
  color: #171124;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(120deg, rgba(27, 18, 56, 0.94), rgba(91, 40, 110, 0.86)),
    url("https://embaixada-de-cristo.obiuba.com/assets/web/leadership-team.jpg") center / cover;
}

.login-panel {
  width: min(100%, 480px);
  padding: 2.25rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.login-logo {
  width: 132px;
  height: 76px;
  object-fit: contain;
  display: block;
  margin-bottom: 1.25rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.2rem;
  background: var(--ce-indigo);
  color: #fff;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.brand img {
  width: 76px;
  height: 44px;
  object-fit: contain;
  padding: 0.25rem;
  border-radius: 999px;
  background: #fff;
}

.brand small {
  display: block;
  color: var(--ce-gold-light);
  font-family: var(--bs-body-font-family);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-menu button {
  width: 100%;
  border: 1px solid rgba(234, 210, 143, 0.28);
  border-radius: 0.55rem;
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.035);
  font-weight: 700;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-menu button:hover,
.nav-menu button.active {
  color: #fff;
  border-color: rgba(234, 210, 143, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.main-shell {
  min-width: 0;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(27, 18, 56, 0.08);
}

.content {
  padding: 1.5rem;
}

.panel {
  padding: 1.25rem;
  border: 1px solid rgba(27, 18, 56, 0.08);
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 16px 38px rgba(27, 18, 56, 0.08);
}

.dashboard-hero {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 0.9rem;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(245, 218, 134, 0.9) 0%, rgba(201, 162, 75, 0.88) 42%, rgba(78, 54, 24, 0.96) 100%),
    url("https://embaixada-de-cristo.obiuba.com/assets/web/hero-service.jpg") center / cover;
  box-shadow: 0 22px 54px rgba(78, 54, 24, 0.22);
  overflow: hidden;
}

.dashboard-hero h1 {
  max-width: 720px;
  margin: 0.7rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.dashboard-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.dashboard-hero .eyebrow {
  color: #fff6d2;
}

.dashboard-hero-card {
  min-width: 190px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0.8rem;
  background: rgba(10, 30, 24, 0.36);
  backdrop-filter: blur(12px);
}

.dashboard-hero-card span,
.dashboard-hero-card small {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.dashboard-hero-card strong {
  display: block;
  margin: 0.35rem 0;
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

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

.stat-card {
  padding: 1.25rem;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ce-indigo), var(--ce-plum));
  box-shadow: 0 14px 34px rgba(27, 18, 56, 0.16);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  font-family: "Fraunces", Georgia, serif;
}

.table {
  vertical-align: middle;
}

.table th {
  color: var(--ce-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.status-new {
  background: #fff3cd;
  color: #8a6100;
}

.status-active {
  background: #d1e7dd;
  color: #0f5132;
}

.status-danger {
  background: #f8d7da;
  color: #842029;
}

.progress {
  height: 0.7rem;
  background: #e9e2d6;
}

.progress-bar {
  background: var(--ce-gold);
}

.search-input {
  max-width: 280px;
}

.form-control,
.form-select {
  border-color: rgba(27, 18, 56, 0.16);
  border-radius: 0.55rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ce-gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 75, 0.22);
}

@media (max-width: 991.98px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(84vw, var(--sidebar-width));
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-input {
    max-width: none;
  }

  .dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .login-shell,
  .content,
  .topbar {
    padding: 1rem;
  }

  .login-panel,
  .panel {
    padding: 1rem;
  }
}
