.canvas-info {
  width: 100%;
  padding: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.canvas-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a73e8;
  margin: 0 0 12px 0;
  text-align: center;
}

.canvas-info p {
  font-size: 14px;
  color: #444;
  margin: 0 0 10px 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.canvas-info .keywords {
  font-size: 13px;
  color: #666;
  margin-top: 15px;
  word-spacing: 8px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .canvas-info {
    padding: 15px 0;
  }
  
  .canvas-info h3 {
    font-size: 16px;
  }
  
  .canvas-info p {
    font-size: 13px;
    padding: 0 10px;
  }
  
  .canvas-info .keywords {
    font-size: 12px;
    word-spacing: 5px;
    padding: 0 10px;
  }
}
#canvas_painter_pro {
  width: 100%;
  height: 600px;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.painter-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  touch-action: none;
}

.painter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  flex-wrap: wrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 10;
  min-height: 60px;
  touch-action: manipulation;
}

.tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid #eee;
  flex-wrap: wrap;
}

.tool-group:last-child {
  border-right: none;
  padding-right: 0;
}

.tool-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tool-btn:hover {
  border-color: #1a73e8;
  color: #1a73e8;
  background: #f8f9fe;
  transform: translateY(-1px);
}

.tool-btn.active {
  border-color: #1a73e8;
  background: #e8f0fe;
  color: #1a73e8;
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.2);
}

.eraser-icon {
  width: 18px;
  height: 18px;
  background: 
    linear-gradient(45deg, transparent 40%, #666 40%, #666 60%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, #666 40%, #666 60%, transparent 60%);
  background-color: #f0f0f0;
  border-radius: 2px;
  position: relative;
}

.eraser-icon::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: white;
  border-radius: 1px;
}

.color-picker-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.color-label {
  font-size: 11px;
  color: #5f6368;
  font-weight: 500;
  white-space: nowrap;
}

.color-picker {
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  background: white;
  transition: all 0.2s;
  flex-shrink: 0;
  touch-action: manipulation;
}

.color-picker:hover {
  border-color: #1a73e8;
  transform: translateY(-1px);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  flex-shrink: 0;
}

.brush-slider {
  flex: 1;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  min-width: 60px;
  touch-action: manipulation;
}

.brush-slider:hover {
  background: #d5d5d5;
}

.brush-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: #1a73e8;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

.brush-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #1a73e8;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.brush-slider::-webkit-slider-thumb:hover {
  background: #1557b0;
  transform: scale(1.1);
}

.slider-value {
  font-size: 12px;
  color: #1a73e8;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
  background: #e8f0fe;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.action-btn {
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #5f6368;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:hover {
  border-color: #1a73e8;
  color: #1a73e8;
  background: #f8f9fe;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

#fullscreenBtn {
  background: #1a73e8;
  color: white;
  border-color: #1a73e8;
  font-size: 12px;
  padding: 6px 12px;
}

#fullscreenBtn:hover {
  background: #1557b0;
  border-color: #1557b0;
  color: white;
}

.painter-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

#mainCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.eraser-cursor {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid #ff4444;
  border-radius: 50%;
  background: rgba(255, 68, 68, 0.2);
  pointer-events: none;
  display: none;
  z-index: 100;
  box-shadow: 0 0 0 1px white, 0 0 0 2px rgba(255, 68, 68, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.1s, height 0.1s;
}

#canvas_painter_pro.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  border-radius: 0;
  background: white;
}

#canvas_painter_pro.fullscreen .painter-container {
  height: 100%;
}

#canvas_painter_pro.fullscreen .painter-stage {
  background: white;
}

@media (max-width: 768px) {
  .painter-toolbar {
    gap: 8px;
    padding: 6px 8px;
    min-height: 56px;
  }
  
  .tool-group {
    gap: 6px;
    padding-right: 8px;
  }
  
  .tool-btn {
    width: 40px;
    height: 40px;
    padding: 8px;
  }
  
  .color-picker {
    width: 36px;
    height: 36px;
  }
  
  .slider-container {
    min-width: 100px;
  }
  
  .action-btn {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;
  }
  
  #fullscreenBtn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .eraser-cursor {
    display: none !important;
  }
  
  .tool-btn:active,
  .action-btn:active,
  .color-picker:active {
    transform: scale(0.95);
  }
}

#mainCanvas,
.tool-btn,
.action-btn,
.color-picker {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}