﻿.translated-notification {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.04);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #222;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    border: 1.5px solid #e5e7eb;
    transition: opacity 0.4s cubic-bezier(.4,0,.2,1), top 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.2s;
}

.translated-notification.show {
    opacity: 1;
    pointer-events: auto;
}

.translated-notification.hide {
    opacity: 0;
    pointer-events: none;
}

/* Notification type colors */
    .translated-notification.notification-success .notification-close {
        color: var(--white);
    }
    .translated-notification.notification-success {
        background: #10b981;
        color: #fff;
        border-color: #15803d;
    }
    .translated-notification.notification-error {
        background: #f8d7da;
        --bs-text-opacity: 1;
        color: rgba(var(--bs-danger-rgb),var(--bs-text-opacity)) !important;
        border-color: #dc3545;
    }
.translated-notification.notification-warning { background: #f59e42; color: #222; border-color: #b45309; }
.translated-notification.notification-info { background: #2563eb; color: #fff; border-color: #1e40af; }
.translated-notification.notification-custom { background: #6366f1; color: #fff; border-color: #4338ca; }

.translated-notification .notification-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.translated-notification .notification-message {
    flex: 1 1 auto;
    font-size: 1.08rem;
    font-weight: 500;
    color: inherit;
    line-height: 1.6;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.translated-notification .notification-message img {
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

.translated-notification .notification-action {
    background: #2563eb;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    transition: background 0.15s;
    box-shadow: 0 1px 2px rgba(37,99,235,0.08);
    cursor: pointer;
    min-width: 80px;
}

    .translated-notification .notification-action:hover,
    .translated-notification .notification-action:focus {
        background: #1d4ed8;
        color: #fff;
    }

    .translated-notification .notification-close {
        background: transparent;
        color: var(--bs-danger);
        opacity: .8;
        border: none;
        font-size: 20px;
        border-radius: 50%;
        transition: .5s;
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 25px;
    }
    .translated-notification.notification-warning .notification-close {
        color: var(--bs-dark) !important;
    }

        .translated-notification .notification-close:hover,
        .translated-notification .notification-close:focus {
            opacity: 1;
        }

.translated-notification .notification-progress {
    margin-left: 0.5rem;
    min-width: 40px;
}

.translated-notification .progress {
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    height: 6px;
    margin-top: 0.5rem;
}

.translated-notification .progress-bar {
    background: #2563eb;
    transition: width 0.3s;
}

.translated-notification .progress-label {
    font-size: 0.92rem;
    color: #555;
    margin-left: 0.5rem;
}

.translated-notification.rtl {
    direction: rtl;
}

@media (max-width: 600px) {
    .translated-notification {
        min-width: 0;
        max-width: 98vw;
        width: 98vw;
        left: 1vw;
        right: 1vw;
        padding: 0.85rem 1rem 0.85rem 1rem;
        font-size: 0.98rem;
        gap: 0.5rem;
    }

        .translated-notification .notification-message {
            font-size: 0.98rem;
        }

        .translated-notification .notification-action,
        .translated-notification .notification-close {
            min-width: 36px;
            min-height: 36px;
            font-size: 1rem;
            padding: 0.3rem 0.7rem;
        }
}

/* Fade Animation */
.fade-enter {
    animation: fadeIn 0.4s cubic-bezier(.4,0,.2,1);
}

.fade-exit {
    animation: fadeOut 0.4s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Slide Animation */
.slide-enter {
    animation: slideInTop 0.4s cubic-bezier(.4,0,.2,1);
}

.slide-exit {
    animation: slideOutTop 0.4s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes slideInTop {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutTop {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-40px);
    }
}

/* Bounce Animation */
.bounce-enter {
    animation: bounceIn 0.6s;
}

.bounce-exit {
    animation: fadeOut 0.4s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/*.translated-notification {
    cursor: pointer;
}*/

    .translated-notification .notification-close,
    .translated-notification .notification-action {
        cursor: pointer;
    }

.translated-notification .notification-action {
    background: #2563eb;
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    transition: background 0.15s;
    box-shadow: 0 1px 2px rgba(37,99,235,0.08);
    cursor: pointer;
}
.translated-notification .notification-action:hover,
.translated-notification .notification-action:focus {
    background: #1d4ed8;
    color: #fff;
}

.translated-notification .notification-message a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}
.translated-notification.notification-warning .notification-message a {
    color: #b45309;
}
.translated-notification.notification-custom .notification-message a {
    color: #fff;
}

.translated-notification .notification-close {
    margin-left: 0.5rem;
    min-width: 36px;
    min-height: 36px;
}


.notification-stack {
    position: fixed;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    pointer-events: none;
}

    .notification-stack > * {
        pointer-events: auto;
    }

    /* Placement classes */
    .notification-stack.top-left {
        top: 2.5rem;
        left: 2.5rem;
        align-items: flex-start;
    }

    .notification-stack.top-center {
        top: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
    }

    .notification-stack.top-right {
        top: 2.5rem;
        right: 2.5rem;
        align-items: flex-end;
    }

    .notification-stack.bottom-left {
        bottom: 2.5rem;
        left: 2.5rem;
        align-items: flex-start;
    }

    .notification-stack.bottom-center {
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
    }

    .notification-stack.bottom-right {
        bottom: 2.5rem;
        right: 2.5rem;
        align-items: flex-end;
    }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

