/* =============================================================================
   Design Compass – Access Control
   Locked sidebar item styles + upgrade tooltip
   ============================================================================= */

/* Prevent sidebar containers from clipping the tooltip */
.app-sidebar,
.app-sidebar .sidebar-nav,
.app-sidebar .sidebar-menu {
    overflow: visible;
}

/* Locked list item – intercept pointer events on the wrapper */
.app-sidebar li.sidebar-menu-item.dcac-locked {
    position: relative;
    cursor: not-allowed;
}

/* Dim the anchor link and block all clicks on it */
.app-sidebar li.sidebar-menu-item.dcac-locked > a {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
    user-select: none;
}

/* -----------------------------------------------------------------------
   Tooltip bubble
   ----------------------------------------------------------------------- */

.dcac-tooltip {
    position: absolute;
    left: calc(100% + 18px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    z-index: 9999;

    width: 210px;
    padding: 14px 16px 12px;
    background: #1c1c1e;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);

    color: #e5e5ea;
    font-size: 12.5px;
    line-height: 1.5;
    font-family: inherit;

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

/* Reveal on hover */
.app-sidebar li.sidebar-menu-item.dcac-locked:hover .dcac-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* Left-pointing arrow – outer border layer */
.dcac-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 7px solid transparent;
    border-right-color: #3a3a3c;
}

/* Left-pointing arrow – inner fill layer */
.dcac-tooltip::after {
    content: '';
    position: absolute;
    right: calc(100% - 1px);
    top: 50%;
    transform: translateY(-50%);
    border: 7px solid transparent;
    border-right-color: #1c1c1e;
}

/* Feature name */
.dcac-tooltip .dcac-tt-title {
    display: block;
    color: #e8a010;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

/* Explanation copy */
.dcac-tooltip .dcac-tt-body {
    display: block;
    margin-bottom: 11px;
    color: #b0b0b8;
}

/* Upgrade CTA button */
.dcac-tooltip .dcac-tt-upgrade {
    display: inline-block;
    padding: 5px 12px;
    background: transparent;
    border: 1px solid #e8a010;
    border-radius: 4px;
    color: #e8a010;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: background 0.14s ease, color 0.14s ease;
    cursor: pointer;
    pointer-events: auto;
}

.dcac-tooltip .dcac-tt-upgrade:hover {
    background: #e8a010;
    color: #1c1c1e;
}
