/* ==================== */
/* SIDEBAR DASHBOARD */
/* ==================== */

.sidebar-dashboard {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 64px;
    height: calc(100vh - var(--header-height));
    background: var(--background-alt);
    display: flex;
    z-index: 90;
    /*box-shadow: var(--shadow-md);*/
}


.sidebar-nav {
    width: 100%;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    position: relative;
}

/* ==================== */
/* LINK */
/* ==================== */

.sidebar-link {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
    color: var(--primary-hover);
}

/* ==================== */
/* STATO ATTIVO */
/* ==================== */

.sidebar-link.is-active {
    background: var(--background-active);
    color: var(--primary-color);
}

.sidebar-link.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

/* ==================== */
/* TOOLTIP */
/* ==================== */

.sidebar-tooltip {
    position: absolute;
    left: 76px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--background-alt);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow-md);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.sidebar-link:hover .sidebar-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

/* ==================== */
/* LAYOUT DASHBOARD */
/* ==================== */

.dashboard-layout {
    padding-left: 64px;
}

/* ==================== */
/* MOBILE: NASCONDI SIDEBAR */
/* ==================== */

@media (max-width: 968px) {
    .sidebar-dashboard {
        display: none;
    }

    .dashboard-layout {
        padding-left: 0;
    }
}
