.UploadFileComponent_uploadContainer__2A1b0 {
  width: 100%;
  height: 100%;
}

.UploadFileComponent_uploadDropzone__olWo8 {
  border: 3px dashed;
  border-radius: 0.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.UploadFileComponent_uploadDropzone__olWo8:focus {
  outline: none;
}

/* Enhanced focus indicators for accessibility */
.UploadFileComponent_uploadDropzone__olWo8:focus-visible {
  outline: none;
  border-color: #0078d4 !important;  /* customPalette.colorPaletteBlueBorderActive */
  box-shadow: inset 0 0 0 2px #605e5c !important;  /* customPalette.focusBorder */
}

.UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_uploading__OdJ4P {
  cursor: not-allowed;
}

.UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_disabled__Wun9O {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.UploadFileComponent_uploadContent__kdX_a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  width: 100%;
}

.UploadFileComponent_uploadIconContainer__Mw_1l {
  padding: 0.5rem;
  border-radius: 9999px;
}

.UploadFileComponent_uploadIcon__W32dl {
  width: 1.5rem;
  height: 1.5rem;
}

.UploadFileComponent_uploadTextContainer__sxeWq {
  text-align: center;
}

.UploadFileComponent_loadingContainer__J4BLQ {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.UploadFileComponent_loadingSpinner__cdxOn {
  width: 1rem;
  height: 1rem;
  animation: UploadFileComponent_spin__svFJP 1s linear infinite;
}

@keyframes UploadFileComponent_spin__svFJP {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.UploadFileComponent_uploadTitle__zDV_u {
  font-size: 1.0rem;
  font-weight: 600;
}

.UploadFileComponent_uploadDescription__U284F {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.UploadFileComponent_uploadFormats__2i9Zl {
  font-size: 0.75rem;
}

.UploadFileComponent_errorContainer__6Cm19 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid;
  border-radius: 0.25rem;
}

.UploadFileComponent_errorIcon__DKzT_ {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.UploadFileComponent_hiddenInput__7HA6C {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .UploadFileComponent_loadingSpinner__cdxOn {
    animation: none;
  }
  
  .UploadFileComponent_uploadDropzone__olWo8 {
    transition: none;
  }
}

/* Widget variant styles */
.UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_widgetVariant__k68IU {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.75rem;
  min-height: 60px;
  height: auto;  /* Allows content to expand */
  box-sizing: border-box;  /* Ensure border is included in width calculation */
  width: 100%;
  max-width: 100%;  /* Prevent overflow */
}

.UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_widgetVariant__k68IU .UploadFileComponent_uploadContent__kdX_a {
  align-items: flex-start;
  width: 100%;
  padding: 0;
  gap: 0;
  box-sizing: border-box;
  max-width: 100%;  /* Prevent overflow */
  overflow: hidden;  /* Hide any content that might overflow */
}

.UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_widgetVariant__k68IU .UploadFileComponent_uploadTextContainer__sxeWq {
  text-align: center;  /* Center-aligned for widget */
  width: 100%;
  max-width: 100%;  /* Prevent overflow */
  box-sizing: border-box;
}

.UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_widgetVariant__k68IU .UploadFileComponent_uploadDescription__U284F {
  text-align: center;  /* Center-aligned */
  margin: 0;
  margin-bottom: 0;  /* No spacing below */
  font-size: 0.875rem;
}

.UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_widgetVariant__k68IU .UploadFileComponent_uploadFormats__2i9Zl {
  text-align: center;  /* Center-aligned */
  margin-top: 0;  /* No spacing above */
  margin-bottom: 0;
  padding-top: 0;
  font-size: 0.75rem;
  display: block;
  width: 100%;
}

/* Error container styling for widget variant */
.UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_widgetVariant__k68IU .UploadFileComponent_errorContainer__6Cm19 {
  margin-top: 0.5rem;  /* Spacing above error */
  margin-left: auto;  /* Center horizontally */
  margin-right: auto;  /* Center horizontally */
  width: auto;  /* Auto-size to content */
  max-width: 100%;  /* Prevent overflow */
  justify-content: center;  /* Center-align flex items horizontally */
  text-align: center;  /* Center-aligned for widget */
  box-sizing: border-box;
}

/* Browse link styling for widget variant */
.UploadFileComponent_browseLinkWidget__RERGi {
  color: rgb(37, 99, 235);  /* Blue color */
  text-decoration: underline;  /* Underlined */
  cursor: pointer;
  white-space: nowrap;  /* Keep "click here to browse" on a single line */
}

.UploadFileComponent_browseLinkWidget__RERGi:hover {
  color: rgb(29, 78, 216);  /* Darker blue on hover */
}

.UploadFileComponent_uploadingText__ueec4 {
  font-size: 0.875rem;
  color: rgb(107, 114, 128);
  font-family: 'Segoe UI', sans-serif;
}

@media (prefers-contrast: high) {
  .UploadFileComponent_uploadDropzone__olWo8:focus-visible {
    box-shadow: inset 0 0 0 2px HighlightText;
  }
  
  .UploadFileComponent_uploadDropzone__olWo8.UploadFileComponent_dragging__DcVEM {
    background-color: Highlight;
    color: HighlightText;
    border-color: HighlightText;
  }
  
  .UploadFileComponent_errorContainer__6Cm19 {
    background-color: Canvas;
    border-color: HighlightText;
    color: HighlightText;
  }
} 
