.container-whiteboard-editor {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.container-whiteboard-editor .whiteboard-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  background-image: linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  border: none;
  margin: 0;
  padding: 0;
  outline: none;
  box-shadow: none;

}
.container-whiteboard-editor .whiteboard-canvas {
  display: block;
  cursor: crosshair;
  background-color: #ffffff;
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
}

.container-whiteboard-editor .top-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fff0d5;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  z-index: 1000;
  height: fit-content;
  flex-wrap: wrap;
}

.container-whiteboard-editor .whiteboard-overlay-toolbar .top-toolbar {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  height: auto;
  padding: 8px 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0 0 8px 8px;
}

.container-whiteboard-editor .whiteboard-overlay-toolbar .color-panel.top-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  z-index: 1000001;
  max-width: 250px;
}
.container-whiteboard-editor .whiteboard-overlay-toolbar .eraser-panel.top-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  z-index: 1000001;
  max-width: 200px;
}

.container-whiteboard-editor .whiteboard-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  z-index: 999998;
  pointer-events: none;
  background: transparent;
  display: none;
}
.container-whiteboard-editor .whiteboard-overlay.active {
  pointer-events: auto;
  display: block;
}
.container-whiteboard-editor .whiteboard-overlay canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
}

.container-whiteboard-editor .top-toolbar,
.container-whiteboard-editor .top-toolbar:focus,
.container-whiteboard-editor .top-toolbar:focus-visible,
.container-whiteboard-editor .clean-toolbar,
.container-whiteboard-editor .clean-toolbar:focus,
.container-whiteboard-editor .clean-toolbar:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}
.container-whiteboard-editor .toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.container-whiteboard-editor .toolbar-divider {
  width: 1px;
  height: 24px;
  background: #e6e4de;
  margin: 0 4px;
}
.container-whiteboard-editor .clean-tool-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: #575449;
}
.container-whiteboard-editor .clean-tool-btn:hover {
  background: #de9406;
  color: #292821;
}
.container-whiteboard-editor .clean-tool-btn.active {
  background: #de9406;
  color: white;
}
.container-whiteboard-editor .clean-divider {
  height: 1px;
  background: #e6e4de;
  margin: 4px 8px;
}

.container-whiteboard-editor .top-tool-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: #575449;
  position: relative;
}

.container-whiteboard-editor .clean-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin: 12px;
  background: #fafaf8;
  border: none;
  border-radius: 8px;
  outline: none;
  box-shadow: none;
}

.container-whiteboard-editor .clean-toolbar *,
.container-whiteboard-editor .clean-toolbar *::before,
.container-whiteboard-editor .clean-toolbar *::after {
  outline: none !important;
  box-shadow: none !important;
}
.container-whiteboard-editor .top-tool-btn:hover {
  background: #de9406;
  color: #ffffff;
}
.container-whiteboard-editor .top-tool-btn.active {
  background: #de9406;
  color: white;
}
.container-whiteboard-editor .top-tool-btn:active {
  transform: scale(0.95);
}
.container-whiteboard-editor .top-tool-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 208, 0, 0.25);
}

.container-whiteboard-editor .shapes-dropdown {
  position: relative;
  display: inline-block;
}
.container-whiteboard-editor .shapes-dropdown .top-tool-btn {
  width: auto;
  padding: 0 8px;
  gap: 4px;
}
.container-whiteboard-editor #save-btn:hover svg{
  fill: #ffffff;
  stroke: #ffffff;
}

.container-whiteboard-editor .dropdown-arrow {
  width: 8px;
  height: 8px;
  margin-left: 2px;
}
.container-whiteboard-editor .shapes-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #e6e5de;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  min-width: 140px;
  display: none;
  z-index: 1001;
  margin-top: 4px;
}
.container-whiteboard-editor .shapes-menu.show {
  display: block;
}
.container-whiteboard-editor .shape-option {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #575449;
  transition: background 0.15s ease;
}
.container-whiteboard-editor .shape-option:hover {
  background: #f8f9fa;
}
.container-whiteboard-editor .shape-option svg {
  flex-shrink: 0;
}
.container-whiteboard-editor .shape-option:focus {
  outline: none;
  background: #efeee9;
}

.container-whiteboard-editor .color-panel {
  position: absolute;
  left: 88px;
  top: 20px;
  width: 200px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.container-whiteboard-editor .color-panel.top-panel {
  top: 68px;
  left: 12px;
}
.container-whiteboard-editor .thickness-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-direction: row-reverse;
  justify-content: start;
}
.container-whiteboard-editor .thickness-dot {
  background: #000;
  border-radius: 50%;
  flex-shrink: 0;
}
.container-whiteboard-editor .thickness-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #dee2e6;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  max-width: 50%;
}
.container-whiteboard-editor .thickness-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #de9406;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.container-whiteboard-editor .thickness-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}
.container-whiteboard-editor .brand-colors {
  margin-bottom: 16px;
}
.container-whiteboard-editor .brand-colors h4 {
  font-size: 12px;
  color: #6c757d;
  margin: 0 0 8px 0;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.container-whiteboard-editor .add-colors-btn {
  background: none;
  border: none;
  color: #de9406;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
}
.container-whiteboard-editor .add-colors-btn:hover {
  text-decoration: underline;
}
.container-whiteboard-editor .all-colors h4 {
  font-size: 12px;
  color: #7d7a6c;
  margin: 0 0 12px 0;
  font-weight: 500;
}
.container-whiteboard-editor .color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.container-whiteboard-editor .color-grid .color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.container-whiteboard-editor .color-grid .color-swatch:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.container-whiteboard-editor .color-grid .color-swatch.active {
  border-color: #de9406;
  box-shadow: 0 0 0 2px rgba(255, 174, 0, 0.25);
}
.container-whiteboard-editor .color-grid .color-swatch.empty {
  border: 2px solid #dee2e6;
}
.container-whiteboard-editor .color-grid .color-swatch.add-color {
  border: 2px dashed #dee2e6;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}
.container-whiteboard-editor .color-grid .color-swatch.add-color input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.container-whiteboard-editor .simple-tool-btn:hover {
  background: #f5f5f5;
  border-color: #de9406;
  transform: scale(1.05);
}
.container-whiteboard-editor .simple-tool-btn.active {
  background: #de9406;
  color: white;
  border-color: #de9406;
  box-shadow: 0 2px 8px rgba(255, 196, 0, 0.3);
}
.container-whiteboard-editor .simple-icon {
  font-size: 16px;
  line-height: 1;
}
.container-whiteboard-editor .toolbar-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

.container-whiteboard-editor .floating-colors {
  position: absolute;
  left: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.container-whiteboard-editor .floating-colors .color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.container-whiteboard-editor .floating-colors .color-swatch:hover {
  transform: scale(1.1);
  border-color: #de9406;
}
.container-whiteboard-editor .floating-colors .color-swatch.active {
  border-color: #de9406;
  box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.3);
}
.container-whiteboard-editor .simple-color-picker {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

.container-whiteboard-editor .floating-size {
  position: absolute;
  left: 20px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}
.container-whiteboard-editor .simple-size-slider {
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.container-whiteboard-editor .simple-size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #de9406;
  cursor: pointer;
}

.container-whiteboard-editor .eraser-panel {
  position: absolute;
  left: 88px;
  top: 20px;
  width: 200px;
  background: #fafaf8;
  border: 1px solid #efeee9;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.container-whiteboard-editor .eraser-panel.top-panel {
  top: 68px;
  left: 12px;
}
.container-whiteboard-editor .toolbar-section h4 {
  margin: 0 0 4px 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.container-whiteboard-editor .toolbar-group {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.container-whiteboard-editor .toolbar-button {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: white;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 36px;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.container-whiteboard-editor .toolbar-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.container-whiteboard-editor .toolbar-button.active {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.container-whiteboard-editor .toolbar-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.container-whiteboard-editor .toolbar-button:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

.container-whiteboard-editor .tool-icon {
  font-size: 16px;
  line-height: 1;
}

.container-whiteboard-editor .color-palette {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.container-whiteboard-editor .color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.container-whiteboard-editor .color-swatch:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.container-whiteboard-editor .color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}
.container-whiteboard-editor .color-swatch.active::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.container-whiteboard-editor .color-picker {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0;
  background: none;
  transition: all 0.2s ease;
}
.container-whiteboard-editor .color-picker:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.container-whiteboard-editor .size-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.container-whiteboard-editor .size-slider {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.container-whiteboard-editor .size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}
.container-whiteboard-editor .size-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.container-whiteboard-editor .size-display {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  min-width: 30px;
  text-align: center;
  font-weight: 600;
}

.container-whiteboard-editor .view-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}
.container-whiteboard-editor .zoom-display {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  min-width: 40px;
  text-align: center;
  font-weight: 600;
}

.container-whiteboard-editor .whiteboard-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  background: transparent;
  display: none;
}
.container-whiteboard-editor .whiteboard-overlay.active {
  pointer-events: auto;
  display: block;
}
.container-whiteboard-editor .whiteboard-overlay-toolbar {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000000;
  background: rgba(248, 249, 250, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.container-whiteboard-editor .whiteboard-overlay-toolbar.dragging {
  opacity: 0.9;
  transform: rotate(2deg);
}
.container-whiteboard-editor .toolbar-drag-handle {
  cursor: move;
  padding: 6px 8px;
  text-align: center;
  color: #666;
  font-size: 11px;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.container-whiteboard-editor .toolbar-drag-handle:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}
.container-whiteboard-editor .drag-icon {
  font-size: 14px;
  color: #999;
  margin-right: 4px;
}
@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(40, 167, 69, 0.7);
  }
  70% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

.container-whiteboard-editor .sidepanel-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
}
.container-whiteboard-editor .sidepanel-header {
  padding: 20px;
  background: #de9406;
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.container-whiteboard-editor .sidepanel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  box-shadow: none;
}

.container-whiteboard-editor .sidepanel-container *:focus,
.container-whiteboard-editor .sidepanel-container *:focus-visible,
.container-whiteboard-editor .popup-container *:focus,
.container-whiteboard-editor .popup-container *:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.container-whiteboard-editor .sidepanel-container .top-toolbar,
.container-whiteboard-editor .popup-container .clean-toolbar {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.container-whiteboard-editor .popup-container {
  width: 600px;
  height: 700px;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f9fa;
}
.container-whiteboard-editor .popup-header {
  padding: 16px 20px;
  background: #de9406;
  color: white;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.container-whiteboard-editor .popup-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  padding: 0;
  margin: 0;
}

.container-whiteboard-editor .selection-info {
  display: none;
  background: rgba(255, 196, 0, 0.1);
  border: 1px solid rgba(255, 196, 0, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  color: #de9406;
  font-size: 12px;
  font-weight: 500;
  position: absolute;
  top: 68px;
  z-index: 999;
  left: 10px;
}
.container-whiteboard-editor .selection-info.show {
  display: block;
}
.container-whiteboard-editor .selection-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.container-whiteboard-editor .status-bar {
  display: none;
  min-height: 32px;
}
.container-whiteboard-editor .status-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 768px) {
  .container-whiteboard-editor .whiteboard-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 8px;
  }
  .container-whiteboard-editor .toolbar-section {
    justify-content: center;
    padding: 6px 8px;
  }
  .container-whiteboard-editor .whiteboard-overlay-toolbar {
    right: 10px;
    top: 10px;
    max-width: 200px;
    padding: 12px;
  }
  .container-whiteboard-editor .toolbar-button {
    padding: 6px 10px;
    font-size: 11px;
    min-width: 32px;
  }
  .container-whiteboard-editor .color-swatch {
    width: 28px;
    height: 28px;
  }
  .container-whiteboard-editor .popup-container {
    width: 400px;
    height: 550px;
  }
}
@media (max-width: 480px) {
  .container-whiteboard-editor .whiteboard-overlay-toolbar {
    max-width: 160px;
    padding: 8px;
  }
  .container-whiteboard-editor .toolbar-section {
    padding: 4px 6px;
  }
  .container-whiteboard-editor .toolbar-button {
    padding: 4px 8px;
    font-size: 10px;
    min-width: 28px;
  }
  .container-whiteboard-editor .color-swatch {
    width: 24px;
    height: 24px;
  }
  .container-whiteboard-editor .whiteboard-toggle {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

.container-whiteboard-editor .fade-in {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.container-whiteboard-editor .slide-in {
  animation: slideIn 0.4s ease-out;
}
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.container-whiteboard-editor .bounce-in {
  animation: bounceIn 0.6s ease-out;
}
@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.container-whiteboard-editor .loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.container-whiteboard-editor .tooltip {
  position: relative;
}
.container-whiteboard-editor .tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}
.container-whiteboard-editor .tooltip:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .container-whiteboard-editor * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .container-whiteboard-editor .toolbar-button {
    border-width: 2px;
  }
  .container-whiteboard-editor .color-swatch {
    border-width: 3px;
  }
  .container-whiteboard-editor .whiteboard-canvas {
    border: none;
  }
}

@media (prefers-color-scheme: dark) {
  .container-whiteboard-editor .whiteboard-container {
    background: #1a1a1a;
  }
  .container-whiteboard-editor .status-bar {
    background: rgba(40, 40, 40, 0.9);
    color: #ccc;
    border-top-color: #333;
  }
  .container-whiteboard-editor .sidepanel-container,
  .container-whiteboard-editor .popup-container {
    background: #1a1a1a;
  }
}