/* pdf-uploader/assets/uploader.css */
/* Drop area styling */
.epdfu-drop-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  margin: 0 auto;
  user-select: none;
  position: relative;
}

/* Hover effects for the drop area */
.epdfu-drop-area.hover {
  border-color: #1e88e5;
  background-color: #a8a8a8; /* Light background color when hovered */
  transform: scale(1.1);       /* Slight zoom effect */
}

/* Hover effects for dashed lines */
.epdfu-drop-area:hover {
  border-color: #2196f3;    /* Change dashed line color on hover */
}

/* Disabled state for drop area (during upload) */
.epdfu-drop-area.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* Status text styles */
#epdfu-upload-status {
  margin-top: 12px;
  font-weight: 600;
  min-height: 1.2em;
  position: relative;
}
#epdfu-upload-status.success {
  color: green;
}
#epdfu-upload-status.error {
  color: red;
}

/* Progress bar styling */
#epdfu-upload-progress {
  width: 100%;
  max-width: 100%;
  height: 8px;
  margin: 12px auto;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background-color: #eee;
  border-radius: 4px;
  overflow: hidden;
}

#epdfu-upload-progress::-webkit-progress-bar {
  background-color: #eee;
}
#epdfu-upload-progress::-webkit-progress-value {
  background-color: #1e88e5;
}
#epdfu-upload-progress::-moz-progress-bar {
  background-color: #1e88e5;
}

/* Hide the progress bar initially */
#epdfu-upload-progress[style*="display:none"] {
  display: none;
}

/* Loader spinner (if ever used) */
#epdfu-upload-status.spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1e88e5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* “View PDF” link styling */
.epdfu-view-link {
  margin-left: 4px;
  color: #1e88e5;
  font-weight: bold;
  text-decoration: none;
}
.epdfu-view-link:hover {
  text-decoration: underline;
}

/* Trash icon delete styling */
.epdfu-delete-icon {
  color: gray;
  cursor: pointer;
  transition: color 0.2s ease;
  margin-left: 12px;
  font-size: 20px;
  vertical-align: middle;
  display: inline-block;
}
.epdfu-delete-icon:hover {
  color: red;
}