/* common/scss/upload.scss */
.neo-upload-container {
  width: 100%;
  margin-bottom: 1.5rem;
  font-family: Inter, sans-serif;
  box-sizing: border-box;
}
.neo-upload-container * {
  box-sizing: border-box;
}

.neo-upload-dropzone {
  width: 100%;
  padding: 2rem;
  border: 4px dashed #284B99;
  background: #f4f6f8;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.neo-upload-dropzone:hover {
  background: #eef2f7;
  border-color: #FF9869;
}
.neo-upload-dropzone.dragover {
  background: #eef2f7;
  border-color: #FF9869;
}
.neo-upload-dropzone.dragover::after {
  content: "Release file to drop... \a(Please wait, browser may pause to process large files)";
  white-space: pre-wrap;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 75, 153, 0.95);
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: none;
  text-align: center;
  padding: 1rem;
  line-height: 1.5;
}
.neo-upload-dropzone.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #999;
}

.neo-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.neo-upload-input:disabled {
  cursor: not-allowed;
}

.neo-upload-message {
  color: #284B99;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  pointer-events: none;
}

.neo-upload-submessage {
  color: #666;
  font-size: 0.9rem;
  pointer-events: none;
}

.neo-upload-progress-container {
  margin-top: 1rem;
  display: none;
}
.neo-upload-progress-container.visible {
  display: block;
}

.neo-upload-progress-bar {
  width: 100%;
  height: 20px;
  background: #e0e0e0;
  border: 2px solid #284B99;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.neo-upload-progress-fill {
  height: 100%;
  background: #FF9869;
  width: 0%;
  transition: width 0.1s linear;
}

.neo-upload-status-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: #284B99;
  text-align: center;
}

.neo-upload-error {
  color: #CC8272;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  display: none;
}
.neo-upload-error.visible {
  display: block;
}

.neo-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.neo-upload-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.neo-upload-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #284B99;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: neo-spin 1s linear infinite;
}

@keyframes neo-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.neo-upload-title-link {
  color: #284B99;
  text-decoration: none;
}
.neo-upload-title-link:hover {
  color: #284B99;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: #FF9869;
}
