:root {
  color-scheme: light dark;
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #1f2937, #111827);
}

.container {
  width: min(90vw, 560px);
  background: #ffffff10;
  border: 1px solid #ffffff33;
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 2rem;
  color: #f9fafb;
}

h1 {
  margin-top: 0;
}

.card {
  display: grid;
  gap: 1rem;
}

input,
button {
  font: inherit;
}

input[type="file"] {
  border: 1px solid #9ca3af;
  border-radius: 8px;
  padding: 0.6rem;
  background: #ffffff;
  color: #111827;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.status {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-weight: 600;
}

.preview {
  margin-top: 1rem;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid #ffffff44;
  background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}
