:root {
  color-scheme: dark;
  --bg: #0b1120;
  --panel: rgba(17, 24, 39, 0.88);
  --panel-2: rgba(15, 23, 42, 0.9);
  --line: rgba(255, 255, 255, 0.2);
  --text: #eef2ff;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-2: #38bdf8;
  --shadow: 0 26px 80px rgba(2, 6, 23, 0.46);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(56, 189, 248, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 88%, rgba(34, 197, 94, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  padding: 18px;
}

.sidebar,
.stage {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 36px);
  overflow: hidden;
}

.brand {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
label {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.92;
}

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

.controls {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
}

label {
  display: grid;
  gap: 8px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  outline: none;
  padding: 0 12px;
}

select option {
  background: #111827;
  color: var(--text);
}

input:focus,
select:focus {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

button {
  min-height: 44px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(14, 165, 233, 0.9));
  color: #03131a;
  cursor: pointer;
  font-weight: 900;
}

button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.endpoint-card {
  display: grid;
  gap: 8px;
  margin: auto 16px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.28);
}

code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.stage {
  min-height: calc(100vh - 36px);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.stage-top {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.breed-list,
.gallery {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  scrollbar-color: rgba(56, 189, 248, 0.72) rgba(15, 23, 42, 0.7);
  scrollbar-width: thin;
}

.breed-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.breed-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  padding: 12px;
}

.breed-name {
  font-weight: 900;
  text-transform: capitalize;
}

.breed-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-content: start;
  gap: 14px;
}

.dog-card {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  overflow: hidden;
}

.dog-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  background: #020617;
}

.dog-card__bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.dog-card__bar a {
  color: var(--accent-2);
  font-weight: 900;
  text-decoration: none;
}

.empty-state {
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 24px;
  text-align: center;
}

.empty-state__title {
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 900;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .sidebar,
  .stage {
    min-height: auto;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .dog-card img {
    height: 180px;
  }
}
