/* --- Chat Body --- */
.chatbox-body {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: transparent;
    margin-top: var(--header-height);
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- Common Questions (Initial State) --- */
.common-questions-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.bot-avatar-small {
    width: 24px; height: 24px; border-radius: 4px; margin-right: 10px;
}

.question-title {
    font-size: 14px; font-weight: 600; color: var(--text-main);
}

.question-list { display: flex; flex-direction: column; gap: 12px; }

.question-button {
    background-color: #fff;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.question-button:hover {
    background-color: #f5f7fa;
    border-color: #d0d3d9;
    transform: translateY(-1px);
}

.question-button .icon {
    margin-right: 12px;
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 14px;
    background-color: rgba(24, 64, 115, 0.08);
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex; justify-content: center; align-items: center;
    flex-shrink: 0;
}

/* --- Message Bubbles --- */
.message-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.message-row.user { justify-content: flex-end; }
.message-row.bot { justify-content: flex-start; }

@keyframes fadeIn { to { opacity: 1; } }

.message-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    margin-right: 12px; flex-shrink: 0;
    background-color: #fff; border: 1px solid #eef0f4;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.message-row.user .message-bubble {
    background-color: var(--primary-blue);
    color: #fff;
    border-top-right-radius: 2px;
}

.message-row.bot .message-bubble {
    background-color: #fff;
    color: var(--text-main);
    border-top-left-radius: 2px;
}

/* --- Typing Indicator --- */
.typing-indicator {
    display: flex; align-items: center; gap: 4px;
    padding: 10px 16px; background-color: #fff;
    border-radius: 12px; width: fit-content;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.typing-dot {
    width: 6px; height: 6px; background-color: #bbb;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
