* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, 'Noto Sans', sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.hero {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.eyebrow {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

.subtitle {
  margin: 0 0 16px;
  color: #cbd5e1;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  flex-wrap: wrap;
}

.file-input {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1f2937;
  color: #e2e8f0;
  border: 1px dashed #475569;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.file-input input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-input:hover {
  background: #111827;
}

button.primary {
  border: none;
  background: #22c55e;
  color: #0f172a;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

button.primary:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(34, 197, 94, 0.35);
}

.status {
  margin: 4px 0 2px;
  font-weight: 600;
}

.progress {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.card-body {
  padding: 10px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
      45deg,
      #f8fafc,
      #f8fafc 10px,
      #f1f5f9 10px,
      #f1f5f9 20px
    )
    #f8fafc;
}

img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

.footer {
  text-align: center;
  margin: 20px 0 10px;
  color: #475569;
  font-size: 14px;
}

.footer a {
  color: #2563eb;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
