/* macOS Style Dock Styling */
.dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Only children interact */
    width: auto;
}

.dock-panel {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 24px;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), inset 0 0 1px rgba(255, 255, 255, 0.2);
    pointer-events: auto;
    transition: width 0.3s ease;
}

.dock-item-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s ease-out;
}

.dock-item {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    transition: background 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: #40ffea; /* Primary blue-green/aqua color */
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(64, 255, 234, 0.4);
    color: #fff;
}

.dock-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor; /* Use the blue-green color for strokes */
    filter: drop-shadow(0 0 8px rgba(64, 255, 234, 0.3));
}

/* Tooltip Labels */
.dock-label {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(5, 10, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.dock-item-wrapper:hover .dock-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Indicators below the icon (optional, macOS style) */
.dock-dot {
    width: 4px;
    height: 4px;
    background: #40ffea;
    border-radius: 50%;
    margin-top: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 8px rgba(64, 255, 234, 0.8);
}

.dock-item-wrapper.active .dock-dot {
    opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .dock-container {
        bottom: 15px;
    }

    .dock-panel {
        padding: 8px 14px;
        gap: 10px;
        border-radius: 20px;
    }
    
    .dock-item {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    
    .dock-item svg {
        width: 22px;
        height: 22px;
    }
    
    .dock-label {
        font-size: 0.75rem;
        top: -38px;
        padding: 3px 10px;
    }
}
