/**
 * MTips5s Photoshop Lite - Liquify Pro Styling
 * Photoshop CC dark-themed dedicated Liquify workspace
 */

.liquify-pro-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  user-select: none;
}

.liquify-pro-window {
  width: 96vw;
  height: 94vh;
  background: #1e1e1e;
  border: 1px solid #333333;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #cccccc;
}

/* Header */
.liquify-pro-header {
  height: 38px;
  background: #252526;
  border-bottom: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
}

.liquify-pro-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.liquify-pro-close {
  background: transparent;
  border: none;
  color: #888888;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.liquify-pro-close:hover {
  background: #c53030;
  color: #ffffff;
}

/* Main Layout */
.liquify-pro-main {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Left Tools Sidebar */
.liquify-pro-tools {
  width: 48px;
  background: #252526;
  border-right: 1px solid #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 6px;
}

.liquify-tool-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #aaaaaa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.liquify-tool-btn:hover {
  background: #333333;
  color: #ffffff;
}

.liquify-tool-btn.active {
  background: #094771;
  border-color: #007acc;
  color: #ffffff;
}

.liquify-tool-key {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #71717a;
  line-height: 1;
}

.liquify-tool-btn.active .liquify-tool-key {
  color: #38bdf8;
}

.liquify-tool-sep {
  width: 28px;
  height: 1px;
  background: #3a3a3c;
  margin: 4px 0;
}

/* Center Workspace Viewport */
.liquify-pro-viewport {
  flex: 1;
  background: #141414;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}

.liquify-pro-canvas-wrapper {
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  border: 1px solid #2a2a2a;
  background-image: linear-gradient(45deg, #181818 25%, transparent 25%),
                    linear-gradient(-45deg, #181818 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #181818 75%),
                    linear-gradient(-45deg, transparent 75%, #181818 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

.liquify-pro-canvas {
  display: block;
}

/* Brush Cursor Ring */
.liquify-brush-cursor {
  position: absolute;
  pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.8), inset 0 0 1px rgba(0, 0, 0, 0.8);
  z-index: 100;
}

/* Right Properties Panel */
.liquify-pro-panel {
  width: 280px;
  background: #252526;
  border-left: 1px solid #333333;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px;
  gap: 16px;
  font-size: 11px;
}

.liquify-panel-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid #333333;
  padding-bottom: 12px;
}

.liquify-panel-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.liquify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.liquify-label {
  color: #aaaaaa;
  min-width: 90px;
}

.liquify-slider {
  flex: 1;
  height: 4px;
  accent-color: #007acc;
  cursor: pointer;
}

.liquify-num {
  width: 44px;
  background: #1e1e1e;
  border: 1px solid #3e3e42;
  border-radius: 3px;
  color: #ffffff;
  padding: 2px 4px;
  font-size: 11px;
  text-align: right;
}

.liquify-unit {
  color: #71717a;
  font-size: 10px;
  width: 14px;
}

.liquify-btn-row {
  display: flex;
  gap: 8px;
}

.liquify-action-btn {
  flex: 1;
  padding: 6px 10px;
  background: #2d2d30;
  border: 1px solid #3e3e42;
  border-radius: 4px;
  color: #cccccc;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.liquify-action-btn:hover {
  background: #3e3e42;
  color: #ffffff;
}

.liquify-select {
  background: #1e1e1e;
  border: 1px solid #3e3e42;
  border-radius: 3px;
  color: #ffffff;
  padding: 3px 6px;
  font-size: 11px;
  outline: none;
}

.liquify-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cccccc;
  cursor: pointer;
}

/* Footer */
.liquify-pro-footer {
  height: 44px;
  background: #252526;
  border-top: 1px solid #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.liquify-status-info {
  font-size: 11px;
  color: #888888;
  display: flex;
  gap: 16px;
}

.liquify-footer-btns {
  display: flex;
  gap: 10px;
}

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

.liquify-footer-btn-cancel {
  background: #2d2d30;
  border-color: #3e3e42;
  color: #cccccc;
}

.liquify-footer-btn-cancel:hover {
  background: #3e3e42;
  color: #ffffff;
}

.liquify-footer-btn-primary {
  background: #007acc;
  color: #ffffff;
}

.liquify-footer-btn-primary:hover {
  background: #0062a3;
}
