/* Sticky Icon Sidebar Styles */

.sticky-icon-sidebar {
    position: fixed;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.sticky-icon-sidebar:hover {
    background-color: transparent;
    box-shadow: none;
}

.sticky-icon-sidebar .sis-icon-link {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.sticky-icon-sidebar .sis-icon-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sticky-icon-sidebar .sis-icon-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.sticky-icon-sidebar .sis-icon-link:hover img {
    border-color: #0073aa;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .sticky-icon-sidebar {
        right: 3px;
        padding: 5px;
        gap: 8px;
        border-radius: 0;
    }
    
    .sticky-icon-sidebar .sis-icon-link {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .sticky-icon-sidebar {
        right: 3px;
        padding: 5px;
        gap: 6px;
        border-radius: 0;
    }
    
    .sticky-icon-sidebar .sis-icon-link {
        width: 45px;
        height: 45px;
    }
}

/* Accessibility improvements */
.sticky-icon-sidebar .sis-icon-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Animation for smooth appearance */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

.sticky-icon-sidebar {
    animation: slideInFromRight 0.5s ease-out;
}

/* Hide empty sidebar */
.sticky-icon-sidebar:empty {
    display: none;
}

/* Ensure icons don't interfere with other content */
body.admin-bar .sticky-icon-sidebar {
    top: calc(50% + 16px);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .sticky-icon-sidebar {
        background-color: white;
        border: 2px solid black;
    }
    
    .sticky-icon-sidebar .sis-icon-link img {
        border: 2px solid black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .sticky-icon-sidebar,
    .sticky-icon-sidebar .sis-icon-link,
    .sticky-icon-sidebar .sis-icon-link img {
        transition: none;
        animation: none;
    }
    
    .sticky-icon-sidebar .sis-icon-link:hover {
        transform: none;
    }
}