/* Container for the custom progress bar */
.custom-upload-progress-wrapper {
  margin-top: 10px;
  background-color: #e0e0e0;
  border-radius: 4px;
  height: 14px;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

/* Animated bar indicator */
.custom-upload-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #34a853;
  background-image: linear-gradient(
    45deg, 
    rgba(255, 255, 255, 0.2) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.2) 75%, 
    transparent 75%, 
    transparent
  );
  background-size: 30px 30px;
  animation: progress-stripe 1s linear infinite;
  transition: width 0.3s ease;
}

@keyframes progress-stripe {
  0% { background-position: 0 0; }
  100% { background-position: 30px 0; }
}

/* Highlight container when file finishes uploading */
.webform-submission-form .js-form-managed-file .form-managed-file__main {
  background-color: #e6f4ea;
  border: 2px solid #34a853;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

/* Add an explicit "FILE READY" label */
.webform-submission-form .js-form-managed-file .file::before {
  content: "✓ FILE READY: ";
  font-weight: bold;
  color: #1e8e3e;
}

/* Gray out submit button while uploading */
.webform-submission-form input[type="submit"]:disabled,
.webform-submission-form button[type="submit"]:disabled,
.webform-submission-form [type="submit"].is-disabled {
  background-color: #cccccc !important;
  border-color: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 0.65;
}