body {
    margin: 0;
    font-family: Arial, sans-serif;
}

#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    padding: 0;
    border: none;
    background-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}

#chat-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


#chatbot-container {
    position: fixed;
    bottom: 105px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    background-color: #fff;
    z-index: 999;
}

#chat-header {
    background-color: #24C4C4;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
}

.bubble {
    margin: 5px 0;
    padding: 10px;
    border-radius: 10px;
    max-width: 100%;
    line-height: 1.4;
}

.user {
    background-color: #DCF8C6;
    align-self: flex-end;
    text-align: right;
    color: black;
}

.ai {
    background-color: #eee;
    align-self: flex-start;
    text-align: left;
    color: black;
}

#input-container {
    display: flex;
    border-top: 1px solid #ccc;
    padding: 8px;
    box-sizing: border-box;
    background-color: #f0f0f0;
}

#input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 300px;
    padding: 10px;
    font-size: 14px;
    margin-right: 8px;
    box-sizing: border-box;
}

#input:focus {
    outline: none;
    border-color: #24C4C4;
}

#input-container .chat-button {
    border: none;
    background-color: #24C4C4;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    border-radius: 6px;
    transition: background-color 0.3s;
}

#input-container .chat-button:hover {
    background-color: #1ea8a8;
}

#input-container .chat-button:hover {
    background-color: #1ea8a8;
}

.close-btn {
    background: none;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* ✅ Responsive mode */
@media (max-width: 600px) {

    #chatbot-container {
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }

    #chat-toggle {
        width: 75px;
        height: 75px;
        font-size: 24px;
        bottom: 16px;
        right: 16px;
        align-items: center;
    }

    #chat-header {
        padding: 12px;
        font-size: 16px;
    }

    #input {
        font-size: 16px;
        padding: 12px;
    }

    button {
        font-size: 16px;
    }
}