.bottom-dock-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  width: auto;
}

.dock-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 10px 14px;
  border-radius: 24px;
  box-shadow: 0 20px 40px -4px rgba(0, 0, 0, 0.1),
    0 8px 16px -4px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center bottom;
}

.dock-glass:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px -5px rgba(0, 0, 0, 0.15),
    0 10px 20px -5px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.dock-item {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: none !important;
  outline: none !important;
  background: transparent;
  color: var(--text-secondary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.dock-item i {
  display: block;
  transition: transform 0.3s ease;
}

.dock-item#nearest-btn {
  color: #f43f5e;
}
.dock-item#isochrone-btn {
  color: #8b5cf6;
}
.dock-item#distance-btn {
  color: #0ea5e9;
}
.dock-item#buffer-btn {
  color: #10b981;
}
.dock-item#gap-btn {
  color: #f59e0b;
}
.dock-item#compare-btn {
  color: #6366f1;
}

.dock-item:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary-color);
  transform: translateY(-4px);
}
.dock-item:hover i {
  transform: scale(1.15);
}

.dock-item.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white !important;
  box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.4),
    0 4px 8px -2px rgba(79, 70, 229, 0.2);
  transform: translateY(-6px);
}
.dock-item.active:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.5),
    0 6px 12px -3px rgba(79, 70, 229, 0.3);
}

.dock-item#clear-analysis {
  margin-left: 8px;
  color: var(--danger-color);
  background: rgba(254, 226, 226, 0.5);
  border: 1px solid rgba(252, 165, 165, 0.3) !important;
}
.dock-item#clear-analysis:hover {
  background: var(--danger-color);
  color: white;
  box-shadow: 0 8px 20px -5px rgba(244, 63, 94, 0.4);
  border-color: transparent !important;
}

.dock-separator {
  width: 1px;
  height: 24px;
  background: rgba(0, 0, 0, 0.05);
  margin: 0 4px;
  display: none !important;
}

/* Tooltips */
.dock-item[data-tooltip] {
  position: relative;
}
.dock-item[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  animation: fadeIn 0.2s ease-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dock-item[data-tooltip]:hover::before {
  content: "";
  position: absolute;
  bottom: 105%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.9) transparent transparent transparent;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

/* Dark Mode */
[data-theme="dark"] .dock-glass {
  background: rgba(30, 41, 59, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 10px 30px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .dock-item {
  color: #94a3b8;
}
[data-theme="dark"] .dock-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
}
[data-theme="dark"] .dock-item.active {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
