

div#notif-message {
    direction: rtl;
    text-align: start;
}
div#notif-message {
    padding-top: 22px;
}
.floating-ai-btn:hover {
    transform: scale(1.18) translateY(-4px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.5);
}

.floating-ai-btn .btn-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-dot {
    position: absolute;
    top: -4px;
    left: 8px;
    width: 18px;
    height: 18px;
    background: #10b981;           /* أخضر حيوي */
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.4);
    animation: pulse-online 2s infinite ease-in-out;
}

@keyframes pulse-online {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* تأثير إضافي عند الـ hover على النقطة */
.floating-ai-btn:hover .online-dot {
    animation-duration: 1.4s;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.5);
}
    .ai-notification {
        position: fixed;
        bottom: 120px;
        left: 30px;
        background: #ffffff;
        border-radius: 20px;
        padding: 15px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        max-width: 280px;
        z-index: 9998;
        transform: translateY(100%);
        opacity: 0;
        transition: all 0.5s ease;
    }

    .ai-notification.show {
        transform: translateY(0);
        opacity: 1;
    }

    .ai-notification .close-notif {
        position: absolute;
        top: 5px;
        right: 10px;
        cursor: pointer;
        font-size: 1.2rem;
        opacity: 0.7;
    }

    .ai-notification .close-notif:hover {
        opacity: 1;
    }

    .live-support-btn {
        background: #10b981;
        color: white;
        border-radius: 30px;
        padding: 8px 16px;
        font-size: 0.9rem;
        font-weight: 600;
        display: inline-block;
        margin-top: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .live-support-btn:hover {
        background: #059669;
        transform: translateY(-2px);
    } .rtl {
        direction: rtl;
        text-align: right;
    }

    .ltr {
        direction: ltr;
        text-align: left;
    }
  #ai-chat-sidebar {
        position: fixed;
        top: 0;
        left: -420px;
        width: 420px;
        height: 100%;
        background: white;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
        z-index: 10000;
        transition: left 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    #ai-chat-sidebar.open {
        right: 0;
    }

    .chat-header {
        background: var(--accent-color);
        color: white;
        padding: 20px;
        text-align: center;
        font-weight: bold;
        font-size: 1.4rem;
        position: relative;
    }

    .chat-close {
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 1.8rem;
        cursor: pointer;
        opacity: 0.9;
    }

    .chat-close:hover {
        opacity: 1;
    }

    .chat-body {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        background: #f8faff;
    }

    .chat-message {
        margin-bottom: 18px;
        padding: 14px 18px;
        border-radius: 18px;
        max-width: 85%;
        line-height: 1.5;
        white-space: pre-wrap;
    }

    .user-message {
        background: var(--accent-color);
        color: white;
        margin-left: auto;
        border-bottom-right-radius: 4px;
    }

    .bot-message {
        background: #e5efff;
        color: #1e293b;
        margin-right: auto;
        border-bottom-left-radius: 4px;
    }

    .chat-footer {
        padding: 15px 20px;
        border-top: 1px solid #e2e8f0;
        display: flex;
        background: white;
    }

    #chat-input {
        flex: 1;
        padding: 12px 18px;
        border: 1px solid #cbd5e1;
        border-radius: 30px;
        outline: none;
        font-size: 1rem;
    }

    #send-btn {
        margin-left: 12px;
        background: var(--accent-color);
        color: white;
        border: none;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.3rem;
        cursor: pointer;
    }

    #send-btn:hover {
        background: var(--primary-dark);
    }

    .typing-indicator {
        display: flex;
        padding: 14px 18px;
        background: #e5efff;
        border-radius: 18px;
        width: fit-content;
        margin-bottom: 18px;
    }

    .typing-dot {
        width: 8px;
        height: 8px;
        background: #64748b;
        border-radius: 50%;
        margin: 0 4px;
        animation: typing 1.4s infinite ease-in-out;
    }

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

    @keyframes typing {

        0%,
        60%,
        100% {
            transform: translateY(0);
        }

        30% {
            transform: translateY(-6px);
        }
    }

    .markdown-code {
        background: #1e293b;
        color: #e2e8f0;
        padding: 12px 16px;
        border-radius: 8px;
        overflow-x: auto;
        margin: 12px 0;
        font-family: 'Courier New', monospace;
        direction: ltr;
    }