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

:root {
  --ap-bg: #0f172a;
  --ap-surface: #0b1224;
  --ap-card: #0f1a33;
  --ap-text: #e5e7eb;
  --ap-muted: #9aa3b2;
  --ap-accent: #22d3ee;
  --ap-ok: #22c55e;
  --ap-open: #ef4444;
  --ap-ring: rgba(34, 211, 238, 0.25);
  --ap-border: #1f2a44;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--ap-text);
  background: radial-gradient(
      1000px 600px at 10% -10%,
      rgba(34, 211, 238, 0.09),
      transparent 60%
    ),
    radial-gradient(
      800px 500px at 90% 0%,
      rgba(59, 130, 246, 0.08),
      transparent 60%
    ),
    var(--ap-bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.5;
}

.ap-body {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
}

.ap-header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(120%) blur(8px);
  background: linear-gradient(
    180deg,
    rgba(11, 18, 36, 0.85),
    rgba(11, 18, 36, 0.6)
  );
  border-bottom: 1px solid var(--ap-border);
  z-index: 10;
}
.ap-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ap-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ap-text);
}

.ap-stats {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ap-border);
  background: rgba(15, 26, 51, 0.7);
  color: var(--ap-text);
  font-size: 12px;
  font-weight: 600;
}
.ap-badge--ok {
  border-color: rgba(34, 197, 94, 0.35);
  color: #d1fae5;
  background: rgba(34, 197, 94, 0.12);
}
.ap-badge--open {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.12);
}

.ap-progress {
  height: 4px;
  width: 100%;
  border-top: 1px solid var(--ap-border);
  background: linear-gradient(
    180deg,
    rgba(15, 26, 51, 0.6),
    rgba(15, 26, 51, 0)
  );
}
.ap-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ap-accent), #60a5fa);
  box-shadow: 0 0 0 2px var(--ap-ring);
}

.ap-main {
  width: 96%;
  margin: 24px auto;
  padding: 0 0 40px;
}

.ap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 680px) {
  .ap-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .ap-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.ap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 5px;
  background: linear-gradient(
    180deg,
    rgba(15, 26, 51, 0.85),
    rgba(11, 18, 36, 0.85)
  );
  border: 1px solid var(--ap-border);
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 120ms ease, border-color 120ms ease,
    box-shadow 120ms ease;
}
.ap-item:hover {
  transform: translateY(-1px);
  border-color: #2b3b63;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25), 0 0 0 2px var(--ap-ring) inset;
}

.ap-status {
  width: 25px;
  height: 25px;
  min-width: 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  color: #08110f;
}
.ap-status.is-done {
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.95),
    rgba(16, 185, 129, 0.95)
  );
  color: #03120a;
}
.ap-status.is-open {
  background: linear-gradient(
    180deg,
    rgba(239, 68, 68, 0.95),
    rgba(220, 38, 38, 0.95)
  );
  color: #160404;
}

.ap-status__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ap-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    Liberation Mono, monospace;
  font-size: 11px;
  color: var(--ap-text);
  word-break: break-all;
  background: rgba(34, 211, 238, 0.06);
  border: 1px dashed rgba(34, 211, 238, 0.25);
  padding: 3px 4px;
  border-radius: 8px;
}

.ap-item:focus-within {
  outline: none;
  box-shadow: 0 0 0 2px var(--ap-ring) inset;
  border-color: var(--ap-accent);
}
