@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}
.tools-parent-container .container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 100vw;
}
.tools-parent-container {
  /* Header */
}
.tools-parent-container .header {
  background: linear-gradient(45deg, #ff6ec7, #ffd93d);
  padding: 10px 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  border-bottom: 5px solid rgba(255, 255, 255, 0.3);
}
.tools-parent-container .header h1 {
  color: white;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  margin: 0;
  letter-spacing: 2px;
}
.tools-parent-container .subtitle {
  color: white;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  margin-top: 5px;
  opacity: 0.95;
}
.tools-parent-container .emoji-decoration {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  animation: wiggle 2s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-10deg) scale(1.1);
  }
  75% {
    transform: rotate(10deg) scale(1.1);
  }
}
.tools-parent-container {
  /* Control Panel */
}
.tools-parent-container .control-panel {
  background: linear-gradient(45deg, #ffeaa7, #fdcb6e);
  padding: 15px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 3px solid rgba(255, 255, 255, 0.4);
}
.tools-parent-container .btn {
  background: linear-gradient(45deg, #6c5ce7, #74b9ff);
  color: white;
  border: 3px solid white;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: clamp(1rem, 3vw, 1.3rem);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  font-family: inherit;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tools-parent-container .big-btn {
  transform: scale(1);
}
.tools-parent-container .big-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.tools-parent-container .big-btn:active {
  transform: translateY(-2px) scale(1.05);
}
.tools-parent-container .btn-icon {
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
}
.tools-parent-container .btn-text {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
}
.tools-parent-container .btn.success {
  background: linear-gradient(45deg, #00b894, #55a3ff);
}
.tools-parent-container .btn.danger {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}
.tools-parent-container .btn.info {
  background: linear-gradient(45deg, #a29bfe, #6c5ce7);
}
.tools-parent-container {
  /* Main Content */
}
.tools-parent-container .main-content {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 10px;
  padding: 10px;
}
.tools-parent-container {
  /* Workspace */
}
.tools-parent-container .workspace-container {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 4px solid #fff;
}
.tools-parent-container .workspace-header {
  background: linear-gradient(45deg, #fd79a8, #a29bfe);
  padding: 10px;
  text-align: center;
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.tools-parent-container #blocklyDiv {
  flex: 1;
  width: 100%;
}
.tools-parent-container {
  /* Play Area */
}
.tools-parent-container .play-area {
  width: 450px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 4px solid #fff;
  position: relative;
}
.tools-parent-container .play-header {
  background: linear-gradient(45deg, #fdcb6e, #e17055);
  padding: 10px;
  text-align: center;
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.tools-parent-container .playground {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #87CEEB 0%, #98D98E 100%);
  overflow: hidden;
  margin: 10px;
  border-radius: 20px;
  border: 3px solid #fff;
  min-height: 400px;
}
.tools-parent-container {
  /* Grid background */
}
.tools-parent-container .grid-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.tools-parent-container {
  /* Decorations */
}
.tools-parent-container .decoration {
  position: absolute;
  user-select: none;
  pointer-events: none;
}
.tools-parent-container .decoration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
.tools-parent-container .sun {
  top: 20px;
  right: 30px;
  width: 60px;
  height: 60px;
  animation: pulse 3s ease-in-out infinite;
}
.tools-parent-container .cloud {
  width: 80px;
  height: 50px;
  animation: drift 20s ease-in-out infinite;
}
.tools-parent-container .cloud-1 {
  top: 40px;
  left: 60px;
}
.tools-parent-container .cloud-2 {
  top: 80px;
  right: 100px;
  animation-delay: -10s;
}
.tools-parent-container .tree {
  bottom: 20px;
  left: 30px;
  width: 60px;
  height: 80px;
}
.tools-parent-container .flower {
  bottom: 20px;
  width: 40px;
  height: 50px;
}
.tools-parent-container .flower-1 {
  left: 100px;
}
.tools-parent-container .flower-2 {
  right: 80px;
}
.tools-parent-container .house {
  top: 50%;
  right: 30px;
  width: 70px;
  height: 70px;
  transform: translateY(-50%);
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
@keyframes drift {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}
.tools-parent-container {
  /* Cat */
}
.tools-parent-container .cat {
  position: absolute;
  width: 80px;
  height: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  z-index: 10;
  cursor: pointer;
}
.tools-parent-container .cat img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}
.tools-parent-container .cat.moving {
  animation: bounce 0.5s ease;
}
@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -60%) scale(1.1);
  }
}
.tools-parent-container {
  /* Trail effect */
}
.tools-parent-container .trail {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.8), transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: fadeOut 1s ease-out forwards;
}
@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(3);
  }
}
.tools-parent-container {
  /* Achievement popup */
}
.tools-parent-container .achievement {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, #f39c12, #f1c40f);
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  z-index: 100;
  animation: popIn 0.5s ease;
  border: 5px solid white;
}
.tools-parent-container .achievement.hidden {
  display: none;
}
.tools-parent-container .achievement-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 10px;
}
.tools-parent-container .achievement p {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
@keyframes popIn {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.tools-parent-container {
  /* Responsive Design */
}
@media (max-width: 1024px) {
  .tools-parent-container .play-area {
    width: 400px;
  }
  .tools-parent-container .cat {
    width: 70px;
    height: 70px;
  }
}
@media (max-width: 768px) {
  .tools-parent-container .main-content {
    flex-direction: column;
  }
  .tools-parent-container .play-area {
    width: 100%;
    height: 350px;
  }
  .tools-parent-container .workspace-container {
    min-height: 300px;
  }
  .tools-parent-container .playground {
    min-height: 250px;
  }
  .tools-parent-container .decoration {
    font-size: 1.5rem;
  }
  .tools-parent-container .sun {
    width: 45px;
    height: 45px;
  }
  .tools-parent-container .cloud {
    width: 60px;
    height: 38px;
  }
  .tools-parent-container .cat {
    width: 60px;
    height: 60px;
  }
  .tools-parent-container .tree {
    width: 45px;
    height: 60px;
  }
  .tools-parent-container .flower {
    width: 30px;
    height: 38px;
  }
  .tools-parent-container .house {
    width: 52px;
    height: 52px;
  }
}
@media (max-width: 480px) {
  .tools-parent-container .header h1 {
    font-size: 1.5rem;
  }
  .tools-parent-container .btn {
    min-width: 80px;
    padding: 10px 15px;
  }
  .tools-parent-container .btn-icon {
    font-size: 1.2rem;
  }
  .tools-parent-container .btn-text {
    font-size: 0.8rem;
  }
  .tools-parent-container .workspace-container {
    min-height: 250px;
  }
  .tools-parent-container .playground {
    min-height: 200px;
  }
  .tools-parent-container .cat {
    width: 50px;
    height: 50px;
  }
}
.tools-parent-container {
  /* Touch device optimizations */
}
@media (hover: none) {
  .tools-parent-container .btn:hover {
    transform: none;
  }
  .tools-parent-container .btn:active {
    transform: scale(0.95);
  }
}
.tools-parent-container {
  /* Blockly customization for kids */
}
.tools-parent-container .blocklyToolboxDiv {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e) !important;
  border-right: 3px solid white !important;
}
.tools-parent-container .blocklyTreeRow {
  padding: 10px !important;
  margin: 5px !important;
  border-radius: 10px !important;
  font-size: 1.1rem !important;
}
.tools-parent-container .blocklyTreeRow:hover {
  background: rgba(255, 255, 255, 0.5) !important;
}
.tools-parent-container .blocklyFlyout {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 3px solid #fdcb6e !important;
}
.tools-parent-container {
  /* Print styles */
}
@media print {
  .tools-parent-container body {
    background: white;
  }
  .tools-parent-container .control-panel {
    display: none;
  }
}