body {
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.container {
  background: #fff;
  padding: 32px 24px 50px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  width: 100vw;
  min-height: 100vh;
  text-align: center;
}

h2 {
  margin-bottom: 24px;
}

.desc {
  padding-bottom: 1rem;
  text-align: left;
}

.content-container {
  display: flex;
  gap: 1.5rem;
}

.upload-container {
  flex: 1;
}

.examples {
  color: #83838b;
  font-size: 12px;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  align-items: end;
  padding-top: 1rem;
}

.img-example {
  width: 5rem;
  border-radius: 6px;
  cursor: pointer;
}

#attn {
  width: 630px;
  height: 630px;
  background-color: #b3b3b3;
  cursor: pointer;
}

.drop-zone {
  border: 2px dashed #aaa;
  border-radius: 7px;
  padding: 25px;
  margin-bottom: 12px;
  background: #fafbff;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  height: 18rem;
}
.drop-zone.dragover {
  border-color: #f97316;
  background: #eaf1ff;
}
.drop-zone button {
  padding: 5px 14px;
  background: #f97316;
  border: none;
  color: #fff;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 4px;
  transition: background 0.2s;
}
.drop-zone button:hover {
  background: #ea580c;
}

.custom-file-upload {
    cursor: pointer;
}

.preview-wrapper {
  display: inline-block;
  position: relative;
}

.close-preview-btn {
  position: absolute;
  top: 0;
  right: -10px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #575757;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  z-index: 2;
  border: 2px solid #fff;
  opacity: 0.88;
  transition: background 0.2s, opacity 0.2s;
}
.close-preview-btn:hover {
  background: black;
  opacity: 1;
}

#preview img, .drop-zone img {
  max-width: 256px;
  max-height: 256px;
  width: auto;
  height: auto;
  margin: 12px 0;
  border-radius: 6px;
  box-shadow: 0 0 3px #ccc;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

button[type="submit"] {
  padding: 8px 18px;
  background: #f97316;
  border: none;
  color: #fff;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 12px;
}

button[type="submit"]:hover {
  background: #ea580c;
}

button[type="submit"]:disabled {
  background: #aaa;
  cursor: not-allowed;
}

#result {
  margin-top: 2.5rem;
  font-weight: bold;
  color: #333;
  padding: 1.3rem 0;
  border: solid 3px #f97316;
  border-radius: 6px;
}