.dock {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center; /* Center the dockContainer */
  align-items: center;
  background-color: rgba(15, 23, 42, 0.8); /* Dark blue with transparency */
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 8px 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 191, 255, 0.3);
  z-index: 1000;
  max-width: 90vw; /* Ensure it doesn't overflow on small screens */
  border: 1px solid rgba(0, 191, 255, 0.2);
}

.dockContainer {
  display: flex;
  gap: 15px;
  justify-content: center; /* Ensure icons are centered within the container */
  align-items: flex-end; /* Align items to the bottom for running dots */
}

.dockItem {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  border-radius: 10px;
  padding: 5px;
  color: #e0e0e0;
}

.dockItem:hover {
  background-color: rgba(0, 191, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.appIcon {
  font-size: 2.2rem; /* For emoji icons */
  display: flex; /* For Lucide icons */
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.appIcon svg {
  width: 32px; /* Adjust size for Lucide icons */
  height: 32px;
  color: #00bfff; /* Icon color */
  filter: drop-shadow(0 0 5px rgba(0, 191, 255, 0.5));
}

.runningDot {
  position: absolute;
  bottom: -5px;
  width: 6px;
  height: 6px;
  background-color: #00bfff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.8);
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.7;
  }
}

.timeDisplay {
  margin-left: 20px;
  font-size: 1rem;
  color: #a0a0a0;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 191, 255, 0.1);
  box-shadow: inset 0 0 5px rgba(0, 191, 255, 0.1);
}

@media (max-width: 768px) {
  .dock {
    bottom: 5px;
    padding: 6px 10px;
    border-radius: 10px;
  }

  .dockContainer {
    gap: 10px;
  }

  .dockItem {
    width: 45px;
    height: 45px;
  }

  .appIcon {
    font-size: 2rem;
  }

  .appIcon svg {
    width: 28px;
    height: 28px;
  }

  .runningDot {
    width: 5px;
    height: 5px;
    bottom: -4px;
  }

  .timeDisplay {
    margin-left: 15px;
    font-size: 0.9rem;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .dock {
    bottom: 5px;
    padding: 5px 8px;
    border-radius: 8px;
  }

  .dockContainer {
    gap: 8px;
  }

  .dockItem {
    width: 40px;
    height: 40px;
  }

  .appIcon {
    font-size: 1.8rem;
  }

  .appIcon svg {
    width: 24px;
    height: 24px;
  }

  .runningDot {
    width: 4px;
    height: 4px;
    bottom: -3px;
  }

  .timeDisplay {
    margin-left: 10px;
    font-size: 0.8rem;
    padding: 3px 6px;
  }
}
