/* Instant Notifications Styles */

@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;
    }
}

.instant-notification-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-left: 4px solid #c8102e;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.instant-notification-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.instant-notification-toast .toast-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--gray-400);
    transition: color 0.2s;
    flex-shrink: 0;
}

.instant-notification-toast .toast-close:hover {
    color: var(--gray-600);
}

/* Notification badge pulse animation */
.notification-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Multiple notifications stacking */
.instant-notification-toast + .instant-notification-toast {
    margin-top: 0.5rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .instant-notification-toast {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        top: 70px;
    }
}


