﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/*.site-main {
    background-color: #fff;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}*/

#chat-circle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #5A5EB9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.chat-box {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 500px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.chat-box-header {
    background: #5A5EB9;
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-box-body {
    flex: 1;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-logs {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    max-height: 350px;
}

.chat-input {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
}

    .chat-input input {
        flex: 1;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 5px;
        margin-right: 10px;
    }

.chat-submit {
    background: #5A5EB9;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

.chat-box-toggle {
    cursor: pointer;
}

#botimage {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-table {
    border-collapse: collapse;
    width: 100%;
    margin: 5px 0;
}

    .chat-table td {
        border: 1px solid #ddd;
        padding: 8px;
        vertical-align: top;
    }

        .chat-table td:first-child {
            font-weight: bold;
        }

.answer-table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 12px;
}

    .answer-table td {
        border: 1px solid #4a90e2;
        padding: 8px;
        background-color: #f9f9f9;
        text-align: left;
    }

    .answer-table th {
        border: 1px solid #4a90e2;
        padding: 8px;
        text-align: left;
        background-color: #e6f0fa;
        font-weight: bold;
    }

.chat-msg {
    clear: both;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

    .chat-msg.user {
        justify-content: flex-start;
    }

    .chat-msg.self {
        justify-content: flex-end;
    }

.msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5A5EB9;
    color: white;
    font-size: 18px;
    margin-right: 10px;
}

.chat-msg.self .msg-avatar {
    margin-left: 10px;
    margin-right: 0;
}

.cm-msg-text {
    background: #f1f1f1;
    padding: 10px 15px;
    color: #666;
    max-width: 70%;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    text-align: justify;
}

.chat-msg.self .cm-msg-text {
    background: #5A5EB9;
    color: white;
}

.option-container {
    margin: 5px 0;
    text-align: center;
}

.option-btn {
    background: #5A5EB9;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 2px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    width: 100%;
}

    .option-btn:hover {
        background: #4a4ea0;
    }

.back-btn {
    background: linear-gradient(to right, #00c6ff, #0072ff); /* Bright blue gradient */
    color: #ffffff;
    border: none;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 114, 255, 0.3); /* subtle glow */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px auto;
}

    .back-btn i {
        font-size: 13px;
    }

    .back-btn:hover {
        background: linear-gradient(to right, #0072ff, #00c6ff);
        box-shadow: 0 6px 14px rgba(0, 114, 255, 0.45);
        transform: scale(1.07);
    }

/* Fake bot image placeholder */
.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #5A5EB9;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#botimage {
    width: 40px;
    height: auto;
}
