/* Shared styles for all tool pages */

/* Home button in top left corner */
.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-decoration: none;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  width: 36px;
  height: 36px;
  border: none;
}

.home-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.home-button:hover {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.home-button:hover svg {
  transform: translateX(-3px);
}

.home-button:active {
  transform: translateX(-1px) scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .home-button {
    width: 34px;
    height: 34px;
    padding: 7px;
    top: 15px;
    left: 15px;
  }

  .home-button svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 360px) {
  .home-button {
    width: 32px;
    height: 32px;
    padding: 6px;
    top: 10px;
    left: 10px;
  }

  .home-button svg {
    width: 14px;
    height: 14px;
  }
}
