@media (max-width: 600px) {
  .preview-grid {
    flex-direction: column;
    align-items: center;
  }

  .resize-controls input {
    width: 100%;
    margin: 5px 0;
  }

  .options, .buttons {
    flex-direction: column;
  }
}

:root {
  --bg: #121212;
  --text: #fff;
  --accent: #3a3a3a;
  --button: #444;
  --hover: #666;
}

body.light {
  --bg: #f1f1f1;
  --text: #111;
  --accent: #fff;
  --button: #ddd;
  --hover: #ccc;
}

body {
  background-color: var(--bg);
  color: var(--text);
}

button, .drop-area {
  background-color: var(--button);
  color: var(--text);
}




body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background-color: #1f1f1f;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  text-align: center;
  width: 100%;
  max-width: 600px;
}

h1 {
  margin-bottom: 20px;
}

.small-blue {
  color: #1e40af; /* Tailwind's blue-700 */
}

.drop-area {
  border: 2px dashed #555;
  border-radius: 12px;
  padding: 20px 20px;
  cursor: pointer;
  margin-bottom: 20px;
  background-color: #2a2a2a;
  transition: background 0.3s;
}

.drop-area.highlight {
  border: 2px dashed var(--hover);
  background-color: rgba(255,255,255,0.05);
}



.drop-area:hover {
  background-color: #333;
}

.preview {
  margin: 20px 0;
}

.preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: 10px;
  margin-top: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.options {
  margin: 20px 0;
}

select {
  padding: 10px;
  border-radius: 8px;
  background: #333;
  color: #fff;
  border: 1px solid #444;
  margin: 10px 0;
}

.quality-control {
  margin-top: 10px;
}

input[type="range"] {
  width: 80%;
  margin: 5px 0;
}

#qualityValue {
  display: inline-block;
  margin-left: 10px;
  font-weight: bold;
}

button {
  padding: 12px 20px;
  font-size: 16px;
  background-color: #009688;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #00796b;
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}

.preview-grid img {
  width: 150px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

button.secondary {
  background-color: #444;
  color: #eee;
  margin-left: 10px;
}

button.secondary:hover {
  background-color: #666;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
}

.footer {
  background-color: #121212;
  color: #aaa;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

