@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #7c3aed;
  color: #fff;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: #161b22;
  border-right: 1px solid #30363d;
  display: flex;
  flex-direction: column;
  padding: 24px 14px;
  overflow-y: auto;
  z-index: 100;
}
.sidebar__logo {
  padding: 0 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}
.sidebar__logo h1 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar__subtitle {
  display: block;
  font-size: 10px;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 4px;
}
.sidebar__progress {
  padding: 0 10px;
  margin-bottom: 16px;
}
.sidebar__progress-bar {
  height: 4px;
  background: #21262d;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.sidebar__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 99px;
  width: 0%;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.sidebar__progress-fill.complete {
  background: linear-gradient(90deg, #3fb950, #75d081);
}
.sidebar__progress-text {
  font-size: 11px;
  color: #6e7681;
}
.sidebar__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 6px;
  margin-bottom: 20px;
}
.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #8b949e;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.sidebar__link:hover {
  background: #21262d;
  color: #e6edf3;
}
.sidebar__link--done .sidebar__link-count {
  background: rgba(63, 185, 80, 0.12);
  color: #3fb950;
}
.sidebar__link--issues .sidebar__link-count {
  background: rgba(248, 81, 73, 0.12);
  color: #f85149;
}
.sidebar__link--active {
  background: #21262d;
  border-color: #30363d;
  color: #e6edf3;
}
.sidebar__link-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
}
.sidebar__link-label {
  flex: 1;
}
.sidebar__link-count {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #21262d;
  color: #6e7681;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s ease;
}
.sidebar__actions {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 16px;
}

.stat {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat__count {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stat--pass {
  background: rgba(63, 185, 80, 0.12);
  color: #3fb950;
}
.stat--fail {
  background: rgba(248, 81, 73, 0.12);
  color: #f85149;
}
.stat--warning {
  background: rgba(210, 153, 34, 0.12);
  color: #d29922;
}
.stat--manual {
  background: rgba(88, 166, 255, 0.12);
  color: #58a6ff;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--primary {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}
.btn--primary:hover:not(:disabled) {
  background: #8f56f0;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}
.btn--export {
  background: #21262d;
  color: #8b949e;
  width: 100%;
  border: 1px solid #30363d;
}
.btn--export:hover {
  background: #1c2129;
  color: #e6edf3;
}
.btn__loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.btn__loader.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.content {
  margin-left: 280px;
  flex: 1;
  padding: 32px 40px;
  max-width: 960px;
}
.content__header {
  margin-bottom: 24px;
}
.content__header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 0%, #8b949e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.content__header p {
  color: #8b949e;
  font-size: 14px;
  margin-top: 6px;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}
.search-bar__input {
  flex: 1;
  padding: 13px 18px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #e6edf3;
  transition: all 0.2s ease;
}
.search-bar__input::placeholder {
  color: #6e7681;
}
.search-bar__input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}
.search-bar__btn {
  padding: 13px 32px;
  font-size: 15px;
}

.results__summary {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #6e7681;
}
.results__summary span {
  background: #161b22;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid #30363d;
}

.empty-state, .error-state {
  text-align: center;
  padding: 80px 20px;
  color: #8b949e;
}
.empty-state__icon, .error-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.empty-state h3, .error-state h3 {
  font-size: 18px;
  color: #e6edf3;
  margin-bottom: 8px;
}
.empty-state p, .error-state p {
  font-size: 14px;
  line-height: 1.7;
}

.loading {
  text-align: center;
  padding: 80px 20px;
  color: #8b949e;
}
.loading p {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.7;
}
.loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #21262d;
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
.loading__status {
  margin-top: 20px;
  font-size: 13px;
  color: #a78bfa;
  font-weight: 500;
}
.loading__status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #161b22;
  border: 1px solid #30363d;
  padding: 8px 16px;
  border-radius: 99px;
}

.checklist {
  background: #161b22;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  border: 1px solid #30363d;
  transition: border-color 0.2s ease;
}
.checklist:hover {
  border-color: #3b434b;
}
.checklist__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.checklist__icon {
  font-size: 18px;
}
.checklist__title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #e6edf3;
}
.checklist__badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: #21262d;
  color: #6e7681;
  font-variant-numeric: tabular-nums;
}
.checklist__badge--pass {
  background: rgba(63, 185, 80, 0.12);
  color: #3fb950;
}
.checklist__badge--fail {
  background: rgba(248, 81, 73, 0.12);
  color: #f85149;
}
.checklist__items {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background 0.2s ease;
}
.checklist__item:hover {
  background: #1c2129;
}
.checklist__item--pass {
  border-left-color: #3fb950;
}
.checklist__item--fail {
  border-left-color: #f85149;
  background: rgba(248, 81, 73, 0.12);
}
.checklist__item--warning {
  border-left-color: #d29922;
  background: rgba(210, 153, 34, 0.12);
}
.checklist__item--manual {
  border-left-color: #58a6ff;
}
.checklist__item--skip {
  border-left-color: #484f58;
  opacity: 0.4;
}
.checklist__item--checked {
  opacity: 0.4;
}
.checklist__status {
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.checklist__info {
  flex: 1;
  min-width: 0;
}
.checklist__text {
  font-size: 13px;
  font-weight: 500;
  display: block;
  line-height: 1.5;
  color: #e6edf3;
}
.checklist__detail {
  font-size: 11px;
  color: #6e7681;
  display: block;
  margin-top: 2px;
  line-height: 1.4;
}
.checklist__tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist__tag--auto {
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}
.checklist__tag--manual {
  background: rgba(210, 153, 34, 0.12);
  color: #d29922;
}
.checklist__manual-check {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-top: 2px;
}
.checklist__manual-check input {
  display: none;
}
.checklist__manual-check input:checked ~ .checklist__checkmark {
  background: #3fb950;
  border-color: #3fb950;
}
.checklist__manual-check input:checked ~ .checklist__checkmark::after {
  opacity: 1;
  transform: scale(1);
}
.checklist__checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #30363d;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.checklist__checkmark::after {
  content: "\2713";
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

/* Expandable dropdown */
.checklist__item--expandable {
  cursor: pointer;
  user-select: none;
}
.checklist__chevron {
  font-size: 12px;
  color: #6e7681;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-top: 3px;
}
.checklist__item--open .checklist__chevron {
  transform: rotate(180deg);
}
.checklist__dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  opacity: 0;
}
.checklist__item--open + .checklist__dropdown {
  max-height: 300px;
  opacity: 1;
}
.checklist__tips {
  list-style: none;
  margin: 0 0 8px 0;
  padding: 10px 12px 10px 44px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.checklist__tips li {
  font-size: 12px;
  color: #8b949e;
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
}
.checklist__tips li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: #6e7681;
}

/* Sitemap banner */
.sitemap-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.sitemap-banner--found {
  background: rgba(63, 185, 80, 0.08);
  border: 1px solid rgba(63, 185, 80, 0.2);
  color: #3fb950;
}
.sitemap-banner--missing {
  background: rgba(248, 81, 73, 0.08);
  border: 1px solid rgba(248, 81, 73, 0.2);
  color: #f85149;
}
.sitemap-banner__icon {
  flex-shrink: 0;
}
.sitemap-banner__info {
  flex: 1;
}
.sitemap-banner__info code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: #161b22;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #30363d;
}
.tabs__btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #8b949e;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tabs__btn:hover {
  color: #e6edf3;
}
.tabs__btn--active {
  background: #21262d;
  color: #e6edf3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Tab content */
.tab-content--hidden {
  display: none;
}

/* Page navigation */
.page-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
}
.page-nav__btn {
  width: 36px;
  height: 36px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background: #21262d;
  color: #8b949e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.page-nav__btn:hover:not(:disabled) {
  background: #30363d;
  color: #e6edf3;
  border-color: #484f58;
}
.page-nav__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.page-nav__info {
  flex: 1;
  text-align: center;
}
.page-nav__counter {
  display: block;
  font-size: 12px;
  color: #6e7681;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.page-nav__path {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Page card */
.page-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.page-card__header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #e6edf3;
  margin-bottom: 4px;
}
.page-card__url {
  font-size: 12px;
  color: #58a6ff;
  text-decoration: none;
  word-break: break-all;
}
.page-card__url:hover {
  text-decoration: underline;
}
.page-card__score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-card__score-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.page-card__score-ring--pass {
  background: rgba(63, 185, 80, 0.12);
  color: #3fb950;
  border: 2px solid rgba(63, 185, 80, 0.3);
}
.page-card__score-ring--warning {
  background: rgba(210, 153, 34, 0.12);
  color: #d29922;
  border: 2px solid rgba(210, 153, 34, 0.3);
}
.page-card__score-ring--fail {
  background: rgba(248, 81, 73, 0.12);
  color: #f85149;
  border: 2px solid rgba(248, 81, 73, 0.3);
}
.page-card__score-text {
  font-size: 13px;
  color: #8b949e;
}
.page-card__score-text strong {
  color: #e6edf3;
}

/* Page list */
.page-list {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  overflow: hidden;
}
.page-list__header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #6e7681;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #30363d;
}
.page-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13px;
}
.page-list__item:last-child {
  border-bottom: none;
}
.page-list__item:hover {
  background: #1c2129;
}
.page-list__item--active {
  background: #21262d;
  border-left: 3px solid #7c3aed;
}
.page-list__score {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.page-list__score--pass { background: rgba(63, 185, 80, 0.12); color: #3fb950; }
.page-list__score--warning { background: rgba(210, 153, 34, 0.12); color: #d29922; }
.page-list__score--fail { background: rgba(248, 81, 73, 0.12); color: #f85149; }
.page-list__path {
  flex: 1;
  color: #e6edf3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-list__counts {
  font-size: 11px;
  color: #6e7681;
  font-variant-numeric: tabular-nums;
}

.content::before {
  content: "";
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

@media print {
  .sidebar, .search-bar, .btn, .checklist__tag, .checklist__manual-check {
    display: none;
  }

  .content {
    margin-left: 0;
    padding: 20px;
    max-width: 100%;
  }

  .content::before {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .checklist {
    border: 1px solid #ddd;
    box-shadow: none;
    break-inside: avoid;
  }

  .checklist__text {
    color: #000;
  }
}
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    position: relative;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid #30363d;
  }

  .content {
    margin-left: 0;
    padding: 20px 16px;
  }
  .content::before {
    display: none;
  }

  .app {
    flex-direction: column;
  }

  .search-bar {
    flex-direction: column;
  }
}