﻿#hospital-chat-widget {
    position: fixed;
    bottom: 15px;
    right: 50px;
    z-index: 9999;
    font-family: "IRANSans", sans-serif;
    direction: rtl;
}

#chat-button {
    background: #0d6efd;
    color: #fff;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    transition: 0.2s;
    width:120px;
}

    #chat-button:hover {
        background: #0b5ed7;
    }

#chat-window {
    width: 320px;
    height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 8px;
}

    #chat-window.hidden {
        display: none;
    }

#chat-header {
    background: #0d6efd;
    color: #fff;
    padding: 12px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-close {
    cursor: pointer;
    font-size: 20px;
}

#chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #f5f6fa;
}

.message {
    margin-bottom: 10px;
}

    .message.user {
        text-align: left;
    }

    .message.bot {
        text-align: right;
    }

.bubble {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.5;
    font-size: 13px;
}

.user .bubble {
    background: #e8f0ff;
    color: #000;
}

.bot .bubble {
    background: #fff;
    border: 1px solid #dcdcdc;
    color: #000;
}

#chat-form {
    display: flex;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

#chat-form button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    font-size: 14px;
}

    #chat-form button:disabled {
        opacity: 0.6;
        cursor: default;
    }


