/* BirLib Animations and Styles */

/* Popup Animations */
.popup-show {
    animation: popupFadeIn 0.3s ease-out;
}

.popup-hide {
    animation: popupFadeOut 0.3s ease-in;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 16px;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 0.8;
}

/* Loading Spinner */
.birlib-spinner {
    border: 3px solid rgba(108, 92, 231, 0.2);
    border-top: 3px solid #6c5ce7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: birlib-spin 1s linear infinite;
    margin: 20px auto;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}

@keyframes birlib-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.birlib-hidden {
    display: none !important;
}

.birlib-text-center {
    text-align: center;
}

.birlib-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.birlib-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid rgba(108, 92, 231, 0.2);
    border-top: 3px solid #6c5ce7;
    border-radius: 50%;
    animation: birlib-spin 1s linear infinite;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.2);
}