/* --- GARDEN PLANNER PRO STYLES --- */

/* Container Layout */
.planner-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- TOOLBOX (Design Upgrade) --- */
.toolbox {
  background: #ffffff;
  padding: 25px;
  border-radius: 20px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Soft Shadow */
  width: 280px;
  flex-shrink: 0;
}

.toolbox h3 {
  margin-top: 0;
  color: #34495e;
  font-size: 22px;
  border-bottom: 3px solid #f0f2f5;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.tool-group label {
  font-size: 11px;
  color: #95a5a6;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

/* Tool Buttons - 3D Style */
.tool-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
  color: #555;
  position: relative;
  top: 0;
}

/* Icons inside buttons */
.tool-btn .icon { font-size: 20px; }

/* Hover Effect */
.tool-btn:hover {
  background: #fff;
  border-color: #bdc3c7;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Active State (Pressed) */
.tool-btn.active-tool {
  background: #e8f8f5;
  border-color: #2ecc71;
  color: #27ae60;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2); /* Glow Ring */
}

/* Specific Tool Colors */
.tool-btn.god-tier.active-tool {
  background: #f3e5f5;
  border-color: #9b59b6;
  color: #8e44ad;
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.2);
}

.tool-btn.eraser.active-tool {
  background: #fff3e0;
  border-color: #ff9800;
  color: #e65100;
  box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

.tool-btn.danger {
  background: #ffebee;
  color: #c62828;
  border-color: #ffcdd2;
  margin-top: 20px;
  justify-content: center;
}
.tool-btn.danger:hover { background: #ef9a9a; color: white; }

/* --- GRID AREA (Visual Upgrade) --- */
.grid-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stats Bar Floating */
.stats-bar {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  background: #2c3e50;
  color: white;
  padding: 12px 30px;
  border-radius: 100px;
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.3);
}

/* THE GRID CONTAINER */
.garden-grid {
  display: grid;
  grid-template-columns: repeat(10, 50px);
  grid-template-rows: repeat(10, 50px);
  gap: 2px;
  padding: 15px;
  background: #5d4037; /* Dark Mud Base */
  border-radius: 12px;
  border: 6px solid #4e342e; /* Wooden Frame */
  box-shadow: 
    inset 0 0 30px rgba(0,0,0,0.5), /* Inner Depth */
    0 20px 40px rgba(0,0,0,0.2); /* Drop Shadow */
}

/* INDIVIDUAL CELLS */
.grid-cell {
  width: 50px;
  height: 50px;
  background-color: #795548; /* Soil Color */
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px; /* Bigger Icons */
  transition: transform 0.1s;
  /* Texture Pattern (Soil Dots) */
  background-image: radial-gradient(#8d6e63 15%, transparent 16%);
  background-size: 8px 8px;
}

.grid-cell:hover {
  filter: brightness(1.2);
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* WATER EFFECT (The most important part) */
.grid-cell.watered {
  /* Semi-transparent Blue Overlay so soil shows through */
  background-color: rgba(41, 182, 246, 0.6) !important; 
  box-shadow: inset 0 0 15px #0288d1;
  border: 1px solid rgba(255,255,255,0.3);
  animation: shimmer 2s infinite linear;
}

/* Water Shimmer Animation */
@keyframes shimmer {
  0% { background-color: rgba(41, 182, 246, 0.6); }
  50% { background-color: rgba(79, 195, 247, 0.7); }
  100% { background-color: rgba(41, 182, 246, 0.6); }
}

/* PLANT STYLE */
.grid-cell.has-plant {
  background-color: #aed581 !important; /* Green Grass base */
  border: 2px solid #7cb342;
  background-image: none; /* Remove soil texture */
}

/* PLANT + WATER (Combined Look) */
.grid-cell.has-plant.watered {
  background-color: #4db6ac !important; /* Tealish Green (Wet Grass) */
  border-color: #00897b;
}

/* Instruction Text */
.instruction {
  margin-top: 20px;
  font-size: 14px;
  color: #7f8c8d;
  background: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .garden-grid {
    transform: scale(0.85); /* Shrink slightly on mobile */
  }
  .planner-container {
    flex-direction: column;
    align-items: center;
  }
  .toolbox { width: 90%; }
}