@import url("./watchghana.css?v=15");

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(31, 111, 69, 0.12);
  color: var(--green);
  font-weight: 850;
  font-size: 12px;
}

.badge.gold {
  background: rgba(201, 150, 46, 0.16);
  color: var(--gold-dark);
}

.badge.red {
  background: rgba(169, 47, 47, 0.12);
  color: var(--red);
}

.page-hero {
  position: relative;
  padding: 86px 0 62px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(23, 20, 17, 0.92), rgba(79, 50, 31, 0.7), rgba(31, 111, 69, 0.62)),
    url("https://images.unsplash.com/photo-1576487248805-cf45bdbe240c?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 70px);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 253, 248, 0.84);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.5fr)) auto;
  gap: 10px;
  margin-bottom: 22px;
}

.empty-state {
  border: 1px dashed rgba(79, 50, 31, 0.28);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
}

.dashboard-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.dashboard-two-col h3 {
  margin: 0 0 10px;
  color: var(--ink);
}

.traffic-metrics .metric {
  position: relative;
  overflow: hidden;
}

.traffic-metrics .metric::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 150, 46, 0.22), transparent 68%);
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-top: 20px;
}

.analytics-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(246, 236, 220, 0.62)),
    #fffdf8;
  box-shadow: 0 14px 34px rgba(80, 54, 25, 0.08);
}

.analytics-card-wide {
  grid-column: span 1;
}

.analytics-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.analytics-head .eyebrow {
  margin-bottom: 6px;
  color: var(--gold-dark);
}

.analytics-head h3 {
  margin: 0;
  color: var(--ink);
  font: 850 23px / 1.1 var(--font-body);
}

.traffic-chart {
  position: relative;
  min-height: 310px;
}

.line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-grid {
  fill: none;
  stroke: rgba(37, 33, 29, 0.1);
  stroke-width: 1;
}

.chart-area {
  fill: url("#viewsFill");
}

.chart-line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.views {
  stroke: var(--gold);
}

.chart-line.visitors {
  stroke: var(--green);
  stroke-width: 4;
  stroke-dasharray: 8 9;
}

.chart-point circle {
  fill: var(--white);
  stroke: var(--gold);
  stroke-width: 4;
  cursor: pointer;
  transition: r 0.18s ease, filter 0.18s ease;
}

.chart-point:hover circle,
.chart-point:focus circle {
  r: 9;
  filter: drop-shadow(0 8px 10px rgba(201, 150, 46, 0.28));
}

.chart-point:focus {
  outline: 0;
}

.chart-tooltips {
  position: absolute;
  inset: 0 0 54px;
  pointer-events: none;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 126px;
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid rgba(37, 33, 29, 0.12);
  border-radius: 8px;
  background: rgba(23, 20, 17, 0.94);
  color: #fffdf8;
  box-shadow: 0 18px 36px rgba(23, 20, 17, 0.22);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px)) scale(0.96);
  transform-origin: bottom center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.chart-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: rgba(23, 20, 17, 0.94);
  transform: translateX(-50%) rotate(45deg);
}

.chart-tooltip strong {
  color: #f8d87a;
  font-size: 12px;
}

.chart-tooltip span {
  color: rgba(255, 253, 248, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.chart-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 18px)) scale(1);
}

.chart-labels {
  position: relative;
  height: 26px;
  margin: -8px 16px 0;
}

.chart-labels span {
  position: absolute;
  top: 0;
  translate: -50% 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.chart-legend span,
.donut-list div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chart-legend i,
.donut-list i {
  width: 11px;
  height: 11px;
  display: inline-block;
  border-radius: 50%;
}

.chart-legend i.views {
  background: var(--gold);
}

.chart-legend i.visitors {
  background: var(--green);
}

.traffic-hourly {
  height: 270px;
  display: grid;
  grid-template-columns: repeat(24, minmax(5px, 1fr));
  align-items: end;
  gap: 5px;
  padding-top: 12px;
}

.hour-bar {
  height: 100%;
  min-width: 0;
  display: grid;
  align-items: end;
  gap: 7px;
}

.hour-bar i {
  width: 100%;
  min-height: 5px;
  display: block;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--green), rgba(31, 111, 69, 0.28));
  box-shadow: 0 8px 18px rgba(31, 111, 69, 0.16);
  transition: height 0.28s ease, filter 0.2s ease;
}

.hour-bar:hover i {
  filter: brightness(1.08);
}

.hour-bar span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-align: center;
}

.traffic-bars {
  display: grid;
  gap: 13px;
}

.traffic-bars.compact {
  gap: 11px;
}

.traffic-bar {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.traffic-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.traffic-bar-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-bar-head span,
.traffic-bar > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.traffic-bar-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(37, 33, 29, 0.08);
}

.traffic-bar-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #31a56c);
}

.donut-wrap {
  display: grid;
  grid-template-columns: minmax(140px, 170px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.donut {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: var(--ink);
  box-shadow: inset 0 0 0 18px rgba(255, 253, 248, 0.84), 0 14px 34px rgba(80, 54, 25, 0.1);
}

.donut strong,
.donut span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.donut strong {
  font-size: 28px;
  line-height: 1;
}

.donut span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.donut-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.donut-list div {
  justify-content: space-between;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.donut-list span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-list strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .dashboard-two-col {
    grid-template-columns: 1fr;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .traffic-chart,
  .traffic-hourly {
    min-height: 240px;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
  }
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.table td.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 180px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.pagination span {
  color: var(--muted);
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(23, 20, 17, 0.54);
}

.modal-backdrop.is-open {
  display: grid;
}

.modal-panel {
  width: min(880px, 100%);
  max-height: min(86vh, 840px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.modal-head h2 {
  margin: 0;
  font: 800 28px / 1.05 var(--font-display);
}

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

.crud-field {
  display: grid;
  gap: 6px;
}

.crud-field.full {
  grid-column: 1 / -1;
}

.crud-field label {
  color: var(--earth);
  font-size: 13px;
  font-weight: 850;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 4px;
}

.check-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.check-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.check-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.crud-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 8px;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.form-note.error {
  color: var(--red);
}

.field-counter {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-counter.error {
  color: var(--red);
}

.image-builder,
.media-builder {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(201, 150, 46, 0.08);
}

.image-builder-tools {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--cream);
}

.image-card-actions {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.image-card.is-featured {
  outline: 3px solid var(--gold);
}

.image-card small {
  color: var(--muted);
  font-weight: 800;
}

.media-preview img,
.media-preview video,
.view-media {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--cream);
}

.view-grid {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.view-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.view-item strong {
  color: var(--earth);
  text-transform: capitalize;
}

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

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  background:
    linear-gradient(120deg, rgba(23, 20, 17, 0.92), rgba(79, 50, 31, 0.76), rgba(31, 111, 69, 0.68)),
    url("https://images.unsplash.com/photo-1576487248805-cf45bdbe240c?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 68px);
}

.auth-brand-panel h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 86px);
}

.auth-brand-panel p {
  max-width: 620px;
  color: rgba(255, 253, 248, 0.84);
  font-size: 18px;
}

.auth-card-wrap {
  display: grid;
  align-items: center;
  padding: 28px;
  background: rgba(255, 248, 235, 0.94);
  color: var(--ink);
}

.auth-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin: 0 0 10px;
  font: 800 34px / 1.05 var(--font-display);
}

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

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--earth);
  font-weight: 800;
  font-size: 14px;
}

.auth-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.auth-mini-card {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(201, 150, 46, 0.1);
}

.auth-mini-card strong {
  display: block;
  margin-bottom: 6px;
}

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

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand-panel {
    min-height: 360px;
  }

  .admin-toolbar,
  .crud-form,
  .image-builder-tools {
    grid-template-columns: 1fr;
  }
}
