body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

h1 {
  margin-bottom: 20px;
}

/* GLASS EFFECT */
.glass {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* UPLOAD */
.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  padding: 30px;
  cursor: pointer;
  transition: 0.3s;
}

.upload-area:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ACTIONS (botões + select) */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.actions button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  color: white;
  transition: 0.3s;
}

.actions button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* DROPDOWN (NOVO MELHORADO) */
.actions select {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  outline: none;
  transition: 0.3s;
}

.actions select:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* PREVIEW */
.preview {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 20px;
}

.preview div {
  flex: 1;
}

.preview img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  animation: fadeIn 0.4s ease-in-out;
}

/* LOADING */
.loader {
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

/* DOWNLOAD */
.download button {
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #10b981, #22c55e);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.download button:hover {
  transform: scale(1.05);
}

/* PROGRESS BAR */
.progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-top: 15px;
  overflow: hidden;
}

.progress-bar {
  height: 10px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: width 0.3s;
}

/* STATS */
.stats {
  margin-top: 20px;
  text-align: left;
}

.stats p {
  margin: 5px 0;
}

/* CONVERSION INFO */
#conversionInfo {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.8;
}

/* ANIMAÇÕES */
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}