/* iToolsEra Image Rotator v1.0 */

.image-rotator-tool {
  width: 100%;
}

.image-rotator-drop-zone {
  border: 2px dashed #d8dee8;
  border-radius: 14px;
  padding: 48px 20px;
  background: #fbfcfe;
  transition: 0.2s ease;
}
.image-rotator-drop-zone.is-dragging {
  border-color: #4f46e5;
  background: #f5f3ff;
}
.image-rotator-drop-icon {
  font-size: 42px;
  color: #4f46e5;
}

.image-rotator-editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.image-rotator-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.image-rotator-editor-card,
.image-rotator-settings-card {
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  background: #fff;
}
.image-rotator-editor-header {
  padding: 16px 18px;
  border-bottom: 1px solid #e6e9ef;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.image-rotator-local-badge {
  font-size: 12px;
  color: #16803c;
  background: #edf9f1;
  border-radius: 999px;
  padding: 6px 10px;
}
.image-rotator-settings-card {
  padding: 18px;
}
.image-rotator-items {
  padding: 16px;
}

.image-rotator-editor-empty {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #8993a4;
  text-align: center;
}
.image-rotator-editor-empty i {
  font-size: 32px;
}

.image-rotator-item {
  border: 1px solid #e5e8ed;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #fff;
}
.image-rotator-item:last-child {
  margin-bottom: 0;
}
.image-rotator-item-header {
  background: #f8f9fb;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e8ed;
}
.image-rotator-item-body {
  padding: 14px;
}

.image-rotator-preview-wrap {
  min-height: 220px;
  max-height: 340px;
  border: 1px solid #e5e8ed;
  border-radius: 10px;
  background: #f8f9fb;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.image-rotator-preview-canvas {
  display: block;
  max-width: 100%;
  max-height: 320px;
}
.image-rotator-file-name {
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-rotator-individual {
  border-top: 1px solid #edf0f4;
  margin-top: 14px;
  padding-top: 14px;
}
.image-rotator-result {
  border: 1px solid #e5e8ed;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
}
.image-rotator-result-preview {
  height: 190px;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-rotator-result-preview img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}
.image-rotator-result-body {
  padding: 14px;
}

.image-rotator-comparison {
  border: 1px solid #e5e8ed;
  border-radius: 12px;
  overflow: hidden;
}
.image-rotator-comparison-pane {
  min-height: 210px;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.image-rotator-comparison-pane img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.image-rotator-comparison-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

@media (max-width: 767.98px) {
  .image-rotator-drop-zone {
    padding: 36px 16px;
  }
  .image-rotator-editor-header {
    align-items: flex-start;
  }
  .image-rotator-file-name {
    max-width: 48%;
  }
  .image-rotator-preview-wrap {
    min-height: 180px;
  }
}
