/* UPLOADER SPECIFIC LAYOUT STYLES */

.app-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 10px;
}

/* APP HEADER */
.app-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}

.wedding-monogram {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 400;
  border: 1px solid var(--gold);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.wedding-date {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 5px;
}

.divider {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  margin: 18px 0;
}

.subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto;
  font-weight: 400;
  line-height: 1.7;
}

/* UPLOADER CARD CONTAINER */
.uploader-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 35px 24px;
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 15px;
}

/* SECTION 2: DROPZONE */
.file-input-hidden {
  display: none;
}

.dropzone {
  border: 2px dashed rgba(127, 151, 181, 0.4);
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent-deep);
  background-color: rgba(127, 151, 181, 0.05);
  box-shadow: 0 0 0 4px rgba(127, 151, 181, 0.08);
}

.dropzone.dragover {
  transform: scale(0.99);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-icon {
  width: 50px;
  height: 50px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.dropzone:hover .upload-icon {
  transform: translateY(-5px);
  color: var(--accent-deep);
}

.main-prompt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.browse-link {
  color: var(--accent-deep);
  text-decoration: underline;
  font-weight: 700;
}

.sub-prompt {
  font-size: 0.8rem;
  color: var(--muted);
}

/* SECTION 3: QUEUE & FILES LIST */
.queue-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.queue-header h3 {
  margin-bottom: 0;
}

.badge {
  background-color: var(--accent-deep);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Scrollbar styling */
.file-list::-webkit-scrollbar {
  width: 6px;
}
.file-list::-webkit-scrollbar-track {
  background: transparent;
}
.file-list::-webkit-scrollbar-thumb {
  background-color: rgba(127, 151, 181, 0.2);
  border-radius: 3px;
}

.file-item {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  gap: 15px;
  animation: slideIn 0.3s ease;
  position: relative;
}

.file-thumbnail-container {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background-color: rgba(127, 151, 181, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line);
}

.file-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-doc-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.file-details {
  flex-grow: 1;
  min-width: 0; /* Ensures text ellipsis works */
}

.file-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 10px;
}

.file-name {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.file-size {
  font-size: 0.75rem;
  color: var(--muted);
  flex-shrink: 0;
}

.file-progress-container {
  width: 100%;
  height: 5px;
  background-color: rgba(127, 151, 181, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.file-progress {
  height: 100%;
  background-color: var(--accent);
  width: 0%;
  transition: width 0.2s ease;
}

.file-status-label {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.file-status-label.pending { color: var(--muted); }
.file-status-label.uploading { color: var(--accent-deep); }
.file-status-label.success { color: var(--sage-deep); }
.file-status-label.error { color: #d9534f; }

.file-remove-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.file-remove-btn:hover {
  background-color: rgba(217, 83, 79, 0.1);
  color: #d9534f;
}

.file-remove-btn svg {
  width: 18px;
  height: 18px;
}

/* OVERALL PROGRESS SUMMARY */
.progress-summary {
  background-color: rgba(127, 151, 181, 0.06);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.3s ease;
  border: 1px solid var(--line);
}

.summary-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(127, 151, 181, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent-deep);
  width: 0%;
  transition: width 0.2s ease;
}

/* ACTIONS PANEL BUTTON ALIGNMENTS */
.action-panel {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 10px;
}

.action-panel button.button-primary,
.action-panel button.button-secondary {
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* SUCCESS MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(64, 69, 83, 0.5);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  background-color: #fdfcf8;
  border-radius: 26px;
  padding: 45px 35px;
  width: 100%;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--line);
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-checkmark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(167, 181, 155, 0.15);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-checkmark svg {
  width: 32px;
  height: 32px;
}

.modal-card h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.success-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 25px;
}

.guest-recap {
  background-color: rgba(127, 151, 181, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recap-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0;
}

.recap-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0;
}

/* UTILITY CLASSES */
.hidden {
  display: none !important;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
