.divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: #ccc;
}

.divider-text {
  padding: 0 20px;
  color: #666;
  font-size: 14px;
  text-transform: uppercase;
}

#dropzone {
  padding: 1em;
  transition: all 0.3s ease;
}

#dropzone.is-loading {
  background-color: var(--primary-dark) !important;
}
#dropzone-loading-text {
  color: white;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-wrap: pretty;
}

#dropzone.drag-over {
  border-color: #4caf50;
  background-color: #f0f8f0;
}

#loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #343a40;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-analysis-loader {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  margin: 15px auto;
  position: relative;
  color: white;
  box-sizing: border-box;
  animation: animloader 1s linear infinite alternate;
}

.dropzone-home-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 2rem;
}

.loading-bar {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loading-bar-track {
  width: 100%;
  height: 10px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  border: 0.5px solid #e5e7eb;
}

.loading-bar-fill {
  height: 100%;
  background: #25cb68;
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Pourcentage */
.loading-bar span {
  font-size: 18px;
  color: white;
  text-align: center;
}

@keyframes animloader {
  0% {
    box-shadow:
      -38px -12px,
      -14px 0,
      14px 0,
      38px 0;
  }
  33% {
    box-shadow:
      -38px 0px,
      -14px -12px,
      14px 0,
      38px 0;
  }
  66% {
    box-shadow:
      -38px 0px,
      -14px 0,
      14px -12px,
      38px 0;
  }
  100% {
    box-shadow:
      -38px 0,
      -14px 0,
      14px 0,
      38px -12px;
  }
}
