/* Notification system styles for EduLearn */

.notification-popup {
    width: fit-content;
    min-width: 250px;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    /* Ensure notifications don't affect other page elements */
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-popup .fa-times {
    font-size: 1rem;
}

.notification-popup button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: auto;
}

/* Boom Notification Styles */
.boom-notification-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.boom-notification-overlay:not(.hidden) {
    opacity: 1;
}

.boom-notification-container {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.boom-notification-container.scale-100 {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.boom-notification-container.scale-95 {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
}

/* Boom Blast animation for success modal */
@keyframes boomBlast {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

@keyframes boomStar {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(2) rotate(360deg);
        opacity: 0;
    }
}

.boom-blast-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(72, 187, 120, 0.8), rgba(72, 187, 120, 0));
    animation: boomBlast 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.boom-blast-star {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(72, 187, 120, 0.8);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: boomStar 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

/* Additional 3D animations */
@keyframes pulse3d {
    0% {
        transform: scale(1) translateZ(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05) translateZ(10px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    100% {
        transform: scale(1) translateZ(0);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

.pulse-3d {
    animation: pulse3d 2s infinite;
}