.notification-message__text strong {
    font-weight: 600;
}

.notification-message__text small {
    font-size: var(--font-11);
    opacity: 0.8;
}

/* Loading overlay */
#notification-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.notification-message {
    position: relative;
    margin-bottom: var(--gap-8);
    padding: var(--gap-12) var(--gap-14);
    border-radius: var(--gap-6);
    color: var(--background);
    font-size: var(--font-12);
    font-weight: 500;
    max-width: var(--sidebar-width);
    box-shadow: var(--box-shadow);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
    will-change: transform, opacity;
}

.notification-message--visible {
    pointer-events: auto;
    transform: translateX(0);
    opacity: 1;
    animation: slideInRight 0.3s ease-out;
}

.notification-message--removing {
    transform: translateX(100%);
    opacity: 0;
    animation: slideOutRight 0.3s ease-in;
}

/* Message types */
.notification-message--error {
    background-color: var(--color-danger);
    border: var(--border-1) solid var(--color-danger-lighter);
    color: var(--color-error);
}

.notification-message--success {
    background-color: #28a745;
}

.notification-message--warning {
    background-color: #ffc107;
    border: var(--border-1) solid #ffeaa7;
    color: #000;
}

.notification-message--info {
    background-color: #17a2b8;
    border: var(--border-1) solid #bee5eb;
    color: #0c5460;
}

.notification-message--alert {
    background-color: #fd7e14;
    border: var(--border-1) solid #ffeaa7;
    color: var(--color-warning);
}

/* Close button */
.notification-message__close {
    position: absolute;
    top: var(--gap-4);
    right: var(--gap-8);
    background: none;
    border: none;
    font-size: var(--font-16);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0;
    width: var(--gap-18);
    height: var(--gap-18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background);
}

.notification-message__close:hover {
    opacity: 1;
}

/* Message content */
.notification-message__content {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-8);
    padding-right: var(--gap-22);
    flex: 1;
}

.notification-message__text {
    flex: 1;
    line-height: 1.4;
    color: var(--background);
}

.notification-message__icon img,
.notification-message__icon svg {
    display: block;
    width: var(--gap-16);
    height: var(--gap-16);
    fill: var(--background);
}

/* Container */
.notification-container {
    position: fixed;
    top: var(--gap-16);
    right: var(--gap-16);
    z-index: 1000;
    max-width: var(--sidebar-width);
    width: 100%;
    pointer-events: none;
}

/* 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-message--error.notification-message--visible {
    animation: slideInRight 0.3s ease-out, pulseError 2s ease-in-out infinite;
}

@keyframes pulseError {
    0% {
        box-shadow: 0 var(--gap-4) var(--gap-10) rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 var(--gap-4) var(--gap-16) rgba(220, 53, 69, 0.4);
    }
    100% {
        box-shadow: 0 var(--gap-4) var(--gap-10) rgba(0, 0, 0, 0.15);
    }
}

/* Responsive design */
@media (max-width: 48vw) {
    .notification-container {
        top: var(--gap-8);
        right: var(--gap-8);
        left: var(--gap-8);
        max-width: none;
    }

    .notification-message {
        max-width: none;
        font-size: var(--font-11);
        padding: var(--gap-10) var(--gap-12);
    }

    .notification-message__content {
        gap: var(--gap-6);
    }
}