/* Classic Distort Filters Suite Styles */

.distort-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10090;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #d1d5db;
  user-select: none;
}

.distort-modal {
  width: 640px;
  max-width: 95vw;
  background: #27272a;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px #3f3f46;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.distort-header {
  padding: 10px 18px;
  background: #323238;
  border-bottom: 1px solid #1f1f23;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.distort-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #f4f4f5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.distort-header .close-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.distort-header .close-btn:hover {
  color: #fff;
}

/* Tabs */
.distort-tabs {
  display: flex;
  background: #1f1f23;
  border-bottom: 1px solid #3f3f46;
  padding: 0 12px;
  gap: 4px;
  overflow-x: auto;
}

.distort-tab-btn {
  background: transparent;
  border: none;
  color: #a1a1aa;
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.distort-tab-btn:hover {
  color: #f4f4f5;
}

.distort-tab-btn.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  font-weight: 600;
}

.distort-body {
  padding: 16px;
  display: flex;
  gap: 16px;
}

.distort-preview-wrap {
  width: 240px;
  height: 240px;
  background: #18181b;
  border: 1px solid #3f3f46;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.distort-preview-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.distort-preview-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  color: #a1a1aa;
}

.distort-controls-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.distort-control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.distort-control-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.distort-label-wrap {
  display: flex;
  justify-content: space-between;
  color: #e4e4e7;
}

.distort-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.distort-slider-wrap input[type="range"] {
  flex: 1;
  accent-color: #3b82f6;
  height: 4px;
  cursor: pointer;
}

.distort-slider-wrap input[type="number"] {
  width: 55px;
  background: #18181b;
  border: 1px solid #52525b;
  color: #fff;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 11px;
  text-align: right;
}

.distort-select {
  background: #18181b;
  border: 1px solid #52525b;
  color: #fff;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
}

.distort-footer {
  padding: 10px 18px;
  background: #323238;
  border-top: 1px solid #1f1f23;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.distort-footer-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.distort-footer-left input[type="checkbox"] {
  accent-color: #3b82f6;
}

.distort-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.distort-btn {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.distort-btn-primary {
  background: #0078d4;
  color: #fff;
  border-color: #0060aa;
}

.distort-btn-primary:hover {
  background: #1084df;
}

.distort-btn-secondary {
  background: #3f3f46;
  color: #e4e4e7;
  border-color: #52525b;
}

.distort-btn-secondary:hover {
  background: #52525b;
  color: #fff;
}
