#shawahid-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

#shawahid-chatbot-icon {
    width: 60px;
    height: 60px;
    background-color: #0056b3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#shawahid-chatbot-icon:hover {
    transform: scale(1.1);
}

#shawahid-chatbot-window {
    width: 350px;
    height: 450px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 75px;
    right: 0;
}

#shawahid-chatbot-header {
    background-color: #0056b3;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#shawahid-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#shawahid-chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shawahid-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.shawahid-message.user {
    align-self: flex-start;
    background-color: #e0e0e0;
    color: #333;
    border-bottom-right-radius: 0;
}

.shawahid-message.bot {
    align-self: flex-end;
    background-color: #0056b3;
    color: white;
    border-bottom-left-radius: 0;
}

#shawahid-chatbot-input-container {
    display: flex;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #ddd;
}

#shawahid-chatbot-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

#shawahid-chatbot-send {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-right: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#shawahid-chatbot-send:disabled {
    background-color: #999;
    cursor: not-allowed;
}

.shawahid-loading {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.shawahid-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: shawahid-bounce 1.4s infinite ease-in-out both;
}

.shawahid-dot:nth-child(1) { animation-delay: -0.32s; }
.shawahid-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes shawahid-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    #shawahid-chatbot-window {
        width: 300px;
        right: -10px;
    }
}
