:root {
    --primary-color: #00509C;
    --primary-hover: #003a70;
    --accent-yellow: #FDCA01;
    --accent-red: #D20643;
    --accent: #D20643;
    --bg-dark: #282741;
    --sidebar-bg: #004080;
    /* A slightly darker ISD blue for depth */
    --chat-bg: #F3F3F3;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --border-color: #d1d1d1;
    --ai-bubble: #ffffff;
    --user-bubble: #00509C;
    --user-text: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius: 5px;
    /* ISD style border radius */
}

/* Offline Mode Colors */
body.offline-mode {
    --primary-color: #D20643;
    /* Using ISD Accent Red */
    --primary-hover: #b00538;
    --sidebar-bg: #4a0017;
    --user-bubble: #D20643;
}

/* Red dot for offline status */
body.offline-mode .status-dot {
    background: #ff0000 !important;
    box-shadow: none;
    animation: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
}

body {
    background-color: var(--chat-bg);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

.avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--chat-bg);
    position: relative;
    overflow: hidden;
}

.main-header {
    padding: 16px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Nunito Sans', sans-serif;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
}

/* Chat Area */
.chat-messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message {
    display: flex;
    gap: 16px;
    max-width: 800px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message .avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.message.ai .avatar {
    background: var(--primary-color);
    color: var(--white);
}

.message.user .avatar {
    background: #e2e8f0;
    color: var(--text-main);
}

.message-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.message-body .content {
    padding: 16px;
    border-radius: var(--radius);
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    overflow-wrap: break-word;
}

.message.ai .content {
    background: var(--ai-bubble);
    border-top-left-radius: 0;
}

.message.user .content {
    background: var(--user-bubble);
    color: var(--user-text);
    border-top-right-radius: 0;
}

/* Message Feedback */
.feedback-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 1;
}

.feedback-comment-display,
.feedback-comment-container {
    flex-basis: 100%;
}

.feedback-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feedback-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Subtle Colors for Feedback */
.feedback-btn.feedback-good:hover,
.feedback-btn.feedback-good.active {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.08);
}

.feedback-btn.feedback-medium:hover,
.feedback-btn.feedback-medium.active {
    color: #5f6368;
    background: rgba(95, 99, 104, 0.08);
}

.feedback-btn.feedback-bad:hover,
.feedback-btn.feedback-bad.active {
    color: #c62828;
    background: rgba(198, 40, 40, 0.08);
}

.feedback-btn.active {
    font-weight: bold;
}

.feedback-btn.active[data-rating="1"] {
    color: #28a745;
}

.feedback-btn.active[data-rating="-1"] {
    color: #dc3545;
}

/* Source Cards */
.sources-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.source-card {
    background: rgba(0, 74, 143, 0.05);
    border: 1px solid rgba(0, 74, 143, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    transition: background 0.2s;
}

.source-card:hover {
    background: rgba(0, 74, 143, 0.1);
}

/* Project-specific Source Icon Styles (subtle icon-only background) */
.source-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.source-icon-img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.source-icon-hicad {
    background: rgba(210, 6, 67, 0.15);
    color: #c00038;
}

.source-icon-helios {
    background: rgba(253, 202, 1, 0.3);
    color: #8a6800;
}

/* Input Area */
.chat-input-container {
    padding: 16px 32px 12px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-form {
    max-width: 800px;
    min-width: 0;
    margin: 0 auto;
    display: flex;
    background: var(--chat-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px 16px;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.chat-form:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 74, 143, 0.1);
}

textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
    max-height: 200px;
}

.input-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

#voice-input-btn,
#send-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s ease-in-out;
}

#voice-input-btn {
    background: #e2e8f0;
    color: var(--text-main);
}

#voice-input-btn:hover {
    background: #cbd5e1;
}

#voice-input-btn.recording {
    background: #dc3545;
    color: var(--white);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

#send-button:hover {
    background: var(--primary-hover);
}

.loading-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.loading-abort-btn {
    background: transparent;
    border: none;
    color: #999;
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.loading-abort-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #c62828;
    opacity: 1;
}

.loading-abort-btn i {
    width: 14px;
    height: 14px;
}

/* EU AI Act Notice Banner */
.ai-notice-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #e8f0fa;
    border-bottom: 1px solid #c0d4ef;
    font-size: 0.73rem;
    color: #1a3a6b;
    flex-shrink: 0;
}

.ai-notice-banner .ai-notice-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.ai-notice-banner #ai-notice-text {
    flex: 1;
}

.ai-notice-banner .ai-notice-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #5572a0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 3px;
}

.ai-notice-banner .ai-notice-close:hover {
    color: #1a3a6b;
    background: #c0d4ef;
}

.ai-notice-banner .ai-notice-close i {
    width: 13px;
    height: 13px;
}

.ai-notice-banner.hidden {
    display: none;
}

.input-disclaimer {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 10px;
    padding-bottom: 4px;
}

/* Markdown Styling */
.content h1,
.content h2,
.content h3 {
    margin-bottom: 12px;
    font-family: 'Nunito Sans', sans-serif;
}

.content p {
    margin-bottom: 12px;
}

.content ul {
    margin: 0 0 12px 20px;
}

.content code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* News Box in Greeting */
.news-box {
    background: #fff9c4;
    /* Light yellow */
    border: 2px solid var(--accent-yellow);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.news-icon {
    background: var(--accent-yellow);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    margin: 0 0 4px 0;
    color: var(--primary-color);
    font-weight: 700;
}

.news-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Info & Guide Styles */
.info-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: var(--shadow);
    color: var(--text-main);
}

.info-box h2 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-section {
    margin-bottom: 20px;
}

.info-section h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 4px;
}

.info-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 12px;
}

.info-item {
    background: rgba(0, 74, 143, 0.03);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.info-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Ensure news block can handle multiple items */
.news-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.news-item-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
}

/* --- HiCAD Integration (Properties Dialog Look) --- */
body.hicad-integrated {
    --chat-bg: #ffffff;
    --ai-bubble: #F5F9FF;
    --user-bubble: #f0f0f0;
    --user-text: #333;
}

.main-header {
    background: linear-gradient(to bottom, #C6D9F1, #95B3D7) !important;
    border-bottom: 1px solid #8CAAD0 !important;
    padding: 6px 12px !important;
    height: auto !important;
}

.main-header h1 {
    font-size: 0.95rem !important;
    color: #1E395B !important;
    font-weight: 700 !important;
}

/* Show status dot in integrated mode toolbar */
.status-indicator {
    display: flex;
}

.hicad-toolbar {
    display: none;
    background: linear-gradient(to bottom, #EAF1FB, #D9E5F7);
    border-bottom: 1px solid #B0C4DE;
    padding: 2px 4px;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    container-type: inline-size;
}

.hicad-toolbar {
    display: flex;
}

.hicad-toolbar-btn {
    background: #f0f0f0;
    border: 1px solid #adadad;
    border-radius: 2px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 3px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 1px rgba(0, 0, 0, 0.05);
    transition: all 0.1s;
}

.hicad-toolbar-btn:hover {
    background: #e5e5e5;
    border-color: #0078d7;
}

.hicad-toolbar-btn:active {
    background: #cce4f7;
    border-color: #005499;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hicad-toolbar-btn i {
    width: 14px;
    height: 14px;
}

.hicad-toolbar-btn.compact-btn {
    padding: 1px 6px !important;
    gap: 3px !important;
    font-size: 0.72rem !important;
}

.hicad-toolbar-btn.compact-btn i {
    width: 13px !important;
    height: 13px !important;
}

.hicad-toolbar-btn.icon-only-btn {
    padding: 3px !important;
    border-radius: 4px;
}

.hicad-toolbar-btn.icon-only-btn span {
    display: none;
}

.hicad-toolbar-btn.icon-only-btn i {
    width: 16px !important;
    height: 16px !important;
}

.main-content {
    flex: 1;
}

.chat-input-container {
    padding: 12px 16px !important;
    background: #f0f0f0 !important;
    border-top: 1px solid #AAA !important;
}

.chat-form {
    border-radius: 4px !important;
    background: white !important;
    padding: 2px 8px !important;
    box-shadow: none !important;
    border: 1px solid #ADADAD !important;
    max-width: 100% !important;
}

.chat-form textarea {
    font-size: 0.9rem !important;
    padding: 8px 0 !important;
}

#send-button {
    width: 32px !important;
    height: 28px !important;
    border-radius: 2px !important;
    background: #f0f0f0 !important;
    border: 1px solid #adadad !important;
    color: #333 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 1px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#send-button:hover {
    background: #e5e5e5 !important;
    border-color: #0078d7 !important;
}

#send-button:active {
    background: #cce4f7 !important;
    border-color: #005499 !important;
}

.message {
    padding: 12px 16px !important;
    gap: 12px !important;
}

.message.ai .message-body {
    max-width: 95% !important;
}

.message.user {
    max-width: 85%;
}

.message.ai .content {
    background: var(--ai-bubble) !important;
    border: 1px solid #C6D9F1 !important;
    border-radius: 6px !important;
}

.message.user .content {
    background: var(--user-bubble) !important;
    border: 1px solid #CCC !important;
    border-radius: 6px !important;
}

.avatar {
    display: none !important;
}

/* Ensure Logo/Title is visible in Overlay header if needed, but per request keep it simple */


/* Horizontal Settings Panel for Integrated Mode */
.toolbar-setting-group {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 4px;
    flex-shrink: 1;
    min-width: 0;
}

.toolbar-setting-group label {
    font-size: 0.7rem;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
}

/* Scope Segmented Button Group - HiCAD Style */
.scope-btn-group {
    display: flex;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
}

.scope-btn {
    background: #f0f0f0;
    border: 1px solid #adadad;
    border-radius: 2px;
    color: #222;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.1s, background 0.1s;
    white-space: nowrap;
    line-height: 1.7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 1px rgba(0, 0, 0, 0.08);
    flex: 1 1 auto;
    min-width: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scope-btn:hover:not(.active) {
    background: #e4e4e4;
    border-color: #999;
}

.scope-btn.active {
    background: #FFFBDD;
    /* Pale yellow background like HiCAD */
    border: 2px solid #E87A0F;
    color: #111;
    font-weight: 600;
    box-shadow: none;
    padding: 1px 7px;
    /* compensate for extra border-width */
}

.settings-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.setting-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-group label {
    font-size: 0.8rem;
    color: #444;
    font-weight: 600;
    white-space: nowrap;
}

.setting-group select {
    padding: 3px 6px;
    border: 1px solid #ADADAD;
    border-radius: 3px;
    font-size: 0.8rem;
    background: white;
    outline: none;
    cursor: pointer;
}

.setting-group select:focus {
    border-color: #00509C;
}

/* Toolbar-Texte ausblenden wenn Platz knapp wird */
@container (max-width: 400px) {
    #toolbar-scope-label {
        display: none;
    }
}

@container (max-width: 300px) {
    #new-chat-btn-compact span {
        display: none;
    }
}


/* Compact Mode Overrides */
.chat-messages {
    padding: 12px !important;
    gap: 12px !important;
}

.message {
    padding: 0 !important;
    margin-bottom: 4px !important;
    gap: 8px !important;
}

.message-body .content {
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.content p,
.content ul,
.content h1,
.content h2,
.content h3 {
    margin-bottom: 6px !important;
}

.chat-input-container {
    padding: 8px 12px !important;
}

.chat-form textarea {
    padding: 4px 0 !important;
    font-size: 0.85rem !important;
}

.input-disclaimer {
    margin-top: 4px !important;
    font-size: 0.65rem !important;
}

.ai-notice-banner {
    padding: 4px 12px !important;
    font-size: 0.65rem !important;
}


.hicad-settings-panel {
    padding: 4px 12px !important;
}

.feedback-container {
    margin-top: 6px !important;
    padding-top: 6px !important;
}


/* Compact Info Box for Integrated Mode */
.info-box {
    padding: 12px !important;
}

.info-box h2 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
}

.info-section {
    margin-bottom: 12px !important;
}

.info-section h3 {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
}

.info-grid {
    gap: 8px !important;
}

.info-item {
    font-size: 0.8rem !important;
}

/* Slim Scrollbar for Integrated Mode */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 3px;
}


/* Super-Compact Source Links for Integrated Mode */
.sources-container {
    gap: 4px !important;
    margin-top: 6px !important;
}

.source-card {
    padding: 3px 6px !important;
    font-size: 0.7rem !important;
    border-radius: 4px !important;
}

.source-icon {
    width: 16px !important;
    height: 16px !important;
    border-radius: 2px !important;
    background: transparent !important;
}

.source-icon-img {
    width: 14px !important;
    height: 14px !important;
    object-fit: contain !important;
}


/* Offline Styles for Integrated Mode */
body.offline-mode .chat-input-container {
    background: #f0f0f0 !important; /* Normal background color */
}

body.offline-mode .chat-form {
    border: 1px solid #D20643 !important; /* Red border as indicator */
}

body.offline-mode .chat-form textarea::placeholder {
    color: var(--text-muted) !important;
    font-weight: normal !important;
}

body.offline-mode .hicad-toolbar {
    background: #DDD !important;
    /* Gray out toolbar */
    opacity: 0.7;
    pointer-events: none;
}

.message.ai.error .content,
.message.ai.error.integrated-offline .content {
    background: var(--ai-bubble) !important;
    color: var(--text-main) !important;
    border: 1px solid #D20643 !important;
    font-weight: normal;
    text-align: left;
}


/* --- Loading Indicators (Phases & Shimmering Dots) --- */
.message.ai.loading .content {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
    background: var(--ai-bubble);
}

.loading-status-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 4px;
}

.progress-container {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-loading {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease-out;
}

.typing-indicator {
    display: flex;
    gap: 6px;
    padding: 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(90deg, #e0e0e0 25%, #f8f8f8 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: typing-shimmer 1.5s infinite linear;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.3s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes typing-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Clickable Suggestions UI --- */
.suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 4px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.suggestion-btn {
    background: var(--user-bubble);
    color: var(--user-text);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: left;
    width: fit-content;
    max-width: 100%;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.suggestion-btn i {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.8;
}

.suggestion-btn span {
    line-height: 1.4;
}

.suggestion-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
}

.suggestion-btn:active:not(:disabled) {
    transform: translateY(0);
}

.suggestion-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.suggestions-container {
    border-top: 1px dashed #CCC;
}

.suggestion-btn {
    background: var(--user-bubble);
    color: var(--text-main);
    border: 1px solid #CCC;
    height: 22px !important;
    padding: 0 6px !important;
    font-size: 0.72rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px !important;
    box-shadow: none !important;
}

.suggestion-btn i {
    width: 16px !important;
    height: 16px !important;
    opacity: 0.6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.suggestion-btn i svg {
    width: 12px !important;
    height: 12px !important;
    stroke-width: 1.5px !important;
}

.suggestion-btn:hover:not(:disabled) {
    background: #e8e8e8;
    border-color: #ADADAD;
}