/* File Upload Styling */
.form-managed-file {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.form-managed-file:hover {
  border-color: #667eea;
  background: #f1f5f9;
}

.form-managed-file.has-files {
  border-style: solid;
  border-color: #10b981;
  background: #f0fdf4;
}

/* File Input Styling */
.form-file {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-file:hover {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-file:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Upload Button */
.form-managed-file input[type="submit"][value="Upload"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.form-managed-file input[type="submit"][value="Upload"]:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Remove Button */
.form-managed-file input[type="submit"][value="Remove selected"] {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.form-managed-file input[type="submit"][value="Remove selected"]:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* File List Styling */
.form-managed-file .js-form-type-checkbox {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.form-managed-file .js-form-type-checkbox:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.form-managed-file .form-checkbox {
  margin-right: 1rem;
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.form-managed-file .file {
  display: flex;
  align-items: center;
  flex: 1;
}

.form-managed-file .file a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.5rem;
}

.form-managed-file .file a:hover {
  text-decoration: underline;
}

.form-managed-file .file span:last-child {
  color: #6b7280;
  font-size: 0.875rem;
  margin-left: auto;
}

/* Description Styling */
.form-managed-file + .description {
  margin-top: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  text-align: center;
}

/* Upload Area Enhancement */

.form-managed-file.has-files::before {
  content: "✅";
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .form-managed-file {
    padding: 1rem;
  }

  .form-managed-file .js-form-type-checkbox {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
