/* NDI Smart Assistant Styles */
.ndi-assistant-trigger {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* RTL Layout, so usually bottom left is good or right? User is RTL, so bottom-left is less intrusive or bottom-right. Let's do bottom-right but since it's RTL, let's keep it accessible. */
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #006C35 0%, #00A350 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 108, 53, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.ndi-assistant-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.ndi-assistant-window {
    position: fixed;
    bottom: 110px;
    left: 30px;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
    border: 1px solid #eee;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assistant-header {
    background: linear-gradient(135deg, #006C35 0%, #004d26 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.assistant-header .avatar {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.assistant-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fdfdfd;
    max-height: 400px;
}

.chat-bubble {
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.6;
}

.bubble-bot {
    background: #f0f0f0;
    color: #333;
    border-bottom-right-radius: 2px;
}

.bubble-user {
    background: #e3f2ec;
    color: #006C35;
    margin-right: auto;
    border-bottom-left-radius: 2px;
    text-align: left;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.q-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 0.5rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.q-btn:hover {
    background: #006C35;
    color: white;
    border-color: #006C35;
}

.assistant-footer {
    padding: 1rem;
    border-top: 1px solid #eee;
    background: white;
    display: flex;
    gap: 0.5rem;
}

.assistant-footer input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    outline: none;
    font-size: 0.9rem;
}

.assistant-footer button {
    background: #006C35;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

/* Scrollbar */
.assistant-body::-webkit-scrollbar {
    width: 5px;
}

.assistant-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.assistant-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .ndi-assistant-window {
        width: 100%;
        left: 0;
        bottom: 0;
        height: 70vh;
        max-height: 100vh;
        border-radius: 25px 25px 0 0;
        border: none;
    }

    .ndi-assistant-trigger {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
        font-size: 1.5rem;
    }

    .assistant-body {
        max-height: none;
    }
}