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

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-color: #ecf0f1;
  --text-color: #2c3e50;
  --border-color: #bdc3c7;
  --card-background: #ffffff;
  --header-height: 3rem;
  --footer-height: 8rem;
  --primary-hover: #34495e; /* Added for hover effect */
}

body {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow: hidden;
}

/* Header Styles */
header {
  flex-shrink: 0;
  height: var(--header-height);
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 1rem;
}

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

.header-left h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.clickable-title {
  cursor: pointer;
  transition: color 0.2s;
  user-select: none;
}

.clickable-title:hover {
  color: #bdc3c7;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  pointer-events: none;
}

.header-center #productionTitle {
  pointer-events: auto;
}

#productionTitle {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

#productionTitle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.header-right {
  display: flex;
  gap: 0.5rem;
}



.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
  transition: background-color 0.2s;
}

.header-btn:hover {
  background-color: var(--primary-hover);
}

.header-btn img {
  width: 1rem;
  height: 1rem;
}

.storage-btn {
  background-color: var(--secondary-color) !important;
  color: white !important;
}

.storage-btn:hover {
  background-color: #2980b9 !important;
}

.storage-btn img {
  filter: brightness(0) invert(1) !important;
}

/* Main Content */
main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 1rem;
  padding: 1rem;
}

/* Remove padding when in preview mode */
main:has(.preview-container) {
  padding: 0;
  gap: 0;
}

/* Card Styles */
card-item {
  width: 20rem;
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1rem 1rem 2.5rem 1rem; /* Added extra bottom padding for action buttons */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: block;
  position: relative;
  min-height: 12.5rem; /* Set a minimum height for all cards */
  align-self: stretch; /* Ensure cards stretch to fill available space */
  display: flex; /* Use flexbox for internal content alignment */
  flex-direction: column; /* Stack content vertically */
}

card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

card-item.selected {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--primary-color);
}

card-subtitle {
  font-size: 0.875rem;
  color: #7f8c8d;
  margin-bottom: 0.75rem;
  display: block;
}

card-description {
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: block;
}

card-meta {
  font-size: 0.75rem;
  color: #95a5a6;
  display: block;
  margin-top: 0.5rem;
}

.card-actions {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

card-item:hover .card-actions {
  opacity: 1;
}

card-item.selected {
  border-color: #f1c40f;
  box-shadow: 0 4px 12px rgba(241, 196, 15, 0.4);
  transform: translateY(-2px);
  background-color: rgba(241, 196, 15, 0.05);
}

.card-btn {
  background: none;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.card-btn:hover {
  color: var(--primary-color);
  background-color: rgba(0,0,0,0.05);
}

.card-btn.delete:hover {
  color: var(--accent-color);
}

.card-btn img {
  width: 1rem;
  height: 1rem;
  filter: brightness(0) saturate(100%) invert(50%) sepia(0%) saturate(0%) hue-rotate(222deg) brightness(98%) contrast(95%);
}

.card-btn:hover img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(24%) saturate(1084%) hue-rotate(185deg) brightness(95%) contrast(86%);
}

.card-btn.delete:hover img {
  filter: brightness(0) saturate(100%) invert(19%) sepia(91%) saturate(2718%) hue-rotate(346deg) brightness(95%) contrast(95%);
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.keyframe-image-container {
  width: 100%;
  border: 1px solid var(--border-color);
  margin-bottom: 0.75rem;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.keyframe-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.keyframe-placeholder {
  color: white;
  font-weight: bold;
  font-size: 4.2rem;
  text-align: center;
  background-color: #d5d8dc;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* Image Actions */
.image-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.keyframe-image-container:hover .image-actions {
  opacity: 1;
}

.image-btn {
  background: white;
  border: none;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.image-btn:hover {
  color: var(--primary-color);
  background-color: rgba(0,0,0,0.05);
}

.image-btn.delete:hover {
  color: var(--accent-color);
  background-color: rgba(0,0,0,0.05);
}

/* Footer Timeline */
footer {
  flex-shrink: 0;
  height: var(--footer-height);
  background-color: var(--primary-color);
  color: white;
}

.timeline-controls {
  height: 2rem;
  display: flex;
  align-items: center;
  padding:0.5rem;
  background-color: rgba(0,0,0,0.1);
}

.timeline-controls .timeline-left {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.timeline-controls .timeline-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-mode-toggle {
  display: flex;
  background-color: rgba(0,0,0,0.2);
  border-radius: 0.375rem;
  padding: 0.125rem;
  gap: 0.125rem;
}

/* Style for mode toggle in header */
#headerModeToggle {
  background-color: rgba(255,255,255,0.1);
}

.timeline-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  border-radius: 0.25rem;
  transition: all 0.2s;
  font-size: 0.875rem;
  font-weight: 500;
}

.timeline-mode-btn img {
  width: 1rem;
  height: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.timeline-mode-btn:hover {
  color: white;
  background-color: rgba(255,255,255,0.1);
}

.timeline-mode-btn:hover img {
  opacity: 1;
}

.timeline-mode-btn.active {
  color: white;
  background-color: var(--secondary-color);
}

.timeline-mode-btn.active img {
  opacity: 1;
}

.timeline-controls .timeline-time {
  font-size: 0.875rem;
  font-family: monospace;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

.timeline-controls .timeline-zoom {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
}

.timeline-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
}

.timeline-btn:hover {
  background-color: rgba(255,255,255,0.1);
}

.timeline-btn:disabled {
  opacity: 0.5;
}

.timeline-btn:disabled {
  opacity: 0.5;
  cursor: default; /* Show normal cursor when disabled */
}

.timeline-btn:disabled:hover {
  background-color: transparent;
}

.timeline-btn img {
  filter: brightness(0) invert(1);
  width: 1rem;
  height: 1rem;
}

#gotoStartBtn i {
  font-size: 1.1em;
}

.timeline-container {
  height: 90px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  background-color: #34495e;
}

#timelineCanvas {
  display: block;
  cursor: crosshair;
  width: 100%;
  height: 90px;
}

#timelineCanvas.grab-cursor {
  cursor: grab;
}

#timelineCanvas.grabbing-cursor {
  cursor: grabbing;
}

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background-color: white;
  border-radius: 0.5rem;
  padding: 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: calc(90vh - 7.5rem); /* Account for header and padding using rem units */
}

.close {
  display: none;
}

/* Confirmation Dialog Styles */
.confirm-header, .success-header, .error-header, .warning-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 0.5rem 0.5rem 0 0;
  flex-shrink: 0;
}

.success-header {
  background-color: #27ae60;
}

.error-header {
  background-color: var(--accent-color);
}

.confirm-icon, .modal-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.confirm-header h2, .success-header h2, .error-header h2 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.25rem;
  display: flex;
  align-items: center;
}

.confirm-message {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* Form Styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
  color: white;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-danger {
  background-color: var(--accent-color);
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Canvas Drawing */
.canvas-container {
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
  background-color: white;
}

.canvas-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.color-picker {
  width: 40px;
  height: 30px;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  cursor: pointer;
}

.brush-size {
  width: 60px;
}



.fullscreen-btn img {
  filter: brightness(0) invert(1);
  width: 20px;
  height: 20px;
}

.fullscreen-exit img {
  filter: brightness(0) invert(1);
  width: 24px;
  height: 24px;
}

/* Drag and Drop Styles */
card-item {
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  user-select: none; /* Prevent text selection */
}

card-item[data-type="keyframe"] {
  cursor: default;  /* Keyframes use standard cursor since they can't be reordered */
}

card-item:active {
  cursor: grabbing;
}

card-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
}

card-item.drag-over {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
  border: 2px solid var(--secondary-color);
  background-color: rgba(52, 152, 219, 0.05);
}

.main-content.drag-active card-item:not(.dragging) {
  transition: transform 0.2s;
}

.drag-placeholder {
  height: 200px;
  border: 2px dashed var(--secondary-color);
  border-radius: 0.5rem;
  background-color: rgba(52, 152, 219, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

.create-card {
  cursor: default !important;
  position: relative;
}

.create-card-actions {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.create-card:hover .create-card-actions {
  opacity: 1;
}

.fullscreen-timeline {
  width: 300px;
  height: 4px;
  background-color: rgba(255,255,255,0.3);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.fullscreen-progress {
  height: 100%;
  background-color: var(--secondary-color);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #7f8c8d;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #95a5a6;
}

.empty-state p {
  margin-bottom: 1.5rem;
  max-width: 400px;
}

/* Add Item Button */
.add-item-btn {
  width: 20rem;
  min-height: 12.5rem;
  background-color: var(--card-background);
  border: 2px dashed var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  color: #7f8c8d;
  padding: 1rem;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.add-item-btn:hover {
  border-color: var(--secondary-color);
  background-color: rgba(52, 152, 219, 0.05);
  color: var(--secondary-color);
}

.add-item-btn i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  card-item,
  .add-item-btn {
    width: 100%;
    min-width: 280px;
    min-height: auto; /* Reset min-height for responsiveness */
  }

  main {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .header-left h1 {
    font-size: 1.25rem;
  }

  .header-center {
    display: none;
  }

  .modal-content {
    margin: 1rem;
    width: calc(100% - 2rem);
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .timeline-controls {
    padding: 0 0.5rem;
  }

  .timeline-controls span {
    font-size: 0.75rem;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .card-actions,
  .modal {
    display: none !important;
  }

  main {
    padding: 0;
  }

  card-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Fullscreen Preview Styles */
.fullscreen-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 2000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fullscreen-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fullscreen-image-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fullscreen-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fullscreen-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.3s ease;
}

.fullscreen-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

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

.fullscreen-btn {
  width: 40px;
  height: 40px;
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.fullscreen-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.fullscreen-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.fullscreen-progress {
  width: 300px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  overflow: hidden;
}

.fullscreen-progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.fullscreen-progress-fill {
  height: 100%;
  background-color: #3498db;
  width: 0%;
  transition: width 0.1s ease;
}

/* Image Editor Styles */
.image-editor-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #2c3e50;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}

.image-editor-header {
  height: 60px;
  background-color: #34495e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 2px solid #3498db;
}

.editor-title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.editor-actions {
  display: flex;
  gap: 1rem;
}

.editor-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.editor-btn-primary {
  background-color: #3498db;
  color: white;
}

.editor-btn-primary:hover {
  background-color: #2980b9;
}

.editor-btn-secondary {
  background-color: #7f8c8d;
  color: white;
}

.editor-btn-secondary:hover {
  background-color: #6c7b7d;
}

.editor-btn-danger {
  background-color: #e74c3c;
  color: white;
}

.editor-btn-danger:hover {
  background-color: #c0392b;
}

/* Fix SVG icon visibility in image editor */
.editor-btn img {
  filter: brightness(0) invert(1);
}

.tool-btn img {
  filter: brightness(0) invert(1);
}

/* Specific styling for undo/redo buttons */
#undoBtn, #redoBtn {
  background-color: #3498db;
  color: white;
}

#undoBtn:hover, #redoBtn:hover {
  background-color: #2980b9;
}

#undoBtn:disabled, #redoBtn:disabled {
  background-color: #95a5a6;
}

#undoBtn:disabled:hover, #redoBtn:disabled:hover {
  background-color: #95a5a6;
}

.image-editor-toolbar {
  height: 60px;
  background-color: #34495e;
  border-bottom: 1px solid #3498db;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0 1.5rem;
  color: white;
  flex-wrap: wrap;
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.toolbar-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #bdc3c7;
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  background-color: transparent;
  border: 1px solid #7f8c8d;
  color: white;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

.tool-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.tool-btn.active {
  background-color: #3498db;
  border-color: #3498db;
}

.size-slider {
  width: 80px;
  height: 4px;
  background: #7f8c8d;
  outline: none;
  border-radius: 2px;
}

.size-slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
}

.size-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #3498db;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.color-input {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  background: transparent;
}

.zoom-controls {
  margin-left: auto;
}

.zoom-controls span {
  min-width: 50px;
  text-align: center;
  font-family: monospace;
  font-size: 0.875rem;
}

.zoom-controls .editor-btn {
  background-color: #3498db;
  color: white;
}

.zoom-controls .editor-btn:hover {
  background-color: #2980b9;
}

.image-editor-canvas-container {
  flex: 1;
  background-color: #2c3e50;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  min-height: 0;
}

#imageEditorCanvas {
  border: 2px solid #3498db;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: white;
  transform-origin: 0 0;
}