/* Modern File Upload Section */
.file-upload-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.file-upload-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: 16px 16px 0 0;
}
/* File Upload Title */
.file-upload-title {
  color: #1e293b;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  margin-bottom: 24px;
  text-align: center;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Better Copies Text */
.better-copies-text {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  color: #991b1b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
  transition: box-shadow 0.3s ease;
}
.better-copies-text:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}
.better-copies-text span {
  color: #dc2626 !important;
  font-weight: 700;
}
/* Better Copies Files List */
.better-copies-needed-list {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  list-style: none;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.better-copies-needed-list li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}
.better-copies-needed-list li::before {
  content: '📄';
  font-size: 18px;
  flex-shrink: 0;
}
.better-copies-needed-list li:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.better-copies-needed-list a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.better-copies-needed-list a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
/* Instructions Text */
.better-copies-instructions-text {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 16px 0;
  color: #92400e;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
  transition: box-shadow 0.3s ease;
}
.better-copies-instructions-text:hover {
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}
.better-copies-instructions-text span {
  display: block;
  line-height: 1.8;
}
/* File Input Container */
.file-input-container {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    margin: 24px 0;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.file-input-container:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}
.file-input-container::before {
    content: '';
    display: block;
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    background-image: url('images/File-upload-icon-min.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}
.file-input-container::after {
    content: 'Choose File(s)';
    display: block;
    color: #64748b;
    font-size: 20px;
    font-weight: 600;
    margin-top: 12px;
    line-height: 1;
}
.file-upload-input {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
/* Files List (Upload Preview) */
.files-list {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  list-style: none;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-height: 300px;
  overflow-y: auto;
}
.files-list:empty {
  display: none;
}
.files-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.files-list li:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.files-list li span:first-child {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 14px;
  flex: 1;
  margin-right: 12px;
}
/* Progress Bar */
.files-list progress {
  flex: 1;
  height: 8px;
  margin: 0 12px;
  border-radius: 4px;
  border: none;
  background-color: #e5e7eb;
  overflow: hidden;
}
.files-list progress::-webkit-progress-bar {
  background-color: #e5e7eb;
  border-radius: 4px;
}
.files-list progress::-webkit-progress-value {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 4px;
  transition: all 0.3s ease;
}
.files-list progress::-moz-progress-bar {
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 4px;
}
/* Remove Button */
.remove-btn {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626 !important;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 12px !important;
  flex-shrink: 0;
}
.remove-btn:hover {
  background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
  color: #ffffff !important;
  border-color: #ef4444;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
/* Upload Buttons */
.files-upload-button,
.upload-and-add-button {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 12px 8px !important;
  min-width: 200px !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2) !important;
  position: relative;
  overflow: hidden;
}
.files-upload-button::before,
.upload-and-add-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}
.files-upload-button:hover::before,
.upload-and-add-button:hover::before {
  left: 100%;
}
.files-upload-button:hover,
.upload-and-add-button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3) !important;
}
.files-upload-button:active,
.upload-and-add-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2) !important;
}
.upload-and-add-button {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.2) !important;
}
.upload-and-add-button:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3) !important;
}
/* Success Message */
.success-p {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center !important;
  margin: 20px 0 !important;
  padding: 16px !important;
  background-color: rgba(220, 252, 231, 0.5) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
}
/* Checkmark Animation */
.checkmark {
  width: 60px !important;
  height: 60px !important;
  margin: 20px auto !important;
  display: block !important;
  filter: drop-shadow(0 4px 12px rgba(34, 197, 94, 0.3));
}
/* Button Container */
.upload-buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}
/* Status Messages */
.status-message {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #7dd3fc;
  border-left: 4px solid #0284c7;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  color: #0c4a6e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
  animation: slideInUp 0.4s ease-out;
}
/* Error Messages */
.error-message {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  border: 1px solid #fca5a5;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  color: #991b1b;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}
/* Responsive Design */
@media (max-width: 768px) {
  .file-upload-section {
    padding: 24px 16px;
    margin: 16px 0;
  }
  
  .file-input-container {
    padding: 32px 16px;
  }
  
  .files-upload-button,
  .upload-and-add-button {
    min-width: 100% !important;
    margin: 8px 0 !important;
  }
  
  .upload-buttons-container {
    flex-direction: column;
  }
  
  .files-list li {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    text-align: center;
  }
  
  .files-list progress {
    margin: 0;
    width: 100%;
  }
  
  .remove-btn {
    margin: 0 !important;
    align-self: center;
  }
}
@media (max-width: 480px) {
  .file-upload-section {
    padding: 20px 12px;
    border-radius: 12px;
  }
  
  .file-upload-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .better-copies-text,
  .better-copies-instructions-text {
    padding: 16px;
    font-size: 13px;
  }
  
  .file-input-container::before {
    font-size: 36px;
  }
}
/* Animation Keyframes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Loading States */
.files-upload-button:disabled,
.upload-and-add-button:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}
.files-upload-button img,
.upload-and-add-button img {
  filter: brightness(0) invert(1);
  margin-right: 8px;
  vertical-align: middle;
}
