/* ===========================================
   CSS CUSTOM PROPERTIES
   Three text size modes: small (default), medium, large
   =========================================== */
:root {
    --font-size-2xs: 0.75rem;
    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-base: 1.1rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 1.35rem;
    --font-size-2xl: 1.6rem;
    --font-size-3xl: 2rem;

    --font-size-chat-message: 1rem;
    --font-size-chat-input: 1rem;
    --font-size-input-icon: 1.1rem;

    --font-size-sidebar-logo: 1.375rem;
    --font-size-sidebar-label: 0.75rem;
    --font-size-sidebar-agent-name: 0.9rem;
    --font-size-sidebar-icon: 1rem;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    --sidebar-width: 280px;
    --sidebar-transition: 0.3s ease;
}

body.medium-text {
    --font-size-2xs: 0.875rem;
    --font-size-xs: 1rem;
    --font-size-sm: 1.125rem;
    --font-size-base: 1.25rem;
    --font-size-lg: 1.375rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 1.75rem;
    --font-size-3xl: 2.25rem;

    --font-size-chat-message: clamp(1.125rem, 2.8vw, 1.35rem);
    --font-size-chat-input: clamp(1.125rem, 2.8vw, 1.35rem);
    --font-size-input-icon: 1.35rem;

    --font-size-sidebar-logo: 1.625rem;
    --font-size-sidebar-label: 0.9rem;
    --font-size-sidebar-agent-name: 1.125rem;
    --font-size-sidebar-icon: 1.2rem;
}

body.large-text {
    --font-size-2xs: 1rem;
    --font-size-xs: 1.125rem;
    --font-size-sm: 1.25rem;
    --font-size-base: 1.375rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 1.625rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;

    --font-size-chat-message: clamp(1.25rem, 3vw, 1.5rem);
    --font-size-chat-input: clamp(1.25rem, 3vw, 1.5rem);
    --font-size-input-icon: 1.5rem;

    --font-size-sidebar-logo: 2rem;
    --font-size-sidebar-label: 1rem;
    --font-size-sidebar-agent-name: 1.25rem;
    --font-size-sidebar-icon: 1.35rem;
}

/* ===========================================
   Reset & Base
   =========================================== */
html {
    font-size: 100%;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*:focus {
    outline: 3px solid #0E98FB;
    outline-offset: 2px;
}

body.dark-mode *:focus {
    outline: 3px solid #FFCC02;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #1f2937;
    display: flex;
    height: 100vh;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* ===========================================
   Sidebar
   =========================================== */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100vh;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--sidebar-transition), width var(--sidebar-transition);
    overflow: hidden;
}

.sidebar.collapsed {
    transform: translateX(calc(var(--sidebar-width) * -1));
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    min-height: 52px;
    gap: 10px;
}

.sidebar-logo h1 {
    font-family: "Rubik Bubbles", system-ui;
    font-weight: 400;
    font-style: normal;
    color: #0E98FB;
    font-size: var(--font-size-sidebar-logo);
    margin: 0;
    white-space: nowrap;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: var(--font-size-sidebar-icon);
    padding: 6px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.sidebar-toggle:hover {
    background: transparent;
    color: #0E98FB;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-section {
    padding: 3px 12px;
    margin-bottom: 16px;
}

.sidebar-section-label {
    font-size: var(--font-size-sidebar-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
    padding-left: 4px;
    margin-bottom: 2px;
}

/* ===========================================
   Sidebar Agents
   =========================================== */
.sidebar-agents-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-agent {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
    background: transparent;
    min-height: 28px;
    font-size: var(--font-size-sidebar-agent-name);
    font-weight: 400;
    color: #374151;
    position: relative;
}

.sidebar-agent:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.sidebar-agent.active {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-agent-avatar {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--font-size-2xs);
    flex-shrink: 0;
}

.sidebar-agent-info {
    flex: 1;
    min-width: 0;
}

.sidebar-agent-name {
    font-weight: 400;
    font-size: var(--font-size-sidebar-agent-name);
    color: #374151;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sidebar-agent.active .sidebar-agent-name {
    font-weight: 400;
}

.sidebar-agent-desc {
    display: none;
}

.sidebar-agent-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    flex-shrink: 0;
}

.sidebar-agent.active .sidebar-agent-status {
    background: #0E98FB;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* ===========================================
   Sidebar Settings
   =========================================== */
.sidebar-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-setting-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 8px;
}

.sidebar-setting-group label {
    font-size: var(--font-size-2xs);
    font-weight: 500;
    color: #6b7280;
}

.sidebar-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: var(--font-size-xs);
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.2s;
}

.sidebar-select:hover {
    border-color: #0E98FB;
}

.sidebar-select:focus {
    outline: none;
    border-color: #0E98FB;
    box-shadow: 0 0 0 3px rgba(14, 152, 251, 0.1);
}

/* ===========================================
   Sidebar Bottom Icons
   =========================================== */
.sidebar-bottom-icons {
    margin-top: auto;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-icon-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sidebar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-icon-btn i {
    font-size: var(--font-size-sidebar-icon);
}

.sidebar-icon-btn:hover {
    background: none;
    color: #0E98FB;
}

.language-select {
    display: none;
    font-size: var(--font-size-2xs);
    max-width: 200px;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

.sidebar-icon-row:hover .language-select {
    display: block;
}

/* ===========================================
   Mobile Sidebar Toggle
   =========================================== */
.sidebar-mobile-toggle {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: var(--font-size-lg);
    color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* ===========================================
   Main Content Layout
   =========================================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    padding: 16px 24px;
    transition: margin-left var(--sidebar-transition);
    overflow: hidden;
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* ===========================================
   Topic Chips
   =========================================== */
.topic-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    flex-shrink: 0;
    width: 100%;
    max-width: 1000px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #ffffff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-weight: 600;
    font-family: "Inter", sans-serif;
    color: #ffffff;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.topic-chip[data-topic="fractions"] {
    background: #FB923C;
}

.topic-chip[data-topic="addition-subtraction"] {
    background: #10B981;
}

.topic-chip[data-topic="multiplication-division"] {
    background: #8B5CF6;
}

.topic-chip[data-topic="custom"] {
    background: #06B6D4;
}

.topic-chip:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.topic-chip.active {
    background: #0E98FB;
    color: #ffffff;
}

.topic-chip i {
    font-size: var(--font-size-2xs);
}

/* ===========================================
   Conversation Container
   =========================================== */
.conversation-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    min-height: 0;
}

/* ===========================================
   Chat Output
   =========================================== */
#output {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    position: relative;
}

#output .placeholder,
#output .assistant {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    font-size: var(--font-size-chat-message);
    margin: 8px 0;
    padding: 12px 16px;
    background-color: transparent;
    border: none;
    border-left: none;
    box-shadow: none;
    border-radius: 0;
    align-self: flex-start;
    margin-right: auto;
    color: #1f2937;
}

#output .user {
    display: flex;
    align-items: flex-start;
    width: fit-content;
    max-width: 80%;
    font-size: var(--font-size-chat-message);
    margin: 8px 0;
    padding: 12px 16px;
    background-color: transparent;
    align-self: flex-end;
    margin-left: auto;
    color: #1f2937;
    border: none;
    box-shadow: none;
}

#output .placeholder img,
#output .assistant img {
    width: 30px;
    height: 30px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.assistant-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

#output .user .user-icon {
    color: #0E98FB;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.user-icon {
    color: #0E98FB;
    font-size: 20px;
    margin-right: 13px;
}

#output .placeholder span,
#output .assistant span,
#output .user span {
    display: inline;
    font-size: inherit;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: var(--line-height-relaxed);
}

#output button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 8px;
}

#output button i {
    font-size: 1.5em;
}

#output button#stop i.active {
    color: #0E98FB !important;
}

#output button#stop i.inactive {
    color: #949494 !important;
}

#stop {
    position: relative;
    z-index: 1;
}

/* ===========================================
   Chat Input Bar
   =========================================== */
.chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #e5e7eb;
}

.chat-input input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 28px;
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-chat-input);
    min-width: 0;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.chat-input input:focus {
    outline: none;
    border-color: #0E98FB;
    box-shadow: 0 0 0 2px rgba(14, 152, 251, 0.2);
}

.chat-input button {
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-input button i {
    font-size: 1.5em;
}

.chat-input button#send {
    color: #0E98FB;
}

.chat-input button#record i.active {
    color: #0E98FB;
}

.chat-input button#record i.inactive {
    color: #949494;
}

.input-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
}

.input-group input {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 28px;
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-chat-input);
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.input-group input:focus {
    outline: none;
    border-color: #0E98FB;
    box-shadow: 0 0 0 2px rgba(14, 152, 251, 0.2);
}

/* ===========================================
   Chevron Expandable Icons
   =========================================== */
.chat-icons-expandable {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icons-expand-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    transition: all 0.2s ease;
}

.icons-expand-trigger:hover {
    color: #0E98FB;
}

.icons-expand-trigger i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.chat-icons-expandable.expanded .icons-expand-trigger i {
    transform: rotate(180deg);
}

.icons-hidden-group {
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.chat-icons-expandable.expanded .icons-hidden-group {
    display: flex;
}

/* ===========================================
   Media Options Menu
   =========================================== */
#plus-container {
    position: relative;
    display: inline-block;
    overflow: visible;
    flex-shrink: 0;
}

#plus {
    background: none;
    border: none;
    color: #0E98FB;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
}

.media-options {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.media-options::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.media-options button.media-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: left;
    font-size: var(--font-size-xs);
    color: #374151;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.media-options button.media-option i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.media-options button.media-option:hover {
    background-color: #f3f4f6;
    color: #0E98FB;
}

/* ===========================================
   Quick Reply Chips
   =========================================== */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
}

.quick-reply-chip {
    padding: 8px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-family: "Inter", sans-serif;
    color: #374151;
    transition: all 0.2s ease;
}

.quick-reply-chip:hover {
    background: #0E98FB;
    color: #ffffff;
    border-color: #0E98FB;
}

/* ===========================================
   Typing Indicator
   =========================================== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
}

.typing-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================================
   Chat Predictions
   =========================================== */
.chat-prediction {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.chat-prediction-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: var(--font-size-xs);
    color: #374151;
    transition: background 0.15s;
}

.chat-prediction-item:hover,
.chat-prediction-item.selected {
    background: #f3f4f6;
    color: #0E98FB;
}

/* ===========================================
   Footer
   =========================================== */
.chat-footer-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    flex-shrink: 0;
    width: 100%;
    max-width: 1000px;
}

.footer-copyright {
    font-size: var(--font-size-2xs);
    color: #4b5563;
}

.footer-copyright a {
    color: #0E98FB;
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

.footer-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.chat-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-family: "Inter", sans-serif;
    color: #374151;
    transition: all 0.2s;
}

.chat-footer-btn:hover {
    background: transparent;
    border-color: #0E98FB;
    color: #0E98FB;
}

.chat-footer-btn i {
    font-size: var(--font-size-xs);
}

.save-wrapper,
.help-wrapper {
    position: relative;
}

.save-menu,
.help-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 100;
    min-width: 180px;
}

.save-option,
.help-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: var(--font-size-xs);
    color: #374151;
    border-radius: 6px;
    transition: background 0.15s;
}

.save-option:hover,
.help-option:hover {
    background: #f3f4f6;
    color: #0E98FB;
}

.save-option i,
.help-option i {
    width: 18px;
    text-align: center;
    font-size: var(--font-size-xs);
}

/* ===========================================
   Inline Fill-in Inputs & AI Wand
   =========================================== */
.inline-fillin-wrapper {
    display: inline-flex;
    align-items: flex-start;
    gap: 6px;
    margin: 4px 2px;
    vertical-align: top;
}

.inline-fillin-input {
    width: 100%;
    min-width: 120px;
    padding: 8px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-sm);
    resize: vertical;
    min-height: 36px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.inline-fillin-input:focus {
    outline: none;
    border-color: #0E98FB;
    box-shadow: 0 0 0 3px rgba(14, 152, 251, 0.1);
    background: #ffffff;
}

.inline-fillin-icons {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.inline-fillin-icons .icons-hidden-group {
    display: none;
    gap: 2px;
}

.inline-fillin-icons.expanded .icons-hidden-group {
    display: flex;
}

.inline-ai-assist {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: linear-gradient(135deg, #0E98FB, #6366f1);
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--font-size-2xs);
    transition: transform 0.2s, box-shadow 0.2s;
}

.inline-ai-assist:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(14, 152, 251, 0.3);
}

.inline-autocomplete {
    position: fixed;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.inline-autocomplete.visible {
    display: block;
}

.inline-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: var(--font-size-xs);
    color: #374151;
    transition: background 0.15s;
}

.inline-autocomplete-item:hover,
.inline-autocomplete-item.highlighted {
    background: #f3f4f6;
    color: #0E98FB;
}

.inline-autocomplete-loading {
    padding: 12px;
    text-align: center;
    color: #6b7280;
    font-size: var(--font-size-xs);
}

.fill-in-template {
    margin: 8px 0;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.fill-in-submit {
    margin-top: 12px;
    padding: 8px 20px;
    background: #0E98FB;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: var(--font-size-xs);
    font-family: "Inter", sans-serif;
    transition: background 0.2s;
}

.fill-in-submit:hover {
    background: #0b7fd4;
}

.fill-in-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* ===========================================
   Interactive Inputs (bracket parsing)
   =========================================== */
.bracket-container {
    display: inline;
}

.interactive-input {
    display: inline-block;
    min-width: 60px;
    padding: 2px 8px;
    border: 1.5px dashed #d1d5db;
    border-radius: 6px;
    font-family: "Inter", sans-serif;
    font-size: inherit;
    background: #fafafa;
    cursor: text;
    transition: border-color 0.2s, background 0.2s;
}

.interactive-input:empty::before {
    content: attr(data-placeholder);
    color: #9ca3af;
    font-style: italic;
}

.interactive-input:focus {
    outline: none;
    border-color: #0E98FB;
    border-style: solid;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 152, 251, 0.1);
}

/* ===========================================
   Streaming Response
   =========================================== */
.streaming-response {
    opacity: 0.8;
}

/* ===========================================
   Loader
   =========================================== */
#loader {
    font-size: 2rem;
    text-align: center;
    color: #0E98FB;
    padding: 8px;
}

/* ===========================================
   Toast Notifications
   =========================================== */
.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    color: white;
    border-radius: 8px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastIn 0.3s ease;
    pointer-events: none;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===========================================
   Whiteboard Modal
   =========================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: var(--font-size-lg);
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
}

.whiteboard-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.tool-btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn.active {
    background: #0E98FB;
    color: #ffffff;
    border-color: #0E98FB;
}

#whiteboard-canvas {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: crosshair;
    touch-action: none;
    background: #ffffff;
}

.whiteboard-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-xs);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #f3f4f6;
}

.btn-primary {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    background: #0E98FB;
    color: #ffffff;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-xs);
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0b7fd4;
}

/* ===========================================
   Dictation Indicator
   =========================================== */
.dictation-indicator {
    background: rgba(14, 152, 251, 0.1);
    padding: 8px 14px;
    margin: 8px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.dictation-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sound-wave {
    display: flex;
    gap: 3px;
    align-items: center;
    height: 18px;
}

.sound-wave .wave {
    width: 3px;
    height: 100%;
    background: #0E98FB;
    border-radius: 3px;
    animation: wave-animation 0.9s ease-in-out infinite;
}

.sound-wave .wave:nth-child(1) { animation-delay: 0s; }
.sound-wave .wave:nth-child(2) { animation-delay: 0.08s; }
.sound-wave .wave:nth-child(3) { animation-delay: 0.16s; }
.sound-wave .wave:nth-child(4) { animation-delay: 0.24s; }
.sound-wave .wave:nth-child(5) { animation-delay: 0.32s; }

@keyframes wave-animation {
    0%, 100% { transform: scaleY(0.3); opacity: 0.6; }
    50% { transform: scaleY(1.2); opacity: 1; }
}

.dictation-text {
    color: #0E98FB;
    font-weight: 500;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.language-detection-notice {
    background: rgba(14, 152, 251, 0.1);
    border-left: 4px solid #0E98FB;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 6px;
    color: #0E98FB;
    font-weight: 500;
    font-size: var(--font-size-sm);
    animation: fadeIn 0.3s ease;
}

#record i.active {
    color: #0E98FB !important;
    animation: pulse-mic 2s infinite;
}

#record i.inactive {
    color: #949494;
}

@keyframes pulse-mic {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.75; transform: scale(1.15); }
}

/* ===========================================
   AI Guidance Toggle States
   =========================================== */
.sidebar-icon-btn.ai-off {
    color: #9ca3af;
}

.sidebar-icon-btn.ai-minimal {
    color: #F59E0B;
}

.sidebar-icon-btn.ai-full {
    color: #10B981;
}

/* ===========================================
   Sidebar Tools
   =========================================== */
.sidebar-tools-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: "Inter", sans-serif;
}

.sidebar-tool:hover {
    background: #f3f4f6;
}

.sidebar-tool.active {
    background: #f3f4f6;
}

.sidebar-tool-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: var(--font-size-2xs);
    flex-shrink: 0;
}

.sidebar-tool-name {
    font-size: var(--font-size-xs);
    font-weight: 400;
    color: #374151;
}

.sidebar-section-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.sidebar-section-chevron {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.sidebar-section.expanded .sidebar-section-chevron {
    transform: rotate(180deg);
}

.sidebar-section-toggle + .sidebar-tools-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar-section.expanded .sidebar-tools-list {
    max-height: 600px;
}

/* ===========================================
   Manipulative Split View
   =========================================== */
.manipulative-view {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    width: calc(50% - calc(var(--sidebar-width) / 2));
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    z-index: 50;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.manipulative-view:not(.hidden) {
    transform: translateX(0);
}

.manipulative-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #f9fafb;
}

.manipulative-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #1f2937;
}

.manipulative-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.manipulative-close:hover {
    background: #f3f4f6;
    color: #ef4444;
}

.manipulative-iframe {
    flex: 1;
    width: 100%;
    border: none;
}

body.manipulative-open .main-content {
    margin-left: calc(50% + calc(var(--sidebar-width) / 2));
    width: calc(50% - calc(var(--sidebar-width) / 2));
}

body.sidebar-collapsed .manipulative-view {
    left: 0;
    width: 50%;
}

body.sidebar-collapsed.manipulative-open .main-content {
    margin-left: 50%;
    width: 50%;
}

/* ===========================================
   Responsive Embed
   =========================================== */
.responsive-embed {
    position: relative;
    padding-bottom: min(56.25%, 400px);
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 10px auto;
}

.responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===========================================
   Markdown Content Styles
   =========================================== */
.assistant a {
    color: #0E98FB;
    text-decoration: underline;
}

.assistant a:hover {
    color: #0b7fd4;
}

.user, .assistant {
    white-space: pre-wrap;
    word-break: break-word;
}

.error-message {
    color: #d32f2f;
    font-size: var(--font-size-xs);
    margin-top: 4px;
}

/* ===========================================
   Chat Input Content (for Mathpix tokens)
   =========================================== */
.chat-input-content {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 28px;
    font-family: "Inter", sans-serif;
    font-size: var(--font-size-chat-input);
    min-height: 28px;
    max-height: 200px;
    overflow-y: auto;
    background-color: #ffffff;
    color: #1f2937;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.token {
    display: inline-block;
    padding: 0;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}

.token-edit-container {
    width: auto !important;
    display: inline-flex;
    max-width: max-content;
    white-space: nowrap;
    align-items: center;
    background: white;
    padding: 0;
}

.token-edit-input {
    border: 1px solid #ddd;
    padding: 0;
    font-family: "Inter", sans-serif;
    width: auto;
    font-size: 1em;
    box-sizing: content-box;
}

.token-edit-button.done {
    background-color: #0E98FB;
    color: white;
    border: none;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    cursor: pointer;
    font-size: 0.9em;
}

/* ===========================================
   Tooltip
   =========================================== */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: #1f2937;
    color: #ffffff;
    border-radius: 4px;
    font-size: var(--font-size-2xs);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
    pointer-events: none;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* ===========================================
   STT Ghost Text
   =========================================== */
.stt-ghost-text {
    color: #9ca3af;
    font-style: italic;
    pointer-events: none;
}

.stt-textarea-ghost {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #9ca3af;
    font-style: italic;
    pointer-events: none;
    overflow: hidden;
}

.inline-stt-btn,
.cell-stt-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: var(--font-size-xs);
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}

.inline-stt-btn:hover,
.cell-stt-btn:hover {
    color: #0E98FB;
}

.inline-stt-btn.listening,
.cell-stt-btn.listening {
    color: #ef4444;
    animation: pulse-mic 1.5s infinite;
}

/* ===========================================
   Dark Mode
   =========================================== */
body.dark-mode {
    background-color: #171717;
    color: #f3f4f6;
}

body.dark-mode .sidebar {
    background: #1f1f1f;
    border-right-color: #333;
}

body.dark-mode .sidebar-header {
    border-bottom-color: #333;
}

body.dark-mode .sidebar-logo h1 {
    color: #ffffff;
}

body.dark-mode .sidebar-toggle {
    color: #9ca3af;
}

body.dark-mode .sidebar-toggle:hover {
    background: #333;
    color: #FFCC02;
}

body.dark-mode .sidebar-section-label {
    color: #9ca3af;
}

body.dark-mode .sidebar-agent {
    color: #e5e7eb;
}

body.dark-mode .sidebar-agent:hover {
    background: #2a2a2a;
    color: #d1d5db;
}

body.dark-mode .sidebar-agent.active {
    background: #2a2a2a;
}

body.dark-mode .sidebar-agent-name {
    color: #f3f4f6;
}

body.dark-mode .sidebar-agent-status {
    background: #444;
}

body.dark-mode .sidebar-agent.active .sidebar-agent-status {
    background: #60a5fa;
}

body.dark-mode .sidebar-select {
    background: #2b2b2b;
    color: #f3f4f6;
    border-color: #444;
}

body.dark-mode .sidebar-select:hover {
    border-color: #FFCC02;
}

body.dark-mode .sidebar-bottom-icons {
    border-top-color: #333;
}

body.dark-mode .sidebar-icon-btn {
    color: #d1d5db;
}

body.dark-mode .sidebar-icon-btn:hover {
    background: none;
    color: #60a5fa;
}

body.dark-mode #output .placeholder,
body.dark-mode #output .assistant {
    background-color: transparent;
    border-left: none;
    color: #f3f4f6;
}

body.dark-mode #output .user {
    background-color: transparent;
    color: #f3f4f6;
}

body.dark-mode #output button#stop i.active {
    color: #FFCC02 !important;
}

body.dark-mode #output button#stop i.inactive {
    color: #9ca3af !important;
}

body.dark-mode .chat-input {
    border-top-color: #333;
}

body.dark-mode .chat-input input {
    background: #2b2b2b;
    color: #f3f4f6;
    border-color: #444444;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

body.dark-mode .chat-input input::placeholder {
    color: #9ca3af;
}

body.dark-mode .chat-input input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

body.dark-mode .chat-input button#send {
    color: #FFCC02;
}

body.dark-mode .chat-input button#record i.active {
    color: #FFCC02 !important;
}

body.dark-mode .chat-input button#record i.inactive {
    color: #9ca3af !important;
}

body.dark-mode .input-group input {
    background: #2b2b2b;
    color: #f3f4f6;
    border-color: #444444;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

body.dark-mode .input-group input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

body.dark-mode .topic-chip {
    opacity: 0.9;
}

body.dark-mode .topic-chip:hover {
    opacity: 0.75;
}

body.dark-mode .topic-chip.active {
    background: #FFCC02;
    color: #1f2937;
}

body.dark-mode .chat-footer-btn {
    background: #2b2b2b;
    border-color: #444;
    color: #f3f4f6;
}

body.dark-mode .chat-footer-btn:hover {
    border-color: #FFCC02;
    color: #FFCC02;
}

body.dark-mode .footer-copyright {
    color: #9ca3af;
}

body.dark-mode .footer-copyright a {
    color: #FFCC02;
}

body.dark-mode .save-menu,
body.dark-mode .help-menu {
    background: #1f1f1f;
    border-color: #333;
}

body.dark-mode .save-option,
body.dark-mode .help-option {
    color: #f3f4f6;
}

body.dark-mode .save-option:hover,
body.dark-mode .help-option:hover {
    background: #2a2a2a;
    color: #FFCC02;
}

body.dark-mode .media-options {
    background-color: #1f1f1f;
    border-color: #333;
}

body.dark-mode .media-options button.media-option {
    color: #f3f4f6;
}

body.dark-mode .media-options button.media-option:hover {
    background: #2a2a2a;
    color: #FFCC02;
}

body.dark-mode .quick-reply-chip {
    background: #2b2b2b;
    border-color: #444;
    color: #f3f4f6;
}

body.dark-mode .quick-reply-chip:hover {
    background: #FFCC02;
    color: #1f2937;
    border-color: #FFCC02;
}

body.dark-mode .modal-content {
    background: #1f1f1f;
    color: #f3f4f6;
}

body.dark-mode .modal-header h3 {
    color: #f3f4f6;
}

body.dark-mode .tool-btn {
    background: #2b2b2b;
    border-color: #444;
    color: #f3f4f6;
}

body.dark-mode .tool-btn.active {
    background: #FFCC02;
    color: #1f2937;
    border-color: #FFCC02;
}

body.dark-mode #whiteboard-canvas {
    border-color: #444;
}

body.dark-mode .inline-fillin-input {
    background: #2b2b2b;
    color: #f3f4f6;
    border-color: #444;
}

body.dark-mode .inline-fillin-input:focus {
    border-color: #FFCC02;
    box-shadow: 0 0 0 3px rgba(255, 204, 2, 0.1);
    background: #1f1f1f;
}

body.dark-mode .fill-in-template {
    background: #1f1f1f;
    border-color: #333;
}

body.dark-mode .chat-prediction {
    background: #1f1f1f;
    border-color: #333;
}

body.dark-mode .chat-prediction-item {
    color: #f3f4f6;
}

body.dark-mode .chat-prediction-item:hover,
body.dark-mode .chat-prediction-item.selected {
    background: #2a2a2a;
    color: #FFCC02;
}

body.dark-mode .inline-autocomplete {
    background: #1f1f1f;
    border-color: #333;
}

body.dark-mode .inline-autocomplete-item {
    color: #f3f4f6;
}

body.dark-mode .inline-autocomplete-item:hover,
body.dark-mode .inline-autocomplete-item.highlighted {
    background: #2a2a2a;
    color: #FFCC02;
}

body.dark-mode .interactive-input {
    background: #2b2b2b;
    color: #f3f4f6;
    border-color: #444;
}

body.dark-mode .interactive-input:focus {
    border-color: #FFCC02;
    box-shadow: 0 0 0 3px rgba(255, 204, 2, 0.1);
    background: #1f1f1f;
}

body.dark-mode .interactive-input:empty::before {
    color: #6b7280;
}

body.dark-mode .dictation-indicator {
    background: rgba(255, 204, 2, 0.1);
}

body.dark-mode .dictation-text {
    color: #FFCC02;
}

body.dark-mode .sound-wave .wave {
    background: #FFCC02;
}

body.dark-mode .language-detection-notice {
    background: rgba(255, 204, 2, 0.1);
    border-left-color: #FFCC02;
    color: #FFCC02;
}

body.dark-mode .assistant a {
    color: #64B5F6;
}

body.dark-mode .chat-input-content {
    background-color: #2b2b2b;
    color: #f3f4f6;
    border-color: #444;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

body.dark-mode .error-message {
    color: #ff6b6b;
}

body.dark-mode .sidebar-tool:hover {
    background: #2a2a2a;
}

body.dark-mode .sidebar-tool.active {
    background: #2a2a2a;
}

body.dark-mode .sidebar-tool-name {
    color: #f3f4f6;
}

body.dark-mode .sidebar-section-chevron {
    color: #9ca3af;
}

body.dark-mode .manipulative-view {
    background: #1f1f1f;
    border-right-color: #333;
}

body.dark-mode .manipulative-header {
    background: #171717;
    border-bottom-color: #333;
}

body.dark-mode .manipulative-title {
    color: #f3f4f6;
}

body.dark-mode .manipulative-close {
    color: #9ca3af;
}

body.dark-mode .manipulative-close:hover {
    background: #2a2a2a;
    color: #ef4444;
}

body.dark-mode .sidebar-mobile-toggle {
    background: #1f1f1f;
    border-color: #333;
    color: #f3f4f6;
}

body.dark-mode .language-select {
    background: #2b2b2b;
    color: #f3f4f6;
    border-color: #444;
}

body.dark-mode .btn-secondary {
    background: #2b2b2b;
    border-color: #444;
    color: #f3f4f6;
}

body.dark-mode .btn-secondary:hover {
    background: #2a2a2a;
}

/* ===========================================
   Responsive / Mobile
   =========================================== */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(calc(var(--sidebar-width) * -1));
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-mobile-toggle {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 12px 16px;
        padding-top: 50px;
    }

    .manipulative-view {
        left: 0;
        width: 100%;
        height: 45vh;
        position: fixed;
        top: 0;
    }

    body.manipulative-open .main-content {
        margin-left: 0;
        width: 100%;
        margin-top: 45vh;
        height: 55vh;
        padding-top: 12px;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 8px;
        padding-top: 50px;
    }

    .topic-chips {
        gap: 6px;
    }

    .topic-chip {
        padding: 6px 12px;
        font-size: var(--font-size-2xs);
    }

    #output {
        padding: 10px;
    }

    #output .placeholder,
    #output .assistant,
    #output .user {
        max-width: 95%;
        padding: 10px 12px;
    }

    .chat-input {
        gap: 4px;
        padding: 8px;
    }

    .chat-input input {
        font-size: var(--font-size-xs);
        padding: 8px 12px;
    }

    .chat-footer-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .footer-copyright {
        text-align: center;
    }

    .footer-actions {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .topic-chips {
        flex-direction: column;
    }

    .chat-footer-btn span {
        display: none;
    }
}

/* ===========================================
   Print Styles
   =========================================== */
@media print {
    .sidebar,
    .sidebar-mobile-toggle,
    .sidebar-overlay,
    .manipulative-view,
    .chat-input,
    .chat-footer-buttons,
    .topic-chips,
    .quick-replies,
    .typing-indicator,
    #loader,
    #stop {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    body {
        background: #ffffff;
    }

    .conversation-container {
        box-shadow: none;
        border-radius: 0;
    }
}
