﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Floating Chatbot Button */
.chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #036;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

    .chatbot-btn:hover {
        background: linear-gradient(to left, #f57c00, #f57c00, #ffa726);
    }

/* Chat Container */
.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

.chat-header {
  
    background: #036;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
    .chat-header .actions {
        display: flex;
        gap: 8px;
    }
    .chat-header button {
        background: transparent;
        border: none;
        color: white;
        font-size: 18px;
        cursor: pointer;
    }

        .chat-header button:hover {
            color: #ddd;
        }
.chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: #fafafa;
}

.msg {
    margin: 8px 0;
    padding: 10px 12px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 14px;
    word-wrap: break-word;
}

.user {
    background: #e1f5fe;
    margin-left: auto;
}

.system {
    background: #c8e6c9;
    margin-right: auto;
}

.bot {
    background: #f1f1f1;
    margin-right: auto;
}

.subbot {
    background: #ffe0b2;
    margin-right: auto;
}

.input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}

    .input-area input {
        flex: 1;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 14px;
    }

    .input-area button {
        margin-left: 8px;
        padding: 10px 15px;
        border: none;
        background: #036;
        color: #fff;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
    }

        .input-area button:hover {
            background: linear-gradient(to left, #f57c00, #f57c00, #ffa726);
        }
.bot button {
    background: #036;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

    .bot button:hover {
        background: #005a9e;
    }

.subbot button {
    background: linear-gradient(to left,#f57c00,#f57c00,#ffa726);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

    .subbot button:hover {
        background: #005a9e;
    }

/* ✅ Responsive for Mobile */
@media (max-width: 600px) {
    .chat-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chatbot-btn {
        bottom: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}
