/* Modern Scrollbar Styles for Alertifly */

/* Global scrollbar styles for consistency */
:root {
    --scrollbar-width: 8px;
    --scrollbar-track-color: var(--mud-palette-surface);
    --scrollbar-thumb-color: var(--mud-palette-text-secondary);
    --scrollbar-thumb-hover-color: var(--mud-palette-text-primary);
}

/* Modern scrollbars for webkit browsers */
.modern-scrollbar,
.posts-scroll-container,
.alerts-scroll-container,
.notifications-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color);
}

.modern-scrollbar::-webkit-scrollbar,
.posts-scroll-container::-webkit-scrollbar,
.alerts-scroll-container::-webkit-scrollbar,
.notifications-scroll-container::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

.modern-scrollbar::-webkit-scrollbar-track,
.posts-scroll-container::-webkit-scrollbar-track,
.alerts-scroll-container::-webkit-scrollbar-track,
.notifications-scroll-container::-webkit-scrollbar-track {
    background: var(--scrollbar-track-color);
    border-radius: calc(var(--scrollbar-width) / 2);
}

.modern-scrollbar::-webkit-scrollbar-thumb,
.posts-scroll-container::-webkit-scrollbar-thumb,
.alerts-scroll-container::-webkit-scrollbar-thumb,
.notifications-scroll-container::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb-color);
    border-radius: calc(var(--scrollbar-width) / 2);
    transition: background-color 0.2s ease;
}

.modern-scrollbar::-webkit-scrollbar-thumb:hover,
.posts-scroll-container::-webkit-scrollbar-thumb:hover,
.alerts-scroll-container::-webkit-scrollbar-thumb:hover,
.notifications-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover-color);
}

/* Smooth scrolling for all scrollable containers */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* Enhanced animations for modern feel */
.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading animations */
.pulse-loading {
    animation: pulseLoading 1.5s ease-in-out infinite;
}

@keyframes pulseLoading {
    0%, 100% { 
        opacity: 1; 
    }
    50% { 
        opacity: 0.6; 
    }
}

/* Hover effects for cards */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Custom focus styles for better accessibility */
.custom-focus:focus {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
    border-radius: 4px;
}