* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #1a1a2e;
  --bg-panel: #16213e;
  --bg-card: #0f3460;
  --accent-primary: #e94560;
  --accent-secondary: #533483;
  --accent-tertiary: #f39c12;
  --text-primary: #eaeaea;
  --text-secondary: #a8a8a8;
  --border-color: rgba(233, 69, 96, 0.3);
  --glow-primary: 0 0 20px rgba(233, 69, 96, 0.4);
  --glow-secondary: 0 0 20px rgba(83, 52, 131, 0.4);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: linear-gradient(135deg, var(--bg-panel), var(--bg-card));
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 10px rgba(233, 69, 96, 0.6));
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.header-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  color: var(--accent-primary);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.header-btn:hover {
  background: rgba(233, 69, 96, 0.15);
  box-shadow: var(--glow-primary);
  transform: translateY(-1px);
}

.toolbar-top {
  background: var(--bg-panel);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 0;
  min-height: 0;
}

@media (max-width: 1400px) {
  .main-content {
    grid-template-columns: 240px 1fr 300px;
  }
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }
  
  .left-tools, .right-tools {
    max-height: 400px;
    overflow-y: auto;
  }
}

.tools-panel {
  background: var(--bg-panel);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
}

.right-tools {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.workspace {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.welcome-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-panel) 100%);
}

.welcome-content {
  max-width: 800px;
  width: 100%;
}

.welcome-header {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-title {
  font-weight: 800;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.welcome-icon {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.8));
}

.welcome-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.welcome-description {
  background: var(--bg-panel);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.welcome-description p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.upload-zone {
  min-height: 300px;
  border: 2px dashed var(--accent-primary);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(233, 69, 96, 0.05), rgba(83, 52, 131, 0.05));
  margin-bottom: 2rem;
}

.upload-zone:hover {
  border-color: var(--accent-tertiary);
  box-shadow: 0 0 30px rgba(233, 69, 96, 0.2);
  transform: translateY(-2px);
}

.upload-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.upload-text {
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.upload-subtext {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.welcome-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.welcome-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}

.welcome-btn.primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  color: white;
}

.welcome-btn.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
}

.welcome-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.3);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.project-manager {
  background: var(--bg-panel);
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.project-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-manager-header h2 {
  color: var(--accent-primary);
  font-size: 1.5rem;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--accent-primary);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 3rem;
}

.project-item {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.project-item:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(233, 69, 96, 0.2);
}

.project-info {
  flex: 1;
  cursor: pointer;
}

.project-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.project-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.delete-project-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.delete-project-btn:hover {
  color: #ff5555;
}

.canvas-container {
  flex: 1;
  min-height: 400px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canvas-wrapper {
  position: relative;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.edit-canvas {
  max-width: 100%;
  max-height: calc(100vh - 250px);
  display: block;
  user-select: none;
  cursor: crosshair;
  transition: filter 0.2s ease;
  border-radius: 4px;
}

.canvas-info {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.image-counter {
  background: rgba(22, 33, 62, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.nav-arrows {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  width: 36px;
  height: 36px;
  background: rgba(22, 33, 62, 0.95);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(233, 69, 96, 0.2);
  box-shadow: var(--glow-primary);
}

.selection-box {
  position: absolute;
  border: 2px solid var(--accent-primary);
  background: rgba(233, 69, 96, 0.15);
  pointer-events: none;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.selection-badge {
  position: absolute;
  top: -28px;
  left: 0;
  background: var(--bg-dark);
  color: var(--accent-primary);
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  font-weight: 600;
}

.zoom-controls {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(22, 33, 62, 0.95);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.zoom-btn {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent-primary);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.zoom-btn.reset {
  font-size: 1rem;
}

.zoom-btn:hover {
  background: rgba(233, 69, 96, 0.2);
  box-shadow: var(--glow-primary);
}

.zoom-value {
  color: var(--text-secondary);
  font-size: 0.875rem;
  min-width: 50px;
  text-align: center;
  font-weight: 600;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-title {
  font-size: 0.75rem;
  color: var(--accent-primary);
  letter-spacing: 1.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.tool-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tool-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 500;
}

.tool-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  background: rgba(233, 69, 96, 0.1);
}

.tool-btn.active {
  border-color: var(--accent-primary);
  background: rgba(233, 69, 96, 0.2);
  box-shadow: var(--glow-primary);
}

.tool-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.command-textarea {
  background: var(--bg-dark);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  width: 100%;
  resize: vertical;
  min-height: 80px;
}

.command-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: var(--glow-primary);
}

.command-textarea::placeholder {
  color: var(--text-secondary);
}

.command-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.selection-info {
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent-primary);
  text-align: center;
  font-weight: 600;
}

.apply-btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.apply-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.apply-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.apply-filters-btn {
  background: var(--bg-card);
  border: 1px solid var(--accent-secondary);
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.apply-filters-btn:hover:not(:disabled) {
  background: rgba(83, 52, 131, 0.2);
  box-shadow: var(--glow-secondary);
}

.apply-filters-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.categories-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.category-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.625rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.category-tab:hover:not(:disabled) {
  border-color: var(--accent-primary);
  background: rgba(233, 69, 96, 0.1);
}

.category-tab.active {
  border-color: var(--accent-primary);
  background: rgba(233, 69, 96, 0.2);
  box-shadow: var(--glow-primary);
}

.category-tab:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.category-icon {
  font-size: 1.25rem;
}

.category-name {
  font-size: 0.625rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 600;
}

.category-tab.active .category-name {
  color: var(--accent-primary);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.preset-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-primary);
}

.preset-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  background: rgba(233, 69, 96, 0.1);
  transform: translateY(-2px);
}

.preset-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.preset-icon {
  font-size: 1.5rem;
}

.preset-label {
  font-size: 0.625rem;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 600;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.slider-value {
  font-size: 0.875rem;
  color: var(--accent-primary);
  font-weight: 700;
}

.neon-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-dark);
  border-radius: 3px;
  outline: none;
}

.neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--glow-primary);
  transition: all 0.2s ease;
}

.neon-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px var(--accent-primary);
}

.neon-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: var(--glow-primary);
}

.thumbnails-container {
  background: var(--bg-dark);
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
}

.thumbnails-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.thumbnails-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: 700;
}

.thumbnails-toggle {
  background: none;
  border: none;
  color: var(--accent-primary);
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
}

.thumbnail {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnail:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
}

.thumbnail.active {
  border-color: var(--accent-tertiary);
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.5);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 0.5rem 0.25rem 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thumbnail:hover .thumbnail-overlay {
  opacity: 1;
}

.thumbnail-name {
  font-size: 0.625rem;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumbnail-delete {
  background: rgba(255, 50, 50, 0.8);
  border: none;
  border-radius: 3px;
  color: white;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.thumbnail-delete:hover {
  background: rgba(255, 50, 50, 1);
}

.add-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-thumbnail:hover {
  border-color: var(--accent-primary);
  background: rgba(233, 69, 96, 0.1);
}

.add-icon {
  font-size: 2rem;
  color: var(--accent-primary);
}

.add-text {
  font-size: 0.625rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-weight: 600;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.toolbar-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-weight: 600;
}

.toolbar-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.toolbar-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.compare-btn:active {
  background: rgba(233, 69, 96, 0.2);
  border-color: var(--accent-primary);
}

.download-btn {
  background: linear-gradient(135deg, rgba(83, 52, 131, 0.2), rgba(243, 156, 18, 0.2));
  border-color: var(--accent-tertiary);
  color: var(--accent-tertiary);
}

.download-btn:hover:not(:disabled) {
  box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

.footer {
  padding: 1rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  background: var(--bg-panel);
}

.footer-link {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 600;
}

.footer-link:hover {
  color: var(--accent-tertiary);
}

.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.processing-content {
  text-align: center;
}

.processing-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid transparent;
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-tertiary);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-text {
  font-size: 1.25rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.processing-subtext {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.error-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 50, 50, 0.95);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  animation: slideUp 0.3s ease;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(255, 50, 50, 0.4);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 1rem;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .preset-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .category-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .toolbar-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.625rem;
  }
  
  .thumbnails-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .welcome-icon {
    font-size: 2.5rem;
  }
}