/* Reset básico */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

html, body {
  height: 100%;
  background-color: #f9fafb;
  color: #111827;
}

body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

h4 {
  margin-top: .5rem;
  text-align: center;
  color: #374151;
  font-weight: 400;
  max-width: 600px;
}

/* Container de upload */
#container {
  position: relative;
  width: 720px;
  height: 480px;
  max-width: 100%;
  max-height: 100%;
  border: 2px dashed #d1d5db;
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 1.5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: border-color 0.3s ease;
}

#container:hover {
  border-color: #2563eb;
}

/* Botão Upload */
#upload-button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 12px 24px;
  background-color: #2563eb;
  color: white;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#upload-button:hover {
  background-color: #1e40af;
}

#upload {
  display: none;
}

/* SVG do botão */
svg {
  pointer-events: none;
}

#example {
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

#example:hover {
  color: #2563eb;
}

canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}

#status {
  min-height: 18px;
  margin: 10px 0;
  color: #111827;
  font-weight: 500;
}

/* Botão Download */
#download-button {
  margin-top: 20px;
  padding: 12px 28px;
  background-color: #22c55e;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: none;
  font-size: 16px;
  transition: background-color 0.3s, transform 0.2s;
}

#download-button:hover {
  background-color: #16a34a;
  transform: translateY(-2px);
}

#download-button:active {
  transform: translateY(0);
}

/* Footer */
footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

footer a {
  color: #2563eb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
