:root {
    --primary-color: #8E59FF;
    --primary-hover: #8E59FF;
    --primary-light-color: #f0f0f0;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --sidebar-width: 320px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
}

/* App Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--card-background);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    overflow-y: auto;
}

/* Apply fixed position ONLY for the original two-column layout if needed */
.app-container .sidebar {
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.sidebar-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Main Content Styles */
.main-content {
    padding: 2rem;
}

/* Reset margin/max-width for main content ONLY when inside the OLD two-column layout */
.app-container .main-content {
    margin-left: var(--sidebar-width);
    max-width: calc(100% - var(--sidebar-width));
}

.main-header {
    text-align: center;
    margin-bottom: 3rem;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.main-header p {
    font-size: 1.1rem;
    color: #64748b;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

label {
    font-weight: 500;
    color: var(--text-color);
}

.select-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e293b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.select-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select-input:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--primary-hover);
}

.submit-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* Results Styles */
.results-container {
    background-color: var(--card-background);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.result-card {
    padding: 2rem;
}

.result-card:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.result-card h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.summary-text {
    line-height: 1.6;
}

.summary-text p {
    margin-bottom: 1rem;
    white-space: normal;
}

.summary-text h1,
.summary-text h2,
.summary-text h3,
.summary-text h4,
.summary-text h5,
.summary-text h6 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.summary-text ul,
.summary-text ol {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.5rem;
}

.summary-text li {
    margin-bottom: 0.25rem;
}

.summary-text li:last-child {
    margin-bottom: 0;
}

.summary-text strong {
    font-weight: 600;
}

.summary-text em {
    font-style: italic;
}

.summary-text code {
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.9em;
}

.summary-text pre {
    background-color: #f1f5f9;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.summary-text pre code {
    background-color: transparent;
    padding: 0;
}

.summary-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: #64748b;
}

.summary-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.summary-text a:hover {
    text-decoration: underline;
}

.summary-text img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.summary-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.summary-text th,
.summary-text td {
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    text-align: left;
}

.summary-text th {
    background-color: #f8fafc;
}

.ideas-list {
    margin-top: 1rem;
}

.idea-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.idea-pill {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.idea-pill:hover {
    background-color: #cbd5e0;
}

.idea-pill.all-ideas {
    background-color: #8E59FF;
    color: white;
}

.idea-pill.all-ideas:hover {
    background-color: #8E59FF;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading::after {
    content: "";
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
    }

    .main-header {
        margin-top: 1rem;
    }

    .main-header h1 {
        font-size: 2rem;
    }
}

/* Three Column Layout */
.app-container-three-col {
    display: grid;
    /* Use minmax(0, 1fr) for the flexible center column */
    grid-template-columns: 280px minmax(0, 1fr) 350px; 
    height: 100vh;
    max-height: 100vh;
    overflow: hidden; /* Prevent the whole page from scrolling */
}

/* Ensure consistent box-sizing for all grid children */
.app-container-three-col > * { /* Target direct children: sidebar, main, transcript-sidebar */
    box-sizing: border-box;
}

/* Ensure sidebar height is handled by grid in three-col layout */
.app-container-three-col .sidebar {
    position: static; 
    height: auto;     
    width: 280px; /* Explicitly set width to match grid column definition */
    /* Or use width: auto; to let grid fully control */
    border-right: 1px solid var(--border-color); 
    overflow-y: auto; 
    max-height: 100vh; /* Allow sidebar to scroll if its content is too long */
}

.app-container-three-col .main-content {
    margin-left: 0; 
    max-width: none;
    padding: 2rem; /* Keep padding */
    overflow-x: hidden; /* Prevent horizontal overflow/overlap */
    min-width: 0; /* Add this to allow shrinking */
    overflow-y: auto; /* Add vertical scroll if content might exceed viewport height */
}

.app-container-three-col .transcript-sidebar {
    background-color: #ffffff;
    padding: 1.5rem;
    border-left: 1px solid #e2e8f0;
    overflow-y: auto; 
    height: auto; /* Let the grid control the height */
    max-height: 100vh; /* Allow transcript list to scroll */
}

.transcript-list-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem; 
    overflow: hidden; /* Important for rounded corners */
}

.accordion-header {
    background-color: #f8fafc;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.accordion-header:hover {
    background-color: #f1f5f9;
}

.accordion-header .arrow {
    transition: transform 0.3s ease;
}

.accordion-header.active .arrow {
    transform: rotate(90deg);
}

.accordion-content {
    padding: 1rem;
    background-color: #ffffff;
    display: none; /* Hidden by default */
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4a5568;
}

.accordion-content.show {
    display: block;
}

.transcript-line {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.transcript-line.highlighted-turn {
    background-color: #ebf8ff;
}

/* Dark mode highlight for Global Insights */
.global-insights-mode .transcript-line.highlighted-turn {
    background-color: #F7B23F;  /* Bright orange highlight */
    color: #1e1b4b;  /* Dark text for contrast */
    font-weight: 500;
}

.transcript-speaker {
    font-weight: 600;
    margin-right: 0.5rem;
}

.transcript-time {
    color: #718096;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

/* Ensure sidebar header styles are consistent */
.transcript-sidebar .sidebar-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
}

/* Three Column Layout Specific Adjustments (if needed later) */
/* REMOVE THIS DUPLICATE RULE BLOCK */
/*
.app-container-three-col .main-content {
    margin-left: 0; 
    max-width: none;
}
*/

/* General styles for clickable reference quotes */
.quote {
    color: #3182ce; /* Link-like blue color */
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted; /* Subtle underline */
    transition: color 0.2s ease, text-decoration-style 0.2s ease, background-color 0.2s ease;
    background-color: #ebf8ff; /* Very light blue background */
    padding: 0.1em 0.3em;
    border-radius: 0.25rem;
    border: 1px solid #bee3f8; /* Add a subtle border */
    white-space: normal; /* Allow wrapping inside chat bubbles */
}

.quote:hover {
    color: #2c5282; /* Darker blue on hover */
    text-decoration-style: solid;
    background-color: #bee3f8; /* Slightly darker background on hover */
    border-color: #90cdf4;
}

/* Make quotes in summary look clickable */
.summary-text .quote {
    /* Inherits general styles. Add overrides here if needed */
    /* e.g., background-color: transparent; if you don't want the blue background in summary */
}

/* Ensure quotes within LLM chat messages also get styled */
.llm-message .quote {
    /* Inherits general styles. Add overrides here if needed */
}

/* Style for the secondary Reset button */
.secondary-btn {
    padding: 0.5rem 1rem;
    background-color: var(--muted-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.secondary-btn:hover {
    background-color: var(--border-color);
    border-color: var(--muted-color);
}

/* Ensure primary submit button retains its style */
.submit-btn {
    /* ... existing submit-btn styles ... */
    /* Add any specific overrides if needed, but likely okay */
}

/* Filter Section Styling */
.filter-section {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Space between form-groups within a section */
}

.filter-section-title {
    font-size: 1rem; /* Slightly smaller than main headers */
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem; /* Space below title, before first filter */
    padding-bottom: 0.5rem;
    /* Optional: add a subtle bottom border to titles */
    /* border-bottom: 1px solid var(--border-color); */
}

.filter-separator {
    border: none; /* Remove default border */
    border-top: 1px solid var(--border-color); /* Style as a line */
    margin: 1.5rem 0; /* Space above and below the separator */
}

/* Remove bottom margin from last form-group in each section */
.filter-section .form-group:last-of-type {
    margin-bottom: 0;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted-text-color);
    border-bottom: 2px solid transparent; /* Placeholder for active state */
    margin-bottom: -2px; /* Overlap border */
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

.tab-button:hover {
    color: var(--text-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Tab Content Styling */
.tab-panel {
    display: none; /* Hide panels by default */
}

.tab-panel.active {
    display: block; /* Show active panel */
}

/* Chat Interface Styling */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 70vh; /* Example height, adjust as needed */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
}

.chat-history-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-placeholder {
    color: var(--muted-text-color);
    font-style: italic;
    text-align: center;
    margin: auto; /* Center placeholder */
}

.chat-message {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background-color: var(--primary-light-color);
    color: var(--text-color);
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem; /* Chat bubble effect */
    border: 1px solid var(--border-color); /* Add border outline */
}

.llm-message {
    background-color: var(--secondary-background-color);
    color: var(--text-color);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem; /* Chat bubble effect */
}

.chat-input-area {
    display: flex;
    padding: 0.75rem;
    border-top: 1px solid var(--border-color);
}

#chat-input {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius); /* Adjust rounding */
    font-size: 1rem;
    outline: none;
}

#chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light-color);
}

#chat-send-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0; /* Adjust rounding */
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

#chat-send-btn:hover {
    background-color: var(--primary-dark-color);
}

/* Loading indicator for chat */
.chat-loading::after {
    content: '...';
    display: inline-block;
    animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Toggle Switch Styles */
.toggle-switch-container {
    position: relative;
    display: flex;
    width: 240px; /* Adjust width as needed */
    margin: 20px auto; /* Center the switch */
    background-color: var(--textarea-bg);
    border-radius: 6px; /* Less rounded corners */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.toggle-switch-container input[type="radio"] {
    display: none; /* Hide the actual radio buttons */
}

.toggle-label {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    color: var(--text-color-secondary);
    transition: color 0.3s ease, background-color 0.3s ease;
    z-index: 2; /* Ensure labels are above the slider */
    position: relative;
    user-select: none; /* Prevent text selection */
    font-weight: 500;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%; /* Covers half the container */
    background-color: var(--button-bg);
    border-radius: 5px; /* Slightly less rounded than container */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    z-index: 1; /* Below the labels */
}

/* Style the active label */
.toggle-switch-container input[type="radio"]:checked + .toggle-label {
    background-color: var(--primary-color);
    color: white;
    z-index: 1; /* Ensure it's above the slider */
}

/* Move the slider */
#summary-toggle:checked ~ .toggle-slider {
    transform: translateX(0%);
}

#chat-toggle:checked ~ .toggle-slider {
    transform: translateX(100%);
}

/* Styles for the tab content panels (keep existing logic) */
.tab-content-area {
    margin-top: 20px;
}

.tab-panel {
    display: none; /* Hide panels by default */
    padding: 20px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    animation: fadeIn 0.3s ease-in-out; /* Add a subtle fade-in */
}

.tab-panel.active {
    display: block; /* Show the active panel */
}

/* Tab Content Area */
.tab-content-area {
    margin-top: 1.5rem; /* Space between toggle and content */
}

/* Make sure tab panels still work */
/* Styles for the tab content panels (keep existing logic) */
.tab-panel {
    display: none; /* Hide panels by default */
}

.tab-panel.active {
    display: block; /* Show active panel */
}

/* Styling for the new ideas section */
.ideas-card {
    margin-top: 20px; /* Space above the ideas card */
}

.idea-pills-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Spacing between pills */
    padding-top: 10px;
}

.idea-pill {
    background-color: #e0e0e0; /* Light grey background */
    color: #333; /* Dark text */
    padding: 5px 12px;
    border-radius: 16px; /* Rounded corners for pill shape */
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default; /* Indicates not clickable */
    transition: background-color 0.2s ease;
}

.idea-pill.all-ideas-pill {
    background-color: #cce5ff; /* A slightly different color for the 'All Ideas' pill */
    color: #004085;
}

/* Loading Animation for Summary (ensure it's defined) */
.loading::after {
    content: "";
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   GLOBAL INSIGHTS MODE - DARK THEME
   ============================================ */

.global-insights-mode {
    /* Dark theme color overrides */
    --background-color: #1e1b4b;  /* Deep purple/navy background */
    --card-background: #2d2a5a;   /* Slightly lighter purple for cards */
    --text-color: #f1f5f9;        /* Light text */
    --border-color: #4c4a7a;      /* Purple-tinted borders */
    --primary-color: #F7B23F;     /* Bright orange */
    --primary-hover: #E98537;     /* Darker orange on hover */
}

/* Main background and containers */
.global-insights-mode,
.global-insights-mode body,
.global-insights-mode .app-container-three-col {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Sidebar dark theme */
.global-insights-mode .sidebar {
    background-color: var(--card-background);
    border-right-color: var(--border-color);
}

/* Main content area */
.global-insights-mode .main-content {
    background-color: var(--background-color);
}

/* Headers in dark theme */
.global-insights-mode h1,
.global-insights-mode h2,
.global-insights-mode h3 {
    color: var(--text-color);
}

/* Cards and containers */
.global-insights-mode .form-group,
.global-insights-mode .accordion-item,
.global-insights-mode .chat-container {
    background-color: var(--card-background);
    border-color: var(--border-color);
}

/* Buttons with orange accent */
.global-insights-mode button,
.global-insights-mode .button {
    background-color: var(--primary-color);
    color: white;
}

.global-insights-mode button:hover,
.global-insights-mode .button:hover {
    background-color: var(--primary-hover);
}

/* Input fields in dark theme */
.global-insights-mode select,
.global-insights-mode input[type="text"],
.global-insights-mode textarea {
    background-color: var(--card-background);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Labels */
.global-insights-mode label {
    color: var(--text-color);
}

/* Transcripts section - right panel */
.global-insights-mode .transcript-sidebar,
.global-insights-mode .transcript-list-container,
.global-insights-mode #transcript-list {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Transcript sidebar header */
.global-insights-mode .transcript-sidebar .sidebar-header {
    background-color: var(--card-background);
    border-bottom-color: var(--border-color);
}

/* Individual transcript cards */
.global-insights-mode .transcript-item,
.global-insights-mode .accordion-item {
    background-color: var(--card-background);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Transcript accordion content */
.global-insights-mode .accordion-content {
    background-color: var(--card-background);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Transcript headers */
.global-insights-mode .accordion-header {
    background-color: var(--card-background);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Transcript text inside */
.global-insights-mode .turn-transcript,
.global-insights-mode .speaker-name {
    color: var(--text-color);
}

/* Chat interface dark theme */
.global-insights-mode .chat-interface {
    background-color: var(--card-background);
    border-color: var(--border-color);
}

.global-insights-mode .chat-history-container {
    background-color: var(--card-background);
}

.global-insights-mode .chat-placeholder {
    color: var(--text-color);
    opacity: 0.6;
}

/* User messages in dark mode */
.global-insights-mode .user-message {
    background-color: var(--primary-color);  /* Orange background */
    color: #1e1b4b;  /* Dark text for contrast */
    border-color: var(--primary-hover);
}

/* Assistant/LLM messages in dark mode */
.global-insights-mode .llm-message {
    background-color: var(--card-background);  /* Dark purple card */
    color: var(--text-color);  /* Light text */
    border: 1px solid var(--border-color);
}

/* Chat input area in dark mode */
.global-insights-mode .chat-input-area {
    background-color: var(--card-background);
    border-top-color: var(--border-color);
}

.global-insights-mode #chat-input {
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.global-insights-mode #chat-input::placeholder {
    color: var(--text-color);
    opacity: 0.5;
}

/* Chat message content (paragraphs, lists, etc.) in dark mode */
.global-insights-mode .llm-message p,
.global-insights-mode .llm-message ul,
.global-insights-mode .llm-message ol,
.global-insights-mode .llm-message li,
.global-insights-mode .llm-message h1,
.global-insights-mode .llm-message h2,
.global-insights-mode .llm-message h3,
.global-insights-mode .llm-message h4,
.global-insights-mode .llm-message strong,
.global-insights-mode .llm-message em {
    color: var(--text-color);
}

/* Quotes within chat messages in dark mode */
.global-insights-mode .llm-message .quote {
    color: var(--primary-color);  /* Orange for quotes */
    text-decoration: underline;
    cursor: pointer;
}

.global-insights-mode .llm-message .quote:hover {
    color: var(--primary-hover);
}