/* Photoshop Dark Theme - Layer Styles Modal */
.ls-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.ls-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.ls-dialog {
  width: 860px;
  max-width: 95vw;
  height: 620px;
  max-height: 92vh;
  background: #2b2b2b;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  color: #dfdfdf;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  user-select: none;
  overflow: hidden;
}

.ls-header {
  height: 34px;
  background: #1e1e1e;
  border-bottom: 1px solid #383838;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #f0f0f0;
}

.ls-close-btn {
  background: transparent;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}

.ls-close-btn:hover {
  background: #383838;
  color: #fff;
}

.ls-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Left Column: Styles List */
.ls-nav-col {
  width: 200px;
  background: #242424;
  border-right: 1px solid #383838;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ls-nav-header {
  padding: 8px 12px 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  font-weight: 700;
  border-bottom: 1px solid #303030;
}

.ls-nav-item {
  display: flex;
  align-items: center;
  padding: 7px 12px;
  gap: 8px;
  cursor: pointer;
  border-left: 3px solid transparent;
  color: #ccc;
  transition: background 0.1s;
}

.ls-nav-item:hover {
  background: #2c2c2c;
  color: #fff;
}

.ls-nav-item.active {
  background: #333333;
  color: #fff;
  border-left-color: #2680eb;
  font-weight: 500;
}

.ls-nav-item input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
  accent-color: #2680eb;
}

.ls-nav-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Center Column: Parameters */
.ls-content-col {
  flex: 1;
  background: #2b2b2b;
  overflow-y: auto;
  padding: 16px 20px;
}

.ls-panel {
  display: none;
}

.ls-panel.active {
  display: block;
}

.ls-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #3c3c3c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ls-section {
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: #262626;
}

.ls-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.ls-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}

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

.ls-label {
  width: 110px;
  flex-shrink: 0;
  color: #bbb;
}

.ls-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ls-select, .ls-input-text {
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 3px;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
}

.ls-select:focus, .ls-input-text:focus {
  border-color: #2680eb;
}

.ls-range {
  flex: 1;
  accent-color: #2680eb;
  cursor: pointer;
}

.ls-num {
  width: 54px;
  background: #1c1c1c;
  border: 1px solid #444;
  border-radius: 3px;
  color: #fff;
  padding: 3px 6px;
  font-size: 12px;
  text-align: right;
  outline: none;
}

.ls-num:focus {
  border-color: #2680eb;
}

.ls-color-box {
  width: 38px;
  height: 22px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 3px;
  cursor: pointer;
  background: none;
}

.ls-radio-group {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ls-radio-group label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: #ccc;
}

/* Right Column: Actions & Preview */
.ls-actions-col {
  width: 160px;
  background: #242424;
  border-left: 1px solid #383838;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  gap: 10px;
}

.ls-btn {
  background: #3a3a3a;
  border: 1px solid #555;
  border-radius: 4px;
  color: #eee;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.1s;
}

.ls-btn:hover {
  background: #484848;
  color: #fff;
}

.ls-btn-primary {
  background: #2680eb;
  border-color: #1a6cd1;
  color: #fff;
  font-weight: 600;
}

.ls-btn-primary:hover {
  background: #1f6fd1;
}

.ls-preview-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ls-preview-canvas {
  width: 130px;
  height: 130px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 4px;
  background-image: linear-gradient(45deg, #222 25%, transparent 25%),
                    linear-gradient(-45deg, #222 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #222 75%),
                    linear-gradient(-45deg, transparent 75%, #222 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0px;
}

.ls-preview-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #bbb;
  font-size: 11px;
}
