/* onechat.css */

/* 
 * Most chat styles are now handled by the 'onechattheme' generated from the chat2 UI template.
 * We only need this container to center the glass panel effectively.
 */
#onechat-app-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

.query-count-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(218, 165, 32, 0.7);
    border-radius: 30px;
    color: #dfc168;
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    z-index: 10;
}

.sparkle-icon {
    width: 18px;
    height: 18px;
    fill: #dfc168;
}

#onechat-quota-display {
    font-weight: 700;
    margin-left: 4px;
}

/* Ensure the chat glass panel stays centered while the pill is on the right */
.chat-glass-panel {
    align-self: center;
}

/* 
 * Extra Spacing for Content Sections 
 * This adds a premium feel to the paragraphs and headers.
 */
.msg-bubble p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.msg-bubble p:last-child {
    margin-bottom: 0;
}

.msg-bubble h1,
.msg-bubble h2,
.msg-bubble h3 {
    margin: 20px 0 10px 0;
    color: #333;
    line-height: 1.3;
    font-size: 16px;
}

/* First header shouldn't have top margin */
.msg-bubble>h1:first-child,
.msg-bubble>h2:first-child,
.msg-bubble>h3:first-child,
.ai-bubble-text>h1:first-child,
.ai-bubble-text>h2:first-child,
.ai-bubble-text>h3:first-child {
    margin-top: 0;
}

.msg-bubble br {
    content: "";
    display: block;
    margin-bottom: 8px;
}