/**
 * Universal Banner Styles
 * 
 * CSS styles for the blue success banner component
 * These styles complement the Tailwind classes for enhanced functionality
 */


/* Animation improvements */
.universal-banner {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease-out;
    will-change: transform, opacity;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.universal-banner.sliding-in {
    animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.universal-banner.sliding-out {
    animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Icon animations */
.universal-banner svg {
    transition: transform 0.2s ease;
}

.universal-banner-close:hover svg {
    transform: scale(1.1);
}

/* Close button styles */
.universal-banner-close {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .universal-banner .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .universal-banner p {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
    
    .universal-banner svg {
        width: 1.125rem;
        height: 1.125rem;
    }
    
    .universal-banner-close {
        width: 28px;
        height: 28px;
    }
}

/* Accessibility improvements */
.universal-banner:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: -2px;
}

.universal-banner-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}