/* Plan Restrictions Styling */

/* Base styling for restricted navigation items */
.plan-restricted {
    position: relative;
    transition: all 0.3s ease;
}

/* Blur effect for restricted items */
.plan-restricted .fi-sidebar-nav-item-label,
.plan-restricted .fi-sidebar-nav-item-icon {
    filter: blur(1.5px);
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Hover effect to remove blur temporarily */
.plan-restricted:hover .fi-sidebar-nav-item-label,
.plan-restricted:hover .fi-sidebar-nav-item-icon {
    filter: blur(0px);
    opacity: 0.8;
}

/* Overlay for upgrade message */
.plan-restricted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 6px;
}

.plan-restricted:hover::after {
    opacity: 1;
}

/* Upgrade tooltip */
.plan-upgrade-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 300px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.plan-upgrade-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.plan-upgrade-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(0, 0, 0, 0.9);
}

/* Restricted badge */
.plan-restricted-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.plan-restricted:hover .plan-restricted-badge {
    opacity: 1;
}

/* Click prevention overlay */
.plan-restricted.click-disabled {
    cursor: not-allowed;
}

.plan-restricted.click-disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: not-allowed;
}

/* Additional styling for different navigation states */
.plan-restricted.fi-sidebar-nav-item--active {
    background: rgba(239, 68, 68, 0.1) !important;
}

.plan-restricted.fi-sidebar-nav-item--active .fi-sidebar-nav-item-label,
.plan-restricted.fi-sidebar-nav-item--active .fi-sidebar-nav-item-icon {
    color: #ef4444 !important;
}

/* Lock icon for restricted items */
.plan-restricted-lock {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: #ef4444;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.plan-restricted:hover .plan-restricted-lock {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plan-upgrade-tooltip {
        max-width: 250px;
        font-size: 13px;
        padding: 10px 14px;
    }
}

/* Animation for restricted state change */
@keyframes restrictedPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.plan-restricted.animate-pulse .fi-sidebar-nav-item-label,
.plan-restricted.animate-pulse .fi-sidebar-nav-item-icon {
    animation: restrictedPulse 2s ease-in-out infinite;
}

/* Contact support button in tooltip */
.plan-upgrade-button {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.plan-upgrade-button:hover {
    background: #2563eb;
    color: white;
    text-decoration: none;
} 