/* Image Scaler by SWC • styles.css */
:root {
  --bg: #05060f;
  --card: rgba(255, 255, 255, 0.06);
  --text: #dfe7ff;
  --muted: #a9b5d6;
  --accent1: #6ea8ff;
  --accent2: #c084fc;
  --accent3: #5eead4;
  --glow: 0 0 25px rgba(120, 100, 255, 0.25), 0 0 70px rgba(90, 200, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: radial-gradient(
      1200px 800px at 10% 10%,
      rgba(110, 168, 255, 0.15),
      transparent 40%
    ),
    radial-gradient(
      1000px 700px at 90% 20%,
      rgba(192, 132, 252, 0.14),
      transparent 40%
    ),
    radial-gradient(
      800px 600px at 50% 100%,
      rgba(94, 234, 212, 0.12),
      transparent 40%
    ),
    var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica,
    Arial;
  margin: 0;
}

.bg-orb {
  position: fixed;
  filter: blur(50px);
  opacity: 0.6;
  pointer-events: none;
}
.orb1 {
  top: -120px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #6ea8ff, transparent 60%);
}
.orb2 {
  bottom: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #c084fc, transparent 60%);
}

.app-header {
  text-align: center;
  padding: 32px 16px 8px;
}
h1 {
  margin: 0 0 8px 0;
  font-size: clamp(26px, 3vw, 36px);
  text-shadow: 0 0 12px rgba(192, 132, 252, 0.25);
}
h1 .by {
  color: var(--accent2);
}
.subtitle {
  color: var(--muted);
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 16px auto 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 16px;
}
@media (min-width: 920px) {
  .container {
    grid-template-columns: 1fr 1fr;
  }
  .preview {
    grid-column: 1 / span 2;
  }
}

.panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glow);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 220px;
  outline: 1.5px dashed rgba(255, 255, 255, 0.25);
  outline-offset: -10px;
  transition: outline-color 0.2s ease, transform 0.2s ease;
}
.dropzone.focus {
  outline-color: var(--accent1);
  transform: scale(1.01);
}

.drop-content {
  text-align: center;
}
.drop-content .icon {
  font-size: 42px;
  margin-bottom: 8px;
}
.lead {
  font-size: 18px;
  margin: 8px 0;
}
.hint {
  font-size: 12px;
  color: var(--muted);
}

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

.controls label {
  color: var(--muted);
}
.controls input[type="number"],
.controls select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  width: 120px;
}
.controls input[type="range"] {
  width: 240px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(
    180deg,
    rgba(192, 132, 252, 0.35),
    rgba(110, 168, 255, 0.25)
  );
  color: white;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn.primary {
  background: linear-gradient(
    180deg,
    rgba(110, 168, 255, 0.55),
    rgba(94, 234, 212, 0.45)
  );
}
.btn.secondary {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.08)
  );
}

.preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
canvas {
  width: 100%;
  max-height: 60vh;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.app-footer {
  text-align: center;
  color: var(--muted);
  padding: 16px;
  font-size: 14px;
}
