@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0b0f14;
  color: #e5f7ff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* FUNDO ANIMADO */
.background {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, #00ffff20, transparent 40%),
    radial-gradient(circle at 80% 60%, #00bcd420, transparent 40%);
  filter: blur(80px);
  z-index: -1;
}

/* LAYOUT */
.container {
  max-width: 600px;
  margin: auto;
  padding: 60px 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
}

header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #7df9ff;
}

header p {
  color: #9fb3bd;
  margin-top: 10px;
}

/* CARD */
.card {
  background: rgba(15, 20, 27, 0.85);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.08);
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* UPLOAD */
.upload-box {
  border: 2px dashed rgba(0, 255, 255, 0.3);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.upload-box:hover {
  border-color: #7df9ff;
  background: rgba(0, 255, 255, 0.05);
}

.upload-box input {
  opacity: 0;
  position: absolute;
}

.upload-box span {
  color: #7df9ff;
  font-weight: 500;
}

/* OPÇÕES */
.options {
  margin: 25px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.options label {
  background: rgba(255,255,255,0.03);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.3s;
}

.options label:hover {
  border-color: #00ffff60;
}

/* BOTÕES */
.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;

  background: linear-gradient(135deg, #00ffff, #00bcd4);
  color: #001014;
  font-weight: 700;
  letter-spacing: .3px;

  cursor: pointer;
  transition: .25s ease;
  position: relative;
  overflow: hidden;

  box-shadow:
    0 0 0 1px rgba(0,255,255,.2),
    0 0 18px rgba(0,255,255,.25);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(0,255,255,.4),
    0 0 25px rgba(0,255,255,.45),
    0 0 60px rgba(0,255,255,.25);
}

/* brilho animado diagonal */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent);
  opacity: .0;
  transform: translateX(-100%);
}

.btn-primary:hover::before {
  opacity: .4;
  transform: translateX(100%);
  transition: .6s;
}

/* estado desabilitado (ofuscando…) */
.btn-primary:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

.btn-download {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.1);
  color: #7df9ff;
  text-decoration: none;
  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: 0.3s;
}

.btn-download:hover {
  background: rgba(0, 255, 255, 0.2);
}

/* RESULTADO */
.result {
  margin-top: 30px;
}

.info {
  display: flex;
  justify-content: space-between;
  color: #9fb3bd;
  font-size: 14px;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #6c8794;
}

.loading-dots::after {
  content: " ";
  animation: dots 1.2s infinite;
}

@keyframes dots {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
  100% { content: ""; }
}