* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Be Vietnam Pro", sans-serif;
}

body {
  background: #0d1b2a;
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.upload-box {
  width: 100%;
  max-width: 650px;
  background: #adb5bd;
  padding: 20px;
  border-radius: 12px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.drop-zone {
  border: 2px dashed #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  color: #f8f9fa;
}

.drop-zone i {
  font-size: 64px;
  margin-bottom: 10px;
}

.drop-zone.dragover {
  background: #f8f9fa;
  border-color: #212529;
  color: #212529;
  transition: all 0.3s ease;
}

.preview-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.preview-item {
  background: #343a40;
  border-radius: 8px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.preview-item.pdf-preview {
  grid-column: 1 / -1;
  height: 500px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.preview-item.pdf-preview iframe {
  width: 100%;
  flex: 1;
  border: none;
  border-radius: 6px;
  margin-bottom: 8px;
}

.preview-item.pdf-preview .progress-bg,
.preview-item.pdf-preview .status {
  z-index: 5;
  width: 100%;
}

.remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.remove-btn i {
  font-size: 14px;
  color: white;
}

.progress-bg {
  margin-top: 6px;
  background: #f8f9fa;
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #9bf6ff;
  transition: width 0.2s;
}

.progress-bar.success {
  background: #caffbf;
}
.progress-bar.error {
  background: #ffadad;
}

.status {
  font-size: 12px;
  margin-top: 6px;
  text-align: center;
}

.status.success {
  color: #caffbf;
}
.status.error {
  color: #ffadad;
}
.status.uploading {
  color: #9bf6ff;
}
.status.ready {
  color: #f8f9fa;
}

.upload-btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  background: #f8f9fa;
  color: #212529;
  border-radius: 8px;
  cursor: pointer;
}

.upload-btn:hover:not(:disabled) {
  background: #212529;
  color: #f8f9fa;
}

.upload-btn:disabled {
  background: #6c757d;
  cursor: default;
}

.preview-item.fade-out {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.warning {
  color: #d00000;
  text-align: center;
  margin-top: 10px;
  font-weight: 500;
}
