:root {
  color-scheme: dark;
  color: #e9edf5;
  background: #10131a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(img/wallpaper.png) center/cover no-repeat;
  filter: blur(8px);
  z-index: -1;
}

.logo {
  position: fixed;
  bottom: 20px;
  left: 4%;
  width: 200px;
  height: auto;
  z-index: 2;
}

.page-container {
  width: min(60vw, 100%);
  height: min(40vh, 100%);
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.upload-row {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.upload-card,
.output-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(27, 27, 27, 0.85);
}
.upload-card h2,
.output-card h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}
.dropzone {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 2px dashed rgba(255,255,255,1);
  border-radius: 16px;
  color: #d0d7e3;
  text-align: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.dropzone input {
  display: none;
}
.dropzone:hover {
  border-color: #be9114;
  background: rgba(125, 153, 255, 0.06);
}
.dropzone.dragover {
  border-color: #be9114;
  background: rgba(125, 153, 255, 0.12);
}
.preview {
  margin-top: 18px;
  min-height: 180px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
}
.preview img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
button {
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 1rem;
  cursor: pointer;
  background: #be9114;
  color: white;
  transition: transform 0.2s ease, background 0.2s ease;
}
button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #be9114;
  color:#0f141d;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button.secondary {
  background: rgba(26, 26, 26, 0.85);
  color: #e9edf5;
}
.output-preview {
  min-height: 280px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  padding: 18px;
}
.output-preview img {
  max-width: 100%;
  height: auto;
  display: block;
}
.output-preview span {
  color: #8f99b5;
}
@media (max-width: 540px) {
  body {
    padding: 16px;
  }
}
