/* ============================================================
   ADMIN DASHBOARD — Global Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 256px;
  --topbar-h:  64px;

  --color-brand:    #6366f1;
  --color-brand-dk: #4f46e5;

  --color-sidebar-bg:     #ffffff;
  --color-sidebar-border: #e5e7eb;
  --color-sidebar-text:   #374151;
  --color-sidebar-muted:  #9ca3af;
  --color-nav-hover:      #f3f4f6;
  --color-nav-active-bg:  #eff1fe;
  --color-nav-active-txt: #4f46e5;

  --color-topbar-bg:     #ffffff;
  --color-topbar-border: #e5e7eb;

  --color-body-bg:  #f8fafc;
  --color-text:     #111827;
  --color-muted:    #6b7280;
  --color-border:   #e5e7eb;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-body {
  font-family: var(--font);
  background: var(--color-body-bg);
  color: var(--color-text);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--color-sidebar-bg);
  border-right: 1px solid var(--color-sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  overflow-y: auto;
  z-index: 100;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-sidebar-border);
}

.sidebar__brand-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--color-text);
  letter-spacing: -.2px;
}

.sidebar__nav {
  padding: 16px 12px 24px;
  flex: 1;
}

.sidebar__nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-sidebar-muted);
  padding: 0 8px 10px;
}

/* ── Nav Section ── */

.nav-section {
  margin-bottom: 2px;
}

.nav-section__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-sidebar-text);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  transition: background .15s;
}

.nav-section__header:hover {
  background: var(--color-nav-hover);
}

.nav-section__icon {
  display: flex;
  align-items: center;
  color: var(--color-sidebar-muted);
  flex-shrink: 0;
}

.nav-section__title { flex: 1; }

.nav-section__chevron {
  color: var(--color-sidebar-muted);
  transition: transform .2s ease;
  display: flex;
  align-items: center;
}

/* Sub-items (collapsed by default) */

.nav-section__items {
  display: none;
  flex-direction: column;
  padding: 2px 0 4px 36px;
  gap: 1px;
}

.nav-section--open .nav-section__items { display: flex; }
.nav-section--open .nav-section__chevron { transform: rotate(180deg); }
.nav-section--open .nav-section__icon { color: var(--color-brand); }

.nav-item {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--color-sidebar-text);
  text-decoration: none;
  font-size: 13px;
  transition: background .12s, color .12s;
}

.nav-item:hover {
  background: var(--color-nav-hover);
  color: var(--color-text);
}

.nav-item--active {
  background: var(--color-nav-active-bg);
  color: var(--color-nav-active-txt);
  font-weight: 500;
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */

.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
  height: var(--topbar-h);
  background: var(--color-topbar-bg);
  border-bottom: 1px solid var(--color-topbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar__page-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__icon-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-nav-hover);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-muted);
  transition: background .15s;
}

.topbar__icon-btn:hover { background: var(--color-border); }

.topbar__badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

.topbar__divider {
  width: 1px;
  height: 28px;
  background: var(--color-border);
}

/* User dropdown trigger */

.topbar__user { position: relative; }

.topbar__user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
  border: none;
  background: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
}

.topbar__user-btn:hover { background: var(--color-nav-hover); }

.topbar__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.topbar__avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.topbar__user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.topbar__user-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.2;
}

.topbar__user-role {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.2;
}

.topbar__chevron { color: var(--color-muted); }

/* Dropdown menu */

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 200;
  overflow: hidden;
}

.dropdown-menu--open { display: block; }

.dropdown-item {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: background .12s;
}

.dropdown-item:hover { background: var(--color-nav-hover); }
.dropdown-item--danger { color: #ef4444; }
.dropdown-item--danger:hover { background: #fef2f2; }

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 4px 0;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */

.admin-content {
  padding: 28px;
  flex: 1;
}

/* Flash messages */

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13.5px;
}

.flash--notice { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash--alert  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard { display: flex; flex-direction: column; gap: 24px; }

/* Stat cards */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon--indigo  { background: #eff1fe; color: #6366f1; }
.stat-card__icon--emerald { background: #ecfdf5; color: #10b981; }
.stat-card__icon--amber   { background: #fffbeb; color: #f59e0b; }
.stat-card__icon--sky     { background: #e0f2fe; color: #0284c7; }

.stat-card__label {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-card__value {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

/* Panel */

.panel {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
}

.panel__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.panel__link {
  font-size: 13px;
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 500;
}

.panel__link:hover { text-decoration: underline; }

.panel__body { padding: 0; }
.panel__body--table { overflow-x: auto; }

/* Data table */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead tr {
  background: #f9fafb;
}

.data-table th {
  padding: 11px 20px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.data-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #f9fafb; }

.data-table__mono  { font-family: monospace; color: var(--color-muted); }
.data-table__amount { font-weight: 500; }
.data-table__date  { color: var(--color-muted); white-space: nowrap; }

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.badge--green  { background: #dcfce7; color: #15803d; }
.badge--yellow { background: #fef9c3; color: #a16207; }
.badge--red    { background: #fee2e2; color: #b91c1c; }
.badge--gray   { background: #f3f4f6; color: #374151; }
.badge--indigo { background: #eff1fe; color: #4f46e5; }
.badge--purple { background: #f3e8ff; color: #7c3aed; }
.badge--blue   { background: #dbeafe; color: #1d4ed8; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.page { display: flex; flex-direction: column; gap: 16px; }

.page__count {
  font-size: 13px;
  color: var(--color-muted);
}

/* ============================================================
   FILTERS BAR
   ============================================================ */

.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filters-bar__search {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.filters-bar__search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  display: flex;
  pointer-events: none;
}

.filters-bar__input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--color-text);
  background: #fff;
  outline: none;
  transition: border-color .15s;
}

.filters-bar__input:focus { border-color: var(--color-brand); }

.filters-bar__selects {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filters-bar__select {
  padding: 8px 28px 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--color-text);
  background: #fff;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .15s;
}

.filters-bar__select:focus { border-color: var(--color-brand); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
}

.btn--primary:hover { background: var(--color-brand-dk); border-color: var(--color-brand-dk); }

.btn--ghost {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--ghost:hover { background: var(--color-nav-hover); }

.btn--danger {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}
.btn--danger:hover { background: #fca5a5; }

.btn--sm { padding: 5px 10px; font-size: 12.5px; }

/* ============================================================
   USER CELL
   ============================================================ */

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-cell__avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.user-cell__info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.user-cell__name  { font-weight: 500; font-size: 13.5px; color: var(--color-text); }
.user-cell__email { font-size: 12px; color: var(--color-muted); }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  color: var(--color-muted);
}

.empty-state p { font-size: 14px; }

/* ============================================================
   WIDE TABLE
   ============================================================ */

.data-table--wide { table-layout: auto; }

/* ============================================================
   STACKED USER CELL
   ============================================================ */

.user-cell--stacked { align-items: flex-start; }

.user-cell__avatar--lg {
  width: 42px;
  height: 42px;
  margin-top: 2px;
  flex-shrink: 0;
}

.user-cell__meta {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.5;
}

.user-cell__meta--muted { color: #b0b7c3; }

.user-cell__link {
  font-size: 12px;
  color: var(--color-brand);
  text-decoration: none;
  line-height: 1.5;
}

.user-cell__link:hover { text-decoration: underline; }

/* ============================================================
   METRIC CELL (visits)
   ============================================================ */

.metric-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.metric-cell__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.metric-cell__label {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ============================================================
   WALLET CELL
   ============================================================ */

.wallet-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-cell__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wallet-cell__row--total {
  border-top: 1px solid var(--color-border);
  padding-top: 4px;
  margin-top: 2px;
}

.wallet-cell__label {
  font-size: 11.5px;
  color: var(--color-muted);
  flex-shrink: 0;
}

.wallet-cell__amount {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.wallet-cell__amount--green  { color: #15803d; }
.wallet-cell__amount--red    { color: #b91c1c; }
.wallet-cell__amount--bold   { font-weight: 700; color: var(--color-text); }

/* ============================================================
   DETAILS CELL
   ============================================================ */

.details-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.details-cell__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.details-cell__label {
  font-size: 11.5px;
  color: var(--color-muted);
  width: 52px;
  flex-shrink: 0;
}

.details-cell__value {
  font-size: 12.5px;
  color: var(--color-text);
  font-weight: 500;
}

/* ============================================================
   ACTION CELL
   ============================================================ */

.action-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.btn--pay {
  background: #ecfdf5;
  color: #15803d;
  border-color: #bbf7d0;
}

.btn--pay:hover {
  background: #dcfce7;
  border-color: #86efac;
}

/* ============================================================
   UTILITY
   ============================================================ */

.text-muted { color: var(--color-muted); font-size: 12.5px; }

/* ============================================================
   OFFERING CELLS
   ============================================================ */

.offering-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offering-title__name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text);
}

.offering-title__desc {
  font-size: 12px;
  color: var(--color-muted);
}

.price-tag {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
}

.metric-cell--left  { align-items: flex-start; }
.metric-cell__value--sm    { font-size: 15px; }
.metric-cell__value--green { color: #15803d; }

/* ============================================================
   TRANSACTION CELLS
   ============================================================ */

.txn-amount {
  font-size: 14px;
  font-weight: 600;
}
.txn-amount--credit { color: #15803d; }
.txn-amount--debit  { color: #b91c1c; }

.txn-desc {
  font-size: 13px;
  color: var(--color-text);
  max-width: 200px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   WALLET CELLS
   ============================================================ */

.wallet-balance {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-muted);
}

.wallet-balance--positive {
  color: #15803d;
}

.text-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--color-text);
}

.text-date {
  display: block;
  font-size: 13px;
  color: var(--color-text);
}

.text-time {
  display: block;
  font-size: 11.5px;
  color: var(--color-muted);
}

/* ============================================================
   MONTHLY HERO
   ============================================================ */

.monthly-hero {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 24px;
  color: #fff;
}
.monthly-hero__label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.monthly-hero__amount {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.monthly-hero__sub {
  font-size: 13px;
  opacity: 0.7;
}
.monthly-hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.monthly-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.monthly-hero__stat-label {
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.monthly-hero__stat-value {
  font-size: 22px;
  font-weight: 700;
}
.monthly-hero__stat-value--pos { color: #6ee7b7; }
.monthly-hero__stat-value--neg { color: #fca5a5; }
.monthly-hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

.charts-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.charts-row__pie,
.charts-row__bar { margin-bottom: 0; }

@media (max-width: 900px) {
  .charts-row { grid-template-columns: 1fr; }
}

/* ============================================================
   SYSTEM SETTINGS
   ============================================================ */

.settings-section__header {
  padding: 16px 24px 0;
}
.settings-section__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 16px 24px 24px;
}
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.settings-field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}
.settings-field__input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--color-text);
  background: var(--color-panel-bg);
  outline: none;
  transition: border-color 0.15s;
}
.settings-field__input:focus { border-color: var(--color-brand); }

.settings-field__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.settings-toggle__input { display: none; }
.settings-toggle__label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.settings-toggle__track {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--color-border);
  position: relative;
  transition: background 0.2s;
}
.settings-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}
.settings-toggle__input:checked + .settings-toggle__label .settings-toggle__track {
  background: var(--color-brand);
}
.settings-toggle__input:checked + .settings-toggle__label .settings-toggle__track::after {
  transform: translateX(18px);
}
.settings-toggle__text {
  font-size: 13px;
  color: var(--color-muted);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.settings-actions__meta {
  font-size: 12.5px;
  color: var(--color-muted);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
}

.pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-panel-bg);
  border: 1px solid var(--color-border);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.pagination__btn:hover {
  background: var(--color-hover);
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.pagination__btn--active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
  cursor: default;
}
.pagination__btn--active:hover {
  background: var(--color-brand);
  color: #fff;
}
.pagination__btn--disabled {
  color: var(--color-muted);
  cursor: default;
  background: var(--color-body-bg);
}
.pagination__btn--disabled:hover {
  background: var(--color-body-bg);
  border-color: var(--color-border);
  color: var(--color-muted);
}
.pagination__ellipsis {
  font-size: 13px;
  color: var(--color-muted);
  padding: 0 4px;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-body {
  font-family: var(--font);
  background: var(--color-body-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.login-card__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.login-card__brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.login-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.login-card__subtitle {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow .15s, border-color .15s;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.google-btn:hover {
  box-shadow: var(--shadow-sm);
  border-color: #c5c5c5;
}

.login-card__note {
  font-size: 12px;
  color: var(--color-muted);
  margin: 0;
}

/* Sign-out button styled as a dropdown item */
.dropdown-item--btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
}
