/* Drawing Canvas and Controls */
.drawing-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8000;
  pointer-events: none;
  touch-action: none;
}

.drawing-mode-active .custom-cursor {
  opacity: 0.5;
}

.drawing-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 9500;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.drawing-controls button {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  background-color: #f5f5f5;
}

.drawing-controls button:hover {
  background-color: #e0e0e0;
}

.drawing-toggle {
  position: relative;
}

.drawing-toggle.active {
  background-color: #3a5db0 !important;
  color: white;
}

.drawing-color-picker {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
}

.drawing-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.drawing-color-picker::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.drawing-width-control {
  display: flex;
  align-items: center;
  gap: 5px;
}

.drawing-width-control button {
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: bold;
}

.drawing-clear {
  color: #ff5252;
}

/* Tooltip for drawing mode */
.drawing-mode-active::after {
  content: 'Drawing Mode Active - Press D to toggle, C to clear';
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  animation: fadeOut 3s forwards;
  animation-delay: 3s;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Mobile styles */
@media (hover: none) and (pointer: coarse) {
  .drawing-canvas,
  .drawing-controls {
    display: none !important;
  }
}
