* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
}

#dock-container {
  position: fixed;
  top: 8rem;
  right: 0.2rem;
  z-index: 9999;
}

.dock-outer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  background-color: rgba(6, 0, 16, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.5),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dock-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(2, 2, 245, 0.9), rgba(2, 2, 245, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  outline: none;
  transition: 
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
  will-change: width, height;
}

.dock-item:hover {
  background: linear-gradient(135deg, rgba(40, 40, 56, 0.9), rgba(27, 27, 37, 0.9));
  border-color: rgba(255, 255, 255, 0.2);
}

.dock-item:active {
  transform: scale(0.95);
}

.dock-item:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  pointer-events: none;
  user-select: none;
}

.dock-icon i {
  transition: transform 0.2s ease;
}

.dock-item:hover .dock-icon i {
  transform: scale(1.1);
}

.dock-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.75rem);
  transform: translateY(-50%);
  white-space: nowrap;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 0, 16, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.dock-label::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 6px;
  border-color: transparent transparent transparent rgba(6, 0, 16, 0.95);
}

.dock-item:hover .dock-label,
.dock-item:focus-visible .dock-label {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  #dock-container {
    top: 8rem;
    right: 0.2rem;
  }

  .dock-panel {
    gap: 0.3rem;
    padding: 0.375rem 0.375rem;
  }

  .dock-label {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

@media (max-width: 480px) {
  #dock-container {
    top: 0.25rem;
    right: 0.25rem;
  }

  .dock-panel {
    gap: 0.5rem;
    padding: 0.25rem 0.25rem;
    border-radius: 0.75rem;
  }

  .dock-item {
    border-radius: 8px;
  }

  .dock-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    right: calc(100% + 0.5rem);
  }
  .dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  pointer-events: none;
  user-select: none;
}
}