/* 图片类型转换工具特定样式 */
/* 图片转换工具特有样式 */
.editor-area .panel {
  overflow: hidden;
}

.editor-area .panel-body {
  padding: 16px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 20px;
  padding: 4px 0; /* 增加上下内边距，确保 pill-input 的阴影不被截断 */
}

.form-group > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-label {
  margin: 0 !important;
  min-width: 80px;
}

/* Drag and Drop Zone */
/* 图片上传区域样式 */
.drop-area {
  border: 2px dashed #4b5563;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(30, 41, 59, 0.3);
  margin: 20px 0;
}

.drop-area:hover, .drop-area.dragover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.drop-area-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: #9ca3af;
}

.drop-area:hover .drop-area-icon {
  color: #10b981;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.preview-box {
  flex: 1;
  min-width: 300px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.preview-box img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  display: block;
  margin: 0 auto 12px;
}

.format-selector {
  margin-top: 12px;
}

.format-selector select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #1f2937;
}

.image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  display: none;
  min-height: 200px;
  padding: 20px;
  width: 100%;
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.preview-info {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-top: 8px;
}

#deleteImageBtn {
  margin-top: 10px;
}

#deleteImageBtn:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

#resultPlaceholder {
  text-align: center;
  color: #6b7280;
  padding: 40px 20px;
  display: block;
}

#resultPlaceholder div:first-child {
  font-size: 48px;
  margin-bottom: 16px;
}

#fileInput {
  display: none;
}

#downloadBtn {
  display: none;
}

.download-btn {
  margin-top: 12px;
  width: 100%;
}

/* 合并下拉框和输入框样式，使用绿色边框 */
.pill-input.convert-select {
  padding: 0; /* 移除外层容器内边距 */
  overflow: visible !important;
  box-shadow: none; /* 移除阴影 */
}

.convert-select .pill-select {
  width: 100%;
}

.convert-select .pill-select-trigger {
  width: 100%;
  min-width: unset;
  border: none; /* 移除内部重复边框 */
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  height: 100%; /* 撑满父级高度 */
  padding: 0 34px 0 16px;
  display: flex;
  align-items: center;
}

.convert-select .pill-select-trigger:hover {
  border-color: #10b981; /* 确保悬停时也是绿色边框 */
}

.pill-select-trigger.no-arrow {
  padding-right: 16px !important;
}

.pill-select-trigger.no-arrow::after {
  display: none !important;
}

.no-arrow::after {
  display: none !important;
}

.light-theme .drop-area {
  background: rgba(241, 245, 249, 0.5);
  border-color: #cbd5e1;
}

.light-theme .drop-area:hover, .light-theme .drop-area.dragover {
  background: rgba(16, 185, 129, 0.05);
  border-color: #10b981;
}

.light-theme .drop-area-icon {
  color: #94a3b8;
}

.light-theme .preview-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.light-theme .format-selector select {
  background: #ffffff;
  color: #0f172a;
  border-color: #d1d5db;
}

.light-theme .preview-info {
  color: #64748b;
}

.light-theme #resultPlaceholder {
  color: #94a3b8;
}