

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 420px;
    pointer-events: none;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 420px;
    pointer-events: all;
    position: relative;
    overflow: hidden;
    transform-origin: right center;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
}

.notification-link {
    color: #0dae9c;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.notification-link:hover {
    color: #0b9987;
    text-decoration: underline;
}

.notification-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: #1e293b;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-info .notification-icon {
    color: #3b82f6;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-success .notification-icon {
    color: #22c55e;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
}

.notification-warning .notification-icon {
    color: #f59e0b;
}

.notification-warning .notification-message {
    color: #78350f;
}

.notification-error {
    border-left: 4px solid #ef4444;
    background: #fef2f2;
}

.notification-error .notification-icon {
    color: #ef4444;
}

.notification-error .notification-message {
    color: #7f1d1d;
}

@keyframes slide-in {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

.notification-slide-in {
    animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.notification-slide-out {
    animation: slide-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 480px) {
    .notification-container {
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .notification {
        min-width: auto;
        max-width: none;
        width: 100%;
    }

    .notification-content {
        padding: 12px;
    }

    .notification-message {
        font-size: 13px;
    }

    .notification-container:last-of-type {
        top: auto;
        bottom: 10px;
    }

    @keyframes slide-in-mobile {
        from {
            transform: translateY(120%);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @keyframes slide-out-mobile {
        from {
            transform: translateY(0);
            opacity: 1;
        }

        to {
            transform: translateY(120%);
            opacity: 0;
        }
    }

    .notification-slide-in {
        animation: slide-in-mobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .notification-slide-out {
        animation: slide-out-mobile 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
}

@media (prefers-color-scheme: dark) {
    .notification {
        background: #334155;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .notification-message {
        color: #e2e8f0;
    }

    .notification-close {
        color: #94a3b8;
    }

    .notification-close:hover {
        color: #f1f5f9;
    }

    .notification-warning {
        background: #78350f;
    }

    .notification-warning .notification-message {
        color: #fef3c7;
    }

    .notification-error {
        background: #7f1d1d;
    }

    .notification-error .notification-message {
        color: #fecaca;
    }
}
