/* Floating Dock Styles */
.floating-dock-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

.floating-dock-container {
    display: flex;
    align-items: flex-end;
    /* Align to bottom so they grow up */
    gap: 0.75rem;
    /* gap-3 */
    padding: 1rem;
    background-color: #f8fafc;
    /* slate-50 */
    border: 1px solid #e2e8f0;
    /* slate-200 */
    border-radius: 1.5rem;
    /* rounded-2xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 5rem;
    /* Fixed height container to prevent layout shifts outside */
    box-sizing: content-box;
    /* Let padding add to height */
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
}

.floating-dock-container::-webkit-scrollbar {
    display: none;
}

.dark .floating-dock-container {
    background-color: #0f172a;
    /* slate-900 */
    border-color: #1e293b;
    /* slate-800 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    /* Base width 48px */
    height: 3rem;
    /* Base height 48px */
    border-radius: 9999px;
    /* rounded-full */
    background-color: #e2e8f0;
    /* slate-200 */
    color: #475569;
    /* slate-600 */
    cursor: pointer;
    transition: background-color 0.2s;
    /* Only color transitions, size handled by JS */
    will-change: width, height;
    /* Optimize for size changes */
}

.dark .dock-item {
    background-color: #1e293b;
    /* slate-800 */
    color: #94a3b8;
    /* slate-400 */
}

.dock-item:hover {
    background-color: #cbd5e1;
    /* slate-300 */
    color: #0f172a;
    /* slate-900 */
}

.dark .dock-item:hover {
    background-color: #334155;
    /* slate-700 */
    color: #ffffff;
}

/* Tooltip */
.dock-tooltip {
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 50;
}

.dark .dock-tooltip {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Icon size inside */
.dock-item svg {
    width: 60%;
    height: 60%;
    pointer-events: none;
}