/* PDFNoble.com - Upload UI */

.upload-zone {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.drop-area {
  border: 2px dashed #C7D2FE;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  transition: border-color .2s, background .2s;
  cursor: pointer;
  position: relative;
}
.drop-area.dragover {
  border-color: var(--primary);
  background: #EEF2FF;
}
.drop-area .upload-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.drop-area h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.drop-area p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.drop-area .limits {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.drop-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-list {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem;
}
.file-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  transition: box-shadow .15s;
  position: relative;
}
.file-item:hover {
  box-shadow: var(--shadow);
}
.file-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #EEF2FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-thumb i {
  font-size: 1.4rem;
  color: var(--primary);
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-name {
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta-line {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 4px;
  font-size: 1.1rem;
}
.file-remove:hover {
  color: var(--danger);
  background: #FEF2F2;
}

/* Tooltip on hover */
.file-item .tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1E293B;
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}
.file-item:hover .tooltip { display: block; }

.add-more-wrap {
  text-align: center;
  margin: 1rem 0;
}
.convert-actions {
  max-width: 720px;
  margin: 1.5rem auto 2rem;
  padding: 0 1.25rem;
  text-align: center;
}

/* Progress overlay style */
.processing-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
