.shortcuts-container {
    position: relative;
}

.shortcuts-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.shortcuts-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#scroll-btn-icon {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#scroll-btn-icon.is-changing {
    opacity: 0;
    transform: scale(0.7);
}

.shortcuts-panel {
    display: none;
    position: absolute;
    bottom: 55px; /* Position above the button */
    right: 0;
    width: 450px;
    background-color: var(--main-bg);
    border: 1px solid var(--border-color);
    /* Solid background: no glassmorphism */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    z-index: 1050;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.shortcuts-container:hover .shortcuts-panel {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Align footer with main content (accounts for fixed sidebar width) */
.glass-footer {
    margin-left: 280px; /* same as .sidebar width */
    width: calc(100% - 280px);
}

/* Responsive: when layout stacks or sidebar collapses */
@media (max-width: 768px) {
    .glass-footer {
        margin-left: 0;
        width: 100%;
    }
}
