#clinicbot-chat-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 480px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: "Arial", sans-serif;
    border: 1px solid #ddd;
    transition: all 0.3s ease-in-out;
}

/* Chat Header */
#clinicbot-chat-header {
    background: #0073aa;
    color: white;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#clinicbot-close {
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s ease-in-out;
}

#clinicbot-close:hover {
    color: #ff4d4d;
}

/* Chat Body */
#clinicbot-chat-body {
    padding: 12px;
    height: 370px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
}

/* Messages */
#clinicbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* User Message */
.user-message {
    background: #0073aa;
    color: white;
    padding: 10px 15px;
    border-radius: 15px;
    align-self: flex-end;
    max-width: 75%;
    font-size: 14px;
    word-wrap: break-word;
    box-shadow: 0px 4px 8px rgba(0, 115, 170, 0.2);
}

/* Bot Message */
.bot-message {
    background: #ffffff;
    color: black;
    padding: 10px 15px;
    border-radius: 15px;
    align-self: flex-start;
    max-width: 75%;
    font-size: 14px;
    word-wrap: break-word;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Chat Input Container */
#clinicbot-input-container {
    display: flex;
    padding: 12px;
    background: white;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #ddd;
}

/* Input Field */
#clinicbot-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

#clinicbot-input:focus {
    border-color: #0073aa;
}

/* Send Button */
#clinicbot-send {
    width: 70px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px;
    transition: background 0.2s ease-in-out;
}

#clinicbot-send:hover {
    background: #005f8a;
}

/* Chatbot Open Button */
#clinicbot-open {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: white;
    border-radius: 50px;
    width: 65px;
    height: 65px;
    border: none;
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

#clinicbot-open:hover {
    background: #005f8a;
    transform: scale(1.05);
}

/* Responsive Chatbot */
@media (max-width: 400px) {
    #clinicbot-chat-container {
        width: 90%;
        right: 5%;
        height: 450px;
    }
}

/* ----------------- Name Collection Modal ----------------- */
#clinicbot-name-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 200px;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: "Arial", sans-serif;
    border: 1px solid #ddd;
}

#clinicbot-name-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

#clinicbot-name-body {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

#clinicbot-name-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

#clinicbot-name-submit {
    padding: 10px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
}
