/* Upload zone: plain CSS port of the Aceternity UI "File Upload" component. Light theme only. */
.upload-zone {
  --uz-spring: cubic-bezier(.34, 1.45, .64, 1);
  --uz-spring: linear(0, 0.079, 0.26, 0.478, 0.686, 0.857, 0.982, 1.061, 1.099, 1.108, 1.098, 1.078, 1.054, 1.032, 1.014, 1.001, 0.993, 0.989, 0.988, 0.99, 0.992, 0.994, 0.997, 0.999, 1);
  position: relative;
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 40px 20px;
  overflow: hidden;
  border: 1px dashed #e5e5e5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.upload-zone:focus-visible { outline: 2px solid #366f5d; outline-offset: 2px; }
.upload-zone-input { display: none; }
.upload-zone-grid {
  position: absolute;
  inset: 0;
  transform: scale(1.05);
  background-color: #f3f4f6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='82' height='82'%3E%3Crect width='82' height='82' fill='%23f3f4f6'/%3E%3Crect width='40' height='40' rx='2' fill='%23f9fafb'/%3E%3Crect x='41' width='40' height='40' rx='2' fill='%23f9fafb'/%3E%3Crect x='42.5' y='1.5' width='37' height='37' rx='2' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Crect y='41' width='40' height='40' rx='2' fill='%23f9fafb'/%3E%3Crect x='1.5' y='42.5' width='37' height='37' rx='2' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Crect x='41' y='41' width='40' height='40' rx='2' fill='%23f9fafb'/%3E%3C/svg%3E");
  background-size: 82px 82px;
  -webkit-mask-image: radial-gradient(ellipse at center, #fff, transparent);
  mask-image: radial-gradient(ellipse at center, #fff, transparent);
  pointer-events: none;
}
.upload-zone-body { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.upload-zone-title, .upload-zone-hint { position: relative; z-index: 20; margin: 0; font-size: 16px; line-height: 1.5; }
.upload-zone-title { font-weight: 700; color: #404040; }
.upload-zone-hint { margin-top: 8px; font-weight: 400; color: #737373; }
.upload-zone-price { position: relative; z-index: 20; margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: #737373; overflow-wrap: anywhere; }
.upload-zone-price[hidden] { display: none; }
.upload-zone-stage { position: relative; width: 100%; max-width: 36rem; margin: 40px auto 0; }
.upload-zone-card, .upload-zone-outline {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 8rem;
  height: 8rem;
  margin: 16px auto 0;
  border-radius: 6px;
}
.upload-zone-card {
  background: #fff;
  box-shadow: 0 10px 50px rgba(0, 0, 0, .1);
  color: #525252;
  transition: transform .3s ease-out, opacity .3s ease-out, box-shadow .15s;
  transition: transform .6s var(--uz-spring), opacity .6s var(--uz-spring), box-shadow .15s;
}
.upload-zone-outline {
  position: absolute;
  inset: 0;
  z-index: 30;
  border: 1px dashed #38bdf8;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.upload-zone-icon { width: 16px; height: 16px; flex: none; }
.upload-zone-drop { display: none; flex-direction: column; align-items: center; font-size: 16px; color: #525252; }
.upload-zone.is-dragging .upload-zone-drop { display: flex; animation: uz-fade .25s ease-out both; }
.upload-zone.is-dragging .upload-zone-card > .upload-zone-icon { display: none; }
@media (hover: hover) {
  .upload-zone:hover .upload-zone-card { transform: translate(20px, -20px); opacity: .9; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); }
  .upload-zone:hover .upload-zone-outline { opacity: 1; }
}
.upload-zone:focus-visible .upload-zone-card { transform: translate(20px, -20px); opacity: .9; }
.upload-zone:focus-visible .upload-zone-outline { opacity: 1; }
.upload-zone-files { position: relative; z-index: 40; }
.upload-zone-file {
  position: relative;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin: 16px auto 0;
  padding: 16px;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
  text-align: left;
  animation: uz-in .5s var(--uz-spring) both;
}
.upload-zone-file-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; }
.upload-zone-file-name { margin: 0; max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; color: #404040; }
.upload-zone-file-size { flex: none; margin: 0; padding: 4px 8px; border-radius: 8px; font-size: 14px; color: #525252; box-shadow: 0 2px 3px -1px rgba(0, 0, 0, .1), 0 1px 0 0 rgba(25, 28, 33, .02), 0 0 0 1px rgba(25, 28, 33, .08); }
.upload-zone-file-meta { display: flex; width: 100%; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; margin-top: 8px; font-size: 14px; color: #525252; }
.upload-zone-file-meta p { margin: 0; }
.upload-zone-file-type { padding: 2px 4px; border-radius: 6px; background: #f3f4f6; }
@media (min-width: 768px) {
  .upload-zone-file { min-height: 96px; }
  .upload-zone-file-meta { flex-direction: row; align-items: center; }
}
@keyframes uz-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes uz-fade { from { opacity: 0; } to { opacity: 1; } }
.upload-zone-card[hidden], .upload-zone-outline[hidden] { display: none; }
[dir="rtl"] .upload-zone-file { text-align: right; }
@media (max-width: 560px) { .upload-zone { padding: 32px 14px; } .upload-zone-stage { margin-top: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .upload-zone-card, .upload-zone-outline { transition: opacity .2s; }
  .upload-zone:hover .upload-zone-card, .upload-zone:focus-visible .upload-zone-card { transform: none; }
  .upload-zone-file, .upload-zone.is-dragging .upload-zone-drop { animation: uz-fade .2s ease-out both; }
}

/* Uploaded files stay in normal flow above the independent picker. */
#uploaded-files:empty { display: none; }
#uploaded-files { width: 100%; min-width: 0; }
.upload-zone-file { max-width: 100%; border: 1px solid #e9ece6; overflow: visible; }
.upload-file-content { width: 100%; min-width: 0; }
.upload-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.upload-file-status:empty { display: none; }
.upload-zone-file-name { max-width: 100%; }
