@charset "UTF-8";
.tools-parent-container .header {
  background: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1, #FFA07A);
  background-size: 300% 100%;
  animation: rainbow 5s ease-in-out infinite;
  text-align: center;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}
@keyframes rainbow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.tools-parent-container .header h1 {
  color: white;
  font-size: clamp(24px, 5vw, 48px);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.tools-parent-container {
  /* Navigation Tabs */
}
.tools-parent-container .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .tab-btn {
  padding: 12px 20px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .tab-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .tab-btn.active {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  transform: scale(1.1);
}
.tools-parent-container {
  /* Main Container */
}
.tools-parent-container .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}
.tools-parent-container {
  /* Drawing Area */
}
.tools-parent-container .drawing-section {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
  display: none;
}
.tools-parent-container .drawing-section.active {
  display: block;
}
.tools-parent-container {
  /* Canvas Container */
}
.tools-parent-container .canvas-container {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.tools-parent-container #coloringCanvas {
  border: 3px solid #4ECDC4;
  border-radius: 15px;
  max-width: 100%;
  height: auto;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M16 2 L10 14 L2 14 L8 20 L6 30 L16 24 L26 30 L24 20 L30 14 L22 14 Z" fill="%23FFD700" stroke="%23FF69B4" stroke-width="1"/></svg>') 16 16, crosshair;
}
.tools-parent-container {
  /* Color Palette */
}
.tools-parent-container .color-palette {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .palette-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}
.tools-parent-container .colors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  max-width: 800px;
  margin: 0 auto 20px;
}
.tools-parent-container .color-btn {
  width: 50px;
  height: 50px;
  border: 3px solid white;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
}
.tools-parent-container .color-btn:hover {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .color-btn.active {
  border: 3px solid #FFD700;
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}
.tools-parent-container .color-btn.active::after {
  content: "✨";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 20px;
  animation: sparkle 1s infinite;
}
@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.5) rotate(180deg);
  }
}
.tools-parent-container {
  /* Custom Color Picker */
}
.tools-parent-container .custom-color {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}
.tools-parent-container #colorPicker {
  width: 80px;
  height: 50px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.tools-parent-container {
  /* Tolerance Control */
}
.tools-parent-container .tolerance-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}
.tools-parent-container #toleranceSlider {
  width: 200px;
}
.tools-parent-container {
  /* Tools Section */
}
.tools-parent-container .tools {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
}
.tools-parent-container .tool-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .fill-btn {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: white;
  font-size: 18px;
}
.tools-parent-container .clear-btn {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}
.tools-parent-container .download-btn {
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  color: white;
}
.tools-parent-container .undo-btn {
  background: linear-gradient(135deg, #a8edea, #fed6e3);
  color: #333;
}
.tools-parent-container .tool-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.tools-parent-container {
  /* Gallery Section */
}
.tools-parent-container .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.tools-parent-container .gallery-item {
  background: white;
  border-radius: 15px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tools-parent-container .gallery-item::before {
  content: "🎨";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tools-parent-container .gallery-item:hover::before {
  opacity: 1;
}
.tools-parent-container .gallery-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.tools-parent-container .gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
}
.tools-parent-container .gallery-item p {
  margin-top: 10px;
  font-weight: bold;
  color: #333;
  font-size: 12px;
}
.tools-parent-container {
  /* Loading Animation */
}
.tools-parent-container .loading {
  display: none;
  text-align: center;
  padding: 50px;
}
.tools-parent-container .loading.active {
  display: block;
}
.tools-parent-container .spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.tools-parent-container {
  /* Stars Background */
}
.tools-parent-container .stars {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.tools-parent-container .star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}
@keyframes twinkle {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
.tools-parent-container {
  /* Responsive */
}
@media (max-width: 768px) {
  .tools-parent-container .gallery {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  .tools-parent-container .colors-grid {
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  }
  .tools-parent-container .color-btn {
    width: 40px;
    height: 40px;
  }
}