.module-petal {
  width: 200px;
  height: 200px;
  border-top-right-radius: 80px;
  border-bottom-left-radius: 80px;
  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.module-petal.unlocked {
  background: linear-gradient(135deg, rgb(4, 128, 253) 0%, rgb(85, 212, 233) 100%);
}

.module-petal.unlocked:hover {
  filter: brightness(1.1);
  transform: scale(1.1);
}

.module-petal.locked {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

.lock-icon {
    margin-top: 10px;
    font-size: 30px;
    color: white;
    opacity: 0.9;
    pointer-events: none;
    user-select: none;
}

.module-petal {
    position: relative;
}

/* Tooltip above the petal */
.module-petal .tooltip {
    position: absolute;
    top: 150px; /* Distance above the petal — adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    background-color: yellow;
    color: black;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

/* Show tooltip on hover */
.module-petal.locked:hover .tooltip {
    opacity: 1;
    visibility: visible;
}