﻿/*Styling for viewer nav rail*/
.viewer-nav-rail {
    position: fixed;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    z-index: 1040;
    overflow: hidden;
    transition: width 180ms ease, box-shadow 180ms ease;
}

    .viewer-nav-rail:hover {
        width: 220px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.30);
    }

.viewer-nav-item {
    display: flex;
    align-items: center;
    height: 54px;
    padding: 0 18px;
    color: var(--viewer-folder-text-color);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 120ms ease, color 120ms ease;
}

    .viewer-nav-item:hover,
    .viewer-nav-item:focus {
        color: var(--viewer-folder-text-color);
        text-decoration: none;
        background: rgba(255, 255, 255, 0.12);
    }

    .viewer-nav-item i {
        width: 24px;
        font-size: 20px;
        text-align: center;
        flex-shrink: 0;
    }

.viewer-nav-label {
    margin-left: 18px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 120ms ease;
}

.viewer-nav-rail:hover .viewer-nav-label {
    opacity: 1;
}

.viewer-nav-item.active {
    background: rgba(60, 130, 255, 0.18);
    color: #fff;
}

    .viewer-nav-item.active i {
        color: #fff;
    }

.viewer-nav-item.active {
    background: rgba(60, 130, 255, 0.12);
}

    .viewer-nav-item.active i {
        color: #ff4d6d;
    }

@media (max-width: 720px) {

    .viewer-nav-rail {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        top: auto;
        width: auto;
        height: 66px;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: space-around;
        border-radius: 20px;
    }

        .viewer-nav-rail:hover {
            width: auto;
        }

    .viewer-nav-item {
        flex-direction: column;
        justify-content: center;
        height: auto;
        padding: 0;
        gap: 4px;
    }

    .viewer-nav-label {
        opacity: 1 !important;
        margin-left: 0;
        font-size: 11px;
        line-height: 1;
    }
}