@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

body {
  text-align: center;
  font-family: "Russo One", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1%;
  margin-top: 3%;
  font-style: normal;
  min-height: 100vh;
}

.image-conteiner {
  display: flex;
  justify-content: space-between;
  width: 90%;
  padding: 15px;
}

.footer-image {
  max-height: 3vw;
}

header {
  width: 50%;
  gap: 1%;
  padding: 1% 1%;
  color: rgba(0, 54, 58, 0.87);
  border: 5px solid rgb(16, 139, 155);
  border-radius: 10px;
  background-color: rgb(142, 219, 224);
}

h1 {
  color: rgba(0, 29, 31, 0.87);
  font-size: 5vh;
  margin: 0;
}

header p {
  font-size: 2.5vh;
  margin: 0.5rem 0 0;
}

.upload-wrap {
  margin-top: 3%;
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#dropZone {
  border: 2px dashed #aaa;
  border-radius: 10px;
  padding: 8vh 10vw;
  width: 100%;
  transition: background-color 0.3s, border-color 0.3s;
  cursor: pointer;
  position: relative;
  font-size: 2vh;
  color: #444;
  box-sizing: border-box;
}

#dropZone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

#dropZone.dragover {
  background-color: #eef;
  border-color: aquamarine;
}

.expiry-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2vh;
  color: rgba(0, 54, 58, 0.87);
}

.expiry-wrap select {
  font-family: "Russo One", sans-serif;
  font-size: 1.8vh;
  padding: 0.3rem 0.6rem;
  border: 2px solid rgb(16, 139, 155);
  border-radius: 6px;
  background-color: rgb(220, 244, 245);
  color: rgba(0, 29, 31, 0.87);
  cursor: pointer;
  outline: none;
}

.progress-wrap {
  width: 100%;
  display: none;
}

.progress-bar-bg {
  height: 8px;
  background: #cde;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: rgb(16, 139, 155);
  width: 0%;
  transition: width 0.1s linear;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 1.6vh;
  color: #555;
}

#status {
  margin-top: 1%;
  font-size: 1.8vh;
  font-weight: bold;
  color: rgb(180, 40, 40);
  min-height: 1.5rem;
}

.result {
  width: 100%;
  background-color: rgb(220, 244, 245);
  border: 3px solid rgb(16, 139, 155);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: none;
  box-sizing: border-box;
}

.result-label {
  font-size: 1.8vh;
  color: rgba(0, 54, 58, 0.87);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.result-url {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.result-url input {
  flex: 1;
  font-family: monospace;
  font-size: 1.6vh;
  padding: 0.5rem 0.75rem;
  border: 2px solid rgb(16, 139, 155);
  border-radius: 6px;
  background: #fff;
  color: #222;
  outline: none;
  min-width: 0;
}

.copy-btn {
  font-family: "Russo One", sans-serif;
  font-size: 1.6vh;
  background: rgb(16, 139, 155);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.copy-btn:hover { background: rgba(0, 54, 58, 0.87); }
.copy-btn.copied { background: #5a9; }

.result-meta {
  margin-top: 0.6rem;
  font-size: 1.5vh;
  color: #555;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.new-btn {
  margin-top: 0.8rem;
  font-family: "Russo One", sans-serif;
  font-size: 1.6vh;
  background: none;
  border: 2px solid rgb(16, 139, 155);
  color: rgba(0, 54, 58, 0.87);
  border-radius: 6px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.new-btn:hover { background: rgb(142, 219, 224); }

footer {
  font-size: small;
  flex-direction: column;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px;
  margin-top: auto;
  color: #555;
}