.modify-still-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}

/* Brush Palette */
.brush-palette {
  padding: 1rem;
  background: var(--bg-light-gray);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.palette-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action-buttons-top {
  display: flex;
  gap: 0.5rem;
}

.action-btn-top {
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: 500;
}

.action-btn-top:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: rgba(74, 143, 255, 0.05);
}

.action-btn-top:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-light-gray);
  color: var(--color-text-secondary);
}

.brush-tools {
  display: flex;
  gap: 0.5rem;
}

.brush-tool {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text);
}

.brush-tool:hover {
  border-color: var(--color-primary);
  background: rgba(74, 143, 255, 0.05);
}

.brush-tool.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.brush-tool i {
  font-size: 1.125rem;
}

/* Brush Size Control */
.brush-size-control {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-light-gray);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  height: 40px;
  display: flex;
  align-items: center;
}

.brush-size-slider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.size-slider {
  flex: 1;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.size-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.size-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.size-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.size-display {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  min-width: 40px;
  text-align: center;
}

/* Image Editor Workspace */
.image-editor-workspace {
  margin-bottom: 1rem;
}

.image-container {
  position: relative;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.no-image-placeholder {
  text-align: center;
  color: #666;
  padding: 2rem;
}

.no-image-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.no-image-placeholder p {
  margin: 0.5rem 0;
}

.hint {
  font-size: 0.875rem;
  color: #888;
}

/* Generation Controls */
.generation-controls {
  background: var(--bg-light-gray);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.prompt-section {
  margin-bottom: 1rem;
}

.generation-prompt {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--color-text);
  font-size: 0.875rem;
  resize: vertical;
  font-family: inherit;
}

.generation-prompt::placeholder {
  color: var(--color-text-secondary);
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.generation-options {
  display: flex;
  gap: 0.5rem;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--color-text);
}

.option-btn:hover {
  border-color: var(--color-primary);
  background: rgba(74, 143, 255, 0.05);
}

.option-btn i {
  font-size: 1rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.action-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--color-text);
  font-weight: 500;
}

.action-btn:hover {
  border-color: var(--color-primary);
  background: rgba(74, 143, 255, 0.05);
}

.generate-btn {
  padding: 0.5rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: 1px solid var(--color-primary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 600;
}

.generate-btn:hover {
  background: var(--color-primary-dark, #3a7bd5);
  border-color: var(--color-primary-dark, #3a7bd5);
}

/* Dark theme adjustments */
[data-theme="dark"] .brush-palette,
[data-theme="dark"] .generation-controls {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .brush-tool,
[data-theme="dark"] .option-btn,
[data-theme="dark"] .action-btn,
[data-theme="dark"] .action-btn-top {
  background: #333;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

[data-theme="dark"] .brush-tool:hover,
[data-theme="dark"] .option-btn:hover,
[data-theme="dark"] .action-btn:hover,
[data-theme="dark"] .action-btn-top:hover {
  background: #444;
  border-color: #4a8fff;
}

[data-theme="dark"] .generation-prompt {
  background: #333;
  border-color: rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

[data-theme="dark"] .generation-prompt::placeholder {
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .modify-still-container {
    padding: 0.5rem;
  }
  
  .palette-left {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .action-buttons-top {
    justify-content: center;
  }
  
  .control-row {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .generation-options {
    justify-content: center;
  }
  
  .action-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}