/* Lens Correction Studio Modal Styles */

.lens-correction-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: 10060;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e0e0e0;
  user-select: none;
}

.lens-correction-modal {
  width: 920px;
  max-width: 96vw;
  height: 680px;
  max-height: 94vh;
  background: #2b2b2b;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px #444;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lens-correction-header {
  padding: 10px 18px;
  background: #333;
  border-bottom: 1px solid #202020;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

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

.lens-correction-main {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.lens-correction-viewport {
  flex: 1;
  background: #181818;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-right: 1px solid #383838;
}

.lens-correction-canvas-wrap {
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.lens-correction-preview-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.lens-correction-grid-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.lens-correction-sidebar {
  width: 330px;
  background: #262626;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.lens-correction-panel {
  padding: 12px 16px;
  border-bottom: 1px solid #363636;
}

.lens-correction-panel-title {
  font-size: 11px;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.lens-correction-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  font-size: 12px;
}

.lens-correction-row:last-child {
  margin-bottom: 0;
}

.lens-correction-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  color: #ccc;
}

.lens-correction-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.lens-correction-slider-row input[type="number"] {
  width: 52px;
  background: #1a1a1a;
  border: 1px solid #484848;
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
  text-align: right;
}

.lens-correction-footer {
  padding: 10px 16px;
  background: #2e2e2e;
  border-top: 1px solid #383838;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lens-correction-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}

.lens-correction-footer-left label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

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

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

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

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

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

.lens-correction-btn-secondary {
  background: #3c3c3c;
  color: #ddd;
  border-color: #4a4a4a;
}

.lens-correction-btn-secondary:hover {
  background: #4a4a4a;
  color: #fff;
}
