/* ============================================= */
/* == ChatBot My Account Page Styles == */
/* ============================================= */

/* Highlighting for unread reply rows in the history table */
.chatbot-history-table tr.unread-reply td {
    background-color: #f0f6ff !important;
    border-left: 3px solid #4e8cff;
}

/* General status text styling */
.chatbot-history-status {
    font-weight: bold;
}
.status-under-review {
    color: #ffa500; /* Orange */
}
.status-answered-instantly {
    color: #28a745; /* Green */
}

/* --- Styles for the "View Answer" Modal --- */
.chatbot-answer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 100100; /* High z-index to be on top */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s ease 0.3s;
}

.chatbot-answer-modal.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.chatbot-answer-modal .modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 600px;
    transform: translateY(-20px);
    transition: transform 0.3s ease-out;
    padding: 20px 25px;
}

.chatbot-answer-modal.is-visible .modal-content {
    transform: translateY(0);
}

.chatbot-answer-modal .modal-question {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.chatbot-answer-modal .modal-answer {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 10px; /* For scrollbar spacing */
    line-height: 1.7;
    color: #555;
}

.chatbot-answer-modal .modal-answer img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
}

.chatbot-answer-modal .modal-answer p:first-child {
    margin-top: 0;
}

/* Styling for the unread notification count badge in the My Account menu */
.chatbot-unread-count {
    display: inline-block;
    background-color: #d63638;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
    margin-left: 5px;
}