/* Animated Notifications CSS */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.toast-notification {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    overflow: hidden;
    animation: slideIn 0.5s ease forwards;
    position: relative;
    max-width: 100%;
    transform: translateX(100%);
}

.toast-notification.slide-out {
    animation: slideOut 0.5s ease forwards;
}

.toast-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.toast-notification.success::before {
    background-color: #10b981;
}

.toast-notification.error::before {
    background-color: #ef4444;
}

.toast-notification.warning::before {
    background-color: #f59e0b;
}

.toast-notification.info::before {
    background-color: #3b82f6;
}

.toast-icon {
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    color: #1f2937;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    word-wrap: break-word;
    line-height: 1.4;
}

.toast-close {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.toast-close:hover {
    background-color: #f3f4f6;
    color: #4b5563;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(59, 130, 246, 0.3);
    animation: progress 5s linear forwards;
}

.toast-notification.success .toast-progress {
    background-color: rgba(16, 185, 129, 0.3);
}

.toast-notification.error .toast-progress {
    background-color: rgba(239, 68, 68, 0.3);
}

.toast-notification.warning .toast-progress {
    background-color: rgba(245, 158, 11, 0.3);
}

.toast-notification.info .toast-progress {
    background-color: rgba(59, 130, 246, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(110%);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Bell notification animation */
.notification-bell {
    position: relative;
    animation: none;
}

.notification-bell.animate {
    animation: bellRing 1s ease-out;
}

@keyframes bellRing {
    0% {
        transform: rotate(0);
    }
    10% {
        transform: rotate(15deg);
    }
    20% {
        transform: rotate(-13deg);
    }
    30% {
        transform: rotate(11deg);
    }
    40% {
        transform: rotate(-9deg);
    }
    50% {
        transform: rotate(7deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    70% {
        transform: rotate(3deg);
    }
    80% {
        transform: rotate(-1deg);
    }
    90% {
        transform: rotate(1deg);
    }
    100% {
        transform: rotate(0);
    }
}

/* Notification badge pulse animation */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}
