/* MTips5s Photoshop Lite - Blur Gallery Styles */

.blur-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #e0e0e0;
}

.blur-gallery-window {
  width: 92vw;
  max-width: 1160px;
  height: 86vh;
  max-height: 800px;
  background: #252526;
  border: 1px solid #3c3c3c;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blur-gallery-header {
  height: 42px;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.blur-gallery-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blur-gallery-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  padding: 4px 8px;
}

.blur-gallery-close:hover {
  background: #333;
  color: #fff;
}

.blur-gallery-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 310px;
  overflow: hidden;
  background: #1e1e1e;
}

/* Left: Interactive Canvas */
.blur-gallery-canvas-pane {
  background: #181818;
  border-right: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

.blur-gallery-canvas-wrap {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blur-gallery-canvas {
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  border: 1px solid #333;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

/* Right: Tools & Parameters */
.blur-gallery-tools-pane {
  background: #252526;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.blur-gallery-actions {
  padding: 12px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.blur-gallery-actions button {
  flex: 1;
  padding: 7px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}

.blur-gallery-actions .btn-primary {
  background: #007acc;
  color: #fff;
  border-color: #0060a0;
}

.blur-gallery-actions .btn-primary:hover {
  background: #0088e0;
}

.blur-gallery-actions .btn-secondary {
  background: #3a3a3c;
  color: #ddd;
  border-color: #4a4a4c;
}

.blur-gallery-actions .btn-secondary:hover {
  background: #4a4a4c;
  color: #fff;
}

/* Tool Sections */
.blur-tool-section {
  border-bottom: 1px solid #333;
}

.blur-tool-header {
  padding: 10px 14px;
  background: #2a2a2b;
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.blur-tool-header:hover {
  background: #303032;
  color: #fff;
}

.blur-tool-header input[type="checkbox"] {
  accent-color: #007acc;
}

.blur-tool-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #222223;
}

.blur-param-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blur-param-label {
  font-size: 11px;
  color: #bbb;
  display: flex;
  justify-content: space-between;
}

.blur-param-slider {
  width: 100%;
  accent-color: #007acc;
  height: 4px;
  cursor: pointer;
}

.blur-tabs {
  display: flex;
  background: #1e1e1e;
  border-bottom: 1px solid #333;
}

.blur-tab {
  flex: 1;
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
  color: #aaa;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.blur-tab:hover {
  color: #fff;
}

.blur-tab.active {
  color: #fff;
  border-bottom-color: #007acc;
  background: #252526;
  font-weight: 600;
}
