.pdf-page-wrapper {
  display: block !important;
}

.pdf-page-title {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.pdf-page-description {
  margin-bottom: 25px;
  color: #555;
  line-height: 1.5;
}

.pdf-converter {
  display: block !important;
  max-width: 800px;
  margin: 20px auto;
  font-family: inherit;
}

.pdf-drop-zone {
  display: block !important;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.3s, background 0.3s;
}

.pdf-drop-zone-active {
  border-color: #0b7578;
  background: #e8f4f4;
}

.pdf-drop-zone-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.pdf-drop-zone p {
  margin: 10px 0;
  color: #555;
}

.pdf-hint {
  display: block;
  margin-top: 10px;
  color: #888;
  font-size: 0.9em;
}

.pdf-preview-section {
  margin-top: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
}

.pdf-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.95em;
  color: #333;
}

.pdf-clear-btn {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 0.9em;
  text-decoration: underline;
}

.pdf-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 100px;
}

.pdf-preview-item {
  position: relative;
  width: 120px;
  height: 150px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #f9f9f9;
  display: flex;
  flex-direction: column;
  cursor: grab;
  transition: box-shadow 0.2s;
}

.pdf-preview-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pdf-preview-item.pdf-preview-ghost {
  opacity: 0.4;
}

.pdf-preview-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.pdf-preview-name {
  font-size: 0.75em;
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #555;
  background: #fff;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.pdf-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pdf-preview-remove:hover {
  background: #e74c3c;
}

.pdf-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
  margin-top: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 8px;
}

.pdf-setting-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 180px;
}

.pdf-setting-group label {
  font-size: 0.85em;
  color: #555;
  font-weight: 500;
}

.pdf-setting-group select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95em;
  background: #fff;
}

.pdf-convert-btn {
  margin-left: auto;
  min-width: 180px;
}

.pdf-convert-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pdf-status {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95em;
}

.pdf-status-success {
  background: #e8f8f5;
  color: #0b7578;
  border: 1px solid #a3e4d7;
}

.pdf-status-error {
  background: #fdedec;
  color: #c0392b;
  border: 1px solid #f5b7b1;
}

.pdf-status-info {
  background: #eaf2f8;
  color: #2c3e50;
  border: 1px solid #aed6f1;
}