.ba-slider {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  cursor: ew-resize;
}

.ba-slider img {
  display: block;
  width: 100%;
}

.ba-slider .handle {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #fc6822;
  cursor: ew-resize;
}

/* Container principal */
#image-api-container {
  font-family: 'Segoe UI', sans-serif;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 auto;
  color: #21334a;
}

/* VIEWS */
.view {
  margin-top: 30px;
}
.hidden {
  display: none !important;
}

/* DROP ZONE */
.upload-drop-zone {
  border: 2px dashed #21334a;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  background: #f9f9f9;
}
.upload-drop-zone:hover {
  border-color: #fc6822;
}
.upload-drop-zone.dragover {
  border-color: #fc6822;
  background: #fff2eb;
}
.upload-text {
  font-size: 1.2em;
  margin-bottom: 10px;
}
.upload-subtext {
  font-size: 0.9em;
  color: #777;
}
.upload-drop-zone input[type="file"] {
  display: none;
}

/* FLEX LAYOUT VIEW-OPTIONS */
#view-options {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 20px;
}

/* PREVIEW DE IMAGENS */
#preview-area {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.preview-card {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
  max-width: 200px;
}
.preview-card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 8px;
}
.res-info {
  font-size: 12px;
  color: #21334a;
  margin-bottom: 10px;
}
.res-new, .format-info, .compress-info {
    font-size: 12px;
    background: #fc6822;
    border-radius: 10px;
    color: #fff;
}
.format-info, .compress-info {
    margin-top: 5px;
}

.file-name {
font-size: 12px;
}

/* Comprimir imagem */

.compress-option {
    margin-top: 15px;
}

.icon-checkbox {
  cursor: pointer;
  user-select: none;
}

.icon-checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.icon {
  font-size: 18px;
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, background-color 0.3s;
}

.icon-checkbox input:checked + .checkbox-content .icon {
  border-color: #ff6600;
  background-color: #ffe5d0;
  animation: pulse 2s infinite;
}

.label-text {
  font-size: 16px;
  color: #333;
  line-height: 1;
}

#compressInfo {
  font-size: 14px;
  color: #555;
  margin: 0 0 10px 34px;
}

/* botao remover no preview */

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fc6822;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  line-height: 0;
  padding: 10px 5px 13px;
  transition: background 0.3s;
}
.remove-btn:hover {
  background: #c95110;
}
.preview-card {
  position: relative;
}

/* Icone */
#drop-zone::before {
  content: "📁";
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

/* OPÇÕES */
.options-panel {
    flex: 1;
    padding: 20px;
    min-width: 500px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.options-panel label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
}
.options-panel input[type="number"],
.options-panel select {
  width: 100%;
  padding: 8px;
  font-size: 1em;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* PROGRESS BAR */
.progress-container {
  width: 100%;
  height: 22px;
  background-color: #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: #fc6822;
  color: #fff;
  font-weight: bold;
  font-size: 0.85em;
  text-align: center;
  line-height: 22px;
  border-radius: 12px 0 0 12px;
  transition: width 0.4s ease;
}

/* TABS */
.tabs {
  display: flex;
  margin: 10px 0;
}
.tabs button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #e6ebf1;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  transition: background 0.3s;
  color: #21334a;
}
.tabs button.active {
  background: #21334a;
  color: white;
}

/* PERCENTUAL */
.percent-selector {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.percent-option {
  flex: 1;
  padding: 12px;
  background: #f0f0f0;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  border: 2px solid transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  color: #21334a;
}
.percent-option:hover {
  background: #e0e0e0;
  transform: scale(1.02);
}
.percent-option.selected {
  background: #fc6822;
  color: white;
  border-color: #d55b19;
  animation: pulse 2s infinite;
}

/* BOTÃO FINAL */
#processImages {
  margin: 20px auto;
  display: block;
  background: #fc6822;
  color: white;
  height: 50px;
  width: 80%;
  border: none;
  border-radius: 8px;
  font-size: 1.3em;
  cursor: pointer;
  transition: background 0.3s;
  animation: pulse 2s infinite;
}
#processImages:hover {
  background: #e55e1e;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(252, 104, 34, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(252, 104, 34, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(252, 104, 34, 0);
    }
}

/* TELA DE SUCESSO */
#view-success {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  background-color: #21334a; /* azul escuro */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(33, 51, 74, 0.5);
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#view-success .icon-check {
  width: 48px;
  height: 48px;
  stroke: #f4631f; /* laranja */
}

#view-success .success-title {
  font-weight: 700;
  margin-bottom: 3rem;
  color: #f4631f; /* laranja */
}

#view-success .button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#view-success .back-btn {
  background: transparent;
  border: none;
  color: #f4631f;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 0;
}

#view-success .back-btn:hover {
  color: #d04e00;
}

#view-success .download-btn {
  background-color: #f4631f;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(244, 99, 31, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  animation: pulse 2s infinite;
}

#view-success .download-btn:hover {
  background-color: #d04e00;
  box-shadow: 0 4px 12px rgba(208, 78, 0, 0.7);
  color: #21334a;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* o restante do estilo que já te passei */
}

.download-icon {
  stroke: white; /* cor da seta, pode ajustar */
  width: 18px;
  height: 18px;
  transition: stroke 0.3s ease;
}

.download-btn:hover .download-icon {
  stroke: #21334a; /* muda a cor da seta no hover */
}

/* ANIMAÇÃO */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  #view-options {
    flex-direction: column;
  }

  .options-panel {
    padding-left: 20px;
    min-width: 370px;
    margin-top: 20px;
  }

  .preview-card {
    display: block;
    max-width: 45%;
    margin: 20px auto;
  }

 #processImages {
    width: 100%;
}
.options-panel {
    min-width: 0;

}
