/* --- GLOBAL RESET --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- BACKGROUND --- */
body.fancy-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at top left, #ffecd2 0, #fcb69f 30%, transparent 60%),
    radial-gradient(circle at bottom right, #a1c4fd 0, #c2e9fb 30%, #667eea 70%);
  background-color: #0f172a;
  background-blend-mode: screen;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --- GLASS CARD --- */
.glass-card {
  max-width: 640px;
  padding: 1rem; /* 2rem 2.2rem; */
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(18px);
  color: #e5e7eb;
}

.glass-card .form-control,
.glass-card .form-check-input {
  background-color: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.glass-card .form-control:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.25);
}

/* --- ICONS --- */
.upload-icon {
  font-size: 2.5rem;
}
/* --- SPINNER OVERLAY --- */
.spinner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 50;
  border-radius: 1.5rem;
}

/* --- FILE TYPE ICONS --- */
.file-icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
}

.file-icon.pdf { color: #ff6b6b; }
.file-icon.jpg,
.file-icon.jpeg { color: #fbbf24; }
.file-icon.png { color: #34d399; }

/* --- REMOVE BUTTON --- */
.remove-file-btn {
  background: transparent;
  border: none;
  color: #f87171;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
}

.remove-file-btn:hover {
  color: #ef4444;
}

/* --- CONFETTI CANVAS --- */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* --- DROP AREA --- */
.drop-area {
  position: relative;
  border-radius: 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.8);
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.2), transparent 60%);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

/*
.drop-area .drop-inner {
  pointer-events: none;
}
*/

.drop-area .drop-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.drop-area.highlight {
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 65%);
}

/* --- FILE LIST --- */
#fileListMetadata li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  font-size: 0.9rem;
}

#fileListMetadata li:last-child {
  border-bottom: none;
}

.file-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  color: #9ca3af;
  font-size: 0.8rem;
}

.file-progress {
  width: 100%;
}

/* --- OVERALL PROGRESS BAR --- */
#overallProgress {
  height: 8px;
}

