﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --bg-1: #f6f4ef;
  --bg-2: #f2f8ff;
  --surface: #ffffff;
  --surface-soft: #fbfdff;
  --text: #10243c;
  --muted: #5a6a7b;
  --line: #d3deea;
  --brand: #0f5cc0;
  --brand-strong: #0a4a99;
  --ring: rgba(15, 92, 192, 0.2);
  --shadow: 0 12px 30px rgba(11, 28, 48, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top right, #d9ebff 0%, rgba(217, 235, 255, 0) 42%),
    radial-gradient(circle at top left, #fff1de 0%, rgba(255, 241, 222, 0) 36%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

.page-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 20px 30px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s ease;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(16, 36, 60, 0.08);
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(16, 36, 60, 0.08);
}

#btn-refresh {
  background: linear-gradient(135deg, var(--brand), #2480e3);
  color: #fff;
  border-color: var(--brand);
}

#btn-refresh:hover {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
}

.platform-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fbff;
  margin-bottom: 14px;
}

.platform-btn {
  min-width: 88px;
  padding: 9px 12px;
  border-radius: 9px;
}

.platform-btn.active {
  background: linear-gradient(135deg, #1b74e4, #0f5cc0);
  color: #fff;
  border-color: #1b74e4;
  box-shadow: 0 6px 14px rgba(15, 92, 192, 0.22);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.status-item {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

#search-input {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
}

#search-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

#result-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  min-width: 75px;
  text-align: right;
}

.diff-panel {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.diff-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.diff-columns h3 {
  margin: 0 0 8px;
}

.diff-columns ul {
  margin: 0;
  padding-left: 18px;
}

.diff-columns li {
  margin-bottom: 4px;
  color: #1f3959;
  font-size: 0.92rem;
}

.table-wrap {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: auto;
}

.ads-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.ads-table th,
.ads-table td {
  border-bottom: 1px solid #e4ebf4;
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
  font-size: 0.9rem;
}

.ads-table th {
  background: #f5f9ff;
  color: #29496b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ads-table td a {
  color: var(--brand);
  text-decoration: none;
  word-break: break-all;
}

.ads-table td a:hover {
  text-decoration: underline;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-active {
  background: #e8f8ec;
  color: #1f7b38;
}

.status-inactive {
  background: #fce8e8;
  color: #a32525;
}

.status-unknown {
  background: #eef2f7;
  color: #526274;
}

.muted {
  color: var(--muted) !important;
  font-style: italic;
}

.muted-cell {
  color: var(--muted);
  font-style: italic;
}

.hidden {
  display: none;
}

@media (max-width: 920px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .controls {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 14px 12px 20px;
  }

  #result-count {
    min-width: auto;
  }
}
