/* Ruslan AWS Rocket Demo — dark neon theme */
:root {
  --bg: #0a0f1a;
  --bg2: #0d1526;
  --fg: #e6f3ff;
  --muted: #9fb3c8;
  --accent: #6ee7ff;
  --accent2: #b794ff;
  --card: #111a2b;
  --ring: #2a3a57;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 800px at 70% -10%, #1b2340 0%, transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ring);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(8, 12, 22, .9), rgba(8, 12, 22, .6));
  z-index: 10;
}

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  letter-spacing: .3px
}

.logo-mark {
  font-size: 24px
}

.logo-text {
  font-size: 18px
}

.rocket-wrapper {
  height: 28px
}

.rocket {
  height: 28px;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(110, 231, 255, .5));
  transition: transform .6s ease
}

.rocket.launch {
  transform: translateY(-12px)
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
}

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

/* Uploader */
.dropzone {
  border: 1px dashed var(--ring);
  border-radius: 16px;
  padding: 28px;
  background: var(--card);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  transition: border-color .2s ease, background .2s ease;
}

.dropzone.drag {
  border-color: var(--accent);
  background: #0e1b2c
}

.dz-inner {
  text-align: center
}

.muted {
  color: var(--muted);
  margin-top: 6px
}

.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: center
}

/* Buttons */
.btn {
  border: 1px solid var(--ring);
  background: #0f1a2a;
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}

.btn:hover:not([disabled]) {
  background: #15233b;
  transform: scale(1.03)
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #051018;
  font-weight: 700;
}

/* 🐱 Thomas on top — smaller, full view, centered */
.dz-icon,
.cat-icon {
  width: 150px;
  /* neat size */
  height: auto;
  /* keep aspect ratio */
  object-fit: contain;
  /* show whole image, no cropping */
  background: #0e1b2c;
  /* soft backdrop */
  border-radius: 12px;
  padding: 6px;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

/* Preview panel */
.preview {
  border: 1px solid var(--ring);
  border-radius: 16px;
  background: var(--card);
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.preview img {
  max-width: 100%;
  max-height: 380px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

/* hide preview image until source is set */
.preview img:not([src]),
.preview img[src=""] {
  display: none;
}

/* Results */
.results h2 {
  margin: 0 0 10px 0
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.item {
  background: #0f1a2a;
  border: 1px solid var(--ring);
  border-radius: 12px;
  padding: 10px 12px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px
}

.label {
  font-weight: 700
}

.score {
  font-variant-numeric: tabular-nums;
  color: var(--accent)
}

.bar {
  height: 8px;
  background: #0a1322;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid #14213a
}

.fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2))
}

/* Footer */
.app-footer {
  margin: 36px auto;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--ring);
  max-width: 1000px;
  padding-top: 16px;
}

/* Fun state */
.loading .rocket {
  transform: translateY(-18px) rotate(-4deg)
}