﻿* {
    color: var(--bz-text);
    font-family: var(--bz-font-body);
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

/* Show scrollbar when scrolling (Firefox) */
.scrolling {
    scrollbar-color: rgba(24, 49, 81, 0.2) transparent;
}

/* Webkit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

/* Show scrollbar when scrolling (Webkit) */
.scrolling::-webkit-scrollbar-thumb {
    background: rgba(24, 49, 81, 0.2);
}

.scrolling::-webkit-scrollbar-thumb:hover {
    background: rgba(24, 49, 81, 0.4);
}

input, textarea {
    vertical-align: bottom;
}

/* CSS Custom Properties now provided by styleguild.css (--bz-* tokens) */

.chat-column {
    overflow: hidden;
    transition: width 0.3s ease;
}

/* Only apply min/max constraints when artifact panel is open */
body:has(.artifact-panel.open) .chat-column {
    min-width: 20%;
    max-width: 80%;
}

/* Disable transition during panel resizing for smooth drag */
body.panel-resizing .chat-column {
    transition: none;
}

/* ===================================
   INTRO MESSAGE (Welcome screen)
   =================================== */
.intro-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    bottom: 350px; /* Height of chatbox-wrapper area */
    transition: opacity 0.5s ease-out;
    padding: 20px;
    text-align: center;
}

.intro-title {
    line-height: 1;
    margin: 0;
}

.intro-gradient-text {
    letter-spacing: -10px;
    font-weight: 700;
    font-size: 100px;
    padding-right: 10px;
    background: var(--bz-gradient-full);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.intro-subtitle {
    margin: 5px 0 0 0;
}

.intro-subtitle span {
    letter-spacing: -2px;
    font-size: 32px;
}

/* Responsive intro text */
@media (max-width: 1200px) {
    .intro-gradient-text {
        font-size: 70px;
        letter-spacing: -6px;
    }
    .intro-subtitle span {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    .intro-gradient-text {
        font-size: 55px;
        letter-spacing: -4px;
    }
    .intro-subtitle span {
        font-size: 24px;
        letter-spacing: -1px;
    }
}

@media (max-width: 600px) {
    .intro-gradient-text {
        font-size: 40px;
        letter-spacing: -3px;
    }
    .intro-subtitle {
        margin-top: 0px;
    }
    .intro-subtitle span {
        font-size: 18px;
        letter-spacing: 0;
    }
    .intro-message {
        bottom: auto;
        top: 70px; /* Make room for top buttons */
        height: 30vh;
        min-height: 120px;
    }
}

@media (max-width: 400px) {
    .intro-gradient-text {
        font-size: 32px;
        letter-spacing: -2px;
    }
    .intro-subtitle {
        margin-top: 2px;
    }
    .intro-subtitle span {
        font-size: 16px;
    }
    .intro-message {
        top: 60px;
        height: 25vh;
        min-height: 100px;
    }
}

/* Top buttons container */
.top-buttons-container {
    position: fixed;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* On large screens: capabilities button moves to bottom-right */
@media (min-width: 1051px) {
    .top-buttons-container .capabilities-toggle-floating {
        position: fixed;
        top: auto;
        bottom: 20px;
        right: 30px;
    }
}

/* On smaller screens (1050px and below): both buttons in top-right container */
@media (max-width: 1050px) {
    .top-buttons-container {
        top: 15px;
        right: 30px;
        gap: 8px;
    }

    .top-buttons-container .credit-balance-box {
        padding: 6px 12px;
        font-size: 12px;
    }

    .top-buttons-container .capabilities-toggle-floating {
        position: relative;
        width: 38px;
        height: 38px;
    }

    .top-buttons-container .capabilities-toggle-floating i {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .top-buttons-container {
        top: 10px;
        right: 10px;
        gap: 6px;
    }

    .top-buttons-container .credit-balance-box {
        padding: 5px 10px;
        font-size: 11px;
        gap: 4px;
    }

    .top-buttons-container .credit-balance-box i {
        font-size: 12px;
    }

    .top-buttons-container .capabilities-toggle-floating {
        width: 34px;
        height: 34px;
    }

    .top-buttons-container .capabilities-toggle-floating i {
        font-size: 12px;
    }
}

.chat-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 100%;
    overflow-y: scroll;
    padding-bottom: 20px;
    position: relative;
    transition: height .5s ease-in;
    padding-top: 30px;
}

.chat-log {
    /*max-height: 100%;*/
    /*max-width: 700px;*/
    /*overflow-y: auto;*/
    /*background: #fff;*/
    /*margin-bottom: 1rem;*/
    max-width: 950px;
    width: 100%;
    border-radius: var(--bz-radius-md);
    padding: 20px;
    height: fit-content;
    margin-bottom: 200px;
}


.suggestions-wrapper {
    width: 100%;
    flex-wrap: wrap;
    display: flex;
    gap: 10px;
    transition: opacity .5s ease-out;
    margin-bottom: 10px;
}

    .suggestions-wrapper .suggestion-item {
        padding: 10px 20px;
        border-radius: var(--bz-radius-pill);
        background: var(--bz-glass);
        /* background: rgb(255 255 255 / 100%); */
        border: 1px solid #ddd;
        width: fit-content;
        transition: background .2s ease-out;
        box-shadow: var(--bz-shadow-sm);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 2px solid white;
        user-select: none;
    }

        .suggestions-wrapper .suggestion-item:hover {
            background: rgb(255 255 255 / 100%);
            cursor: pointer;
            color: black;
        }


.chatbox-wrapper {
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    bottom: 0px;
    /* background: linear-gradient(0deg,rgb(237 223 223 / 90%) 50%, rgb(237 223 223 / 0%) 100%); */
    /* background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%); */
    background: linear-gradient(0deg, #f8f4f1 0%, #f8f4f100 100%);
    
    z-index: 1000;
    transition: height .5s ease;
    padding-left: 75px;
}

/* Parent container that controls max-width for all chatbox children */
.chatbox-content {
    width: 100%;
    max-width: 810px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.input-wrapper {
    width: 100%;
    background: var(--bz-glass);
    /* border: 1px solid #ddd; */
    border-radius: var(--bz-radius-lg);
    padding: 0.5rem;
    box-shadow: var(--bz-shadow-sm);
    backdrop-filter: var(--bz-blur);
    -webkit-backdrop-filter: var(--bz-blur);
}


.chat-textarea-container {
    position: relative;
}

.chat-input-row {
    position: relative;
}

/* ─── Quote Reply ─────────────────────────────────────────── */
.message-AI .response-content ::selection {
    background: rgba(132, 0, 255, 0.15);
    color: inherit;
}
.message-AI .response-content ::-moz-selection {
    background: rgba(132, 0, 255, 0.15);
    color: inherit;
}
mark.quote-highlight {
    background: rgba(132, 0, 255, 0.12);
    color: inherit;
    border-radius: 2px;
    padding: 0;
}

.user-quote-block {
    border-left: 3px solid rgba(132, 0, 255, 0.3);
    padding: 4px 10px;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.8;
    border-radius: 0 4px 4px 0;
}

.quote-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-left: 3px solid rgba(132, 0, 255, 0.3);
    border-radius: 0 8px 8px 0;
    background: rgba(132, 0, 255, 0.04);
    font-size: 13px;
    line-height: 1.4;
    color: #4b5563;
}
.quote-block-text {
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-style: italic;
}
.quote-block-dismiss {
    flex-shrink: 0;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 2px;
    font-size: 14px;
    line-height: 1;
}
.quote-block-dismiss:hover {
    color: #374151;
}

.chat-textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-size: 1rem;
    line-height: 1.5;
    padding: 1rem;
    padding-right: 60px; /* Space for send button */
    border-radius: var(--bz-radius-md);
    background-color: #f7f7f8;
    max-height: 200px;
    overflow-y: auto;
}

/* Button row - positioned inside textarea container */
.chat-button-row {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.chat-controls-left,
.chat-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.icon-button {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #555;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border-radius: var(--bz-radius-pill);
    transition: background-color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .icon-button:hover {
        background-color: #eaeaea;
    }

.send-button {
    /* gradient-primary, flex-center, shadow-purple-glow applied via HTML */
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--bz-t);
}

.send-button.chat-busy {
    opacity: 0.5;
    cursor: not-allowed;
}

    .send-button:hover {
        transform: scale(1.1);
        box-shadow: var(--bz-glow-hover);
    }


.message {
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    align-self: flex-end;
    max-width: 700px;
    display: flex;
    gap: 20px;
}

    .message ul {
    }

    .message video {
        max-width: 250px;
        box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.16);
        border-radius: var(--bz-radius-lg);
    }



.message-user {
    float: right;
    clear: both;
}

    .message-user .message-text {
        background-color: #d1e7dd;
        padding: 0.75rem 1rem;
        border: 1px solid #F9F9F9;
        border-radius: var(--bz-radius-lg);
        height: fit-content;
        background-color: var(--bz-glass);
    }

.message-AI {
    float: left;
    clear: both;
    width: 100%;
}

    /* Ensure the content column always fills remaining space so
       inline visualizations render at full width before text arrives */
    .message-AI > div:last-child {
        flex: 1;
        min-width: 0;
    }

/* Prevent text selection from crossing into visualizations and breaking layout */
.inline-visualization {
    user-select: none;
    -webkit-user-select: none;
}

/* Keep response content from overflowing on long selections */
.response-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

.message-action {
    background-color: var(--bz-glass);
    padding: 10px 20px;
    /* text-align: center; */
    color: black;
    border-radius: var(--bz-radius-pill);
    float: left;
    clear: both;
    width: 100%;
    margin-bottom: 10px;
    width: fit-content;
    margin-left: 90px;
    border-radius: var(--bz-radius-md);
    white-space: pre-line;
    /*Test style*/
    width: 800px;
    background: transparent;
    text-align: center;
    color: #6b6b6b;
    font-style: italic;
    padding: 20px 0px;
    display: flex;
    align-items: center;
}

    .message-action::before,
    .message-action::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #d1d5db; /* light gray line */
        margin: 0 8px;
    }

    .message-action img {
        border-radius: var(--bz-radius-pill);
        width: 40px;
        margin-right: -8px;
        border: 3px solid rgba(255, 255, 255, 0.5);
    }

        .message-action img:last-of-type {
            margin-right: 0px;
        }

.response-content{
    margin-top: 10px;
} 

.chat-agent {
    /* flex-center, pill-shape applied via HTML */
    padding: 8px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0px 4px 30px 0px rgba(0, 38, 230, 0.15);
    overflow: hidden;
    height: 50px;
    width: 50px;
}

    .chat-agent img {
        width: 50px;
        height: 50px;
        max-width: none;
    }


.message {
    opacity: 0;
    transition: opacity .5s ease-in;
}

    .message.visible {
        opacity: 1;
    }
/*
.response-content {
    white-space: pre-wrap;
}
*/

.message-user .response-content p:last-of-type {
    margin-bottom: 0px;
}

.response-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: .5rem;
    margin-top: 2rem;
}

.response-content b, strong {
    font-weight: 700;
}
.response-content li {
    margin-bottom: .5rem;
}

.thinking-block {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(99, 102, 241, 0.05);
    border-left: 3px solid rgba(99, 102, 241, 0.25);
    border-radius: 0 6px 6px 0;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    color: #8b8fa8;
    font-style: italic;
}

.thinking-icon {
    color: rgba(99, 102, 241, 0.5);
    font-size: 0.8rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.file-target {
    height: 120px;
    width: 100%;
    font-size: 30px;
    border: 2px dashed lightgray;
    border-radius: 24px;
    background: #d6d6d67a;
    display: flex;
    justify-content: center;
    align-items: center;
}



.options-wrapper {
    display: none;
    /* opacity: 0; */
    margin-bottom: 10px;
    gap: 20px;
    max-width: 800px;
}

.option-item {
    width: 50%;
    background: linear-gradient(to bottom, rgb(152 145 139 / 10%), rgb(255 255 255 / 35%));
    padding: 6px;
    border-radius: 32px;
    background-image: linear-gradient(to top, rgb(255 255 255 / 100%), rgb(255 255 255 / 20%));
    border: 2px solid white;
    box-shadow: var(--bz-shadow-sm);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.option-content {
    border-radius: 26px;
    padding: 24px;
    background-image: linear-gradient(to bottom, rgb(255 255 255 / 90%), rgb(255 255 255 / 0%));
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

    .option-content h2 {
        font-size: 20px;
        font-weight: 700;
        /* text-align: center; */
        margin-bottom: 5px;
    }



.button-wrapper {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgb(0 0 0 / 8%);
    display: inline-block;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--bz-radius-lg);
    margin-top: 30px;
    font-size: 14px;
    font-weight: 400;
    width: 100%;
    cursor: pointer;
}

    .button-wrapper:hover {
        background: rgb(0 0 0 / 3%);
        color: black;
    }


/* .box-background removed — replaced by .bz-box-accent from design system */

.project-message-blur {
    filter: blur(100px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    height: 100%;
    width: 100%;
}

.gradient-mask {
    border-radius: 99999px;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100%;
    /* min-width: 1000px; */
    height: 90%;
    transform: translate(-50%, -50%) scale(0.7);
    overflow: hidden;
}

.spinning-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vw;
    transform: translate(-50%, -50%);
    animation: spin 8s linear infinite;
    background: conic-gradient(from 0deg, #08f, #f60, #bbffa1, #4c00ff, #ab2666, #09f);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(2);
    }

    to {
        transform: translate(-50%, -50%) rotate(1turn) scale(2);
    }
}


.suggestion-start-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 10px;
}
.suggestion-start-wrapper:not(:has(*)) { padding-top: 0; }

.suggestion-start-item {
    flex: 0 0 calc(50% - 5px);
    cursor: pointer;
    overflow: hidden;
}

.suggestion-start-item h5 {
    font-size: 16px;
    font-weight: 500;
    color: #2a1f4e;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.suggestion-start-text {
    font-size: 13.5px;
    color: rgba(60, 50, 90, 0.45);
    line-height: 1.5;
    margin: 0;
}

/* Stack suggestion items on smaller screens */
@media (max-width: 600px) {
    .suggestion-start-wrapper {
        flex-direction: column;
    }
    .suggestion-start-item {
        flex: 1 1 100%;
    }
    .suggestion-start-item h5 {
        display: none;
    }
}

/* Task List Styles */
.task-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--bz-border);
    border-radius: var(--bz-radius-md);
    padding: 4px 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease, margin-bottom 0.5s ease;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease;
}

.task-item:last-child {
    border-bottom: none;
}

.task-item .checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #9ca3af;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.task-item .checkbox.active::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--bz-gradient);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.task-item .checkbox.checked {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    animation: checkPop 0.3s ease;
}

.task-item .checkbox.checked i {
    color: white;
    font-size: 12px;
}

.task-item .checkbox.checked::before {
    display: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes checkPop {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.task-item .task-name {
    flex: 1;
    font-size: 14px;
    color: #374151;
    transition: color 0.3s ease;
}

.task-item .checkbox.checked + .task-name {
    color: #9ca3af;
}

.completion-text {
    padding: 10px 0;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Artifact Styles - Button to open report */
.artifact-open-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    margin-top: 15px;
    background: var(--bz-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--bz-text);
    border: 2px solid white;
    border-radius: var(--bz-radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--bz-shadow-sm);
}

.artifact-open-btn:hover {
    background: rgb(255 255 255 / 100%);
    transform: translateY(-2px);
    box-shadow: var(--bz-shadow-md);
}

.artifact-open-btn i:first-child {
    font-size: 18px;
}

.artifact-open-btn i:last-child {
    display: none;
}

/* Video loading state for artifact button */
.artifact-open-btn.video-loading {
    background: linear-gradient(135deg, rgb(255 255 255 / 70%), rgb(240 245 255 / 70%));
    cursor: wait;
    animation: video-loading-pulse 2s ease-in-out infinite;
}

.artifact-open-btn.video-loading:hover {
    transform: none;
    box-shadow: var(--bz-shadow-sm);
}

@keyframes video-loading-pulse {
    0%, 100% {
        border-color: rgba(24, 49, 81, 0.2);
    }
    50% {
        border-color: rgba(24, 49, 81, 0.5);
    }
}

/* Artifact Side Panel */
.artifact-overlay {
    display: none;
}

/* Split panel layout container */
.split-panel-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Panel divider - draggable (hidden by default) */
.panel-divider {
    width: 12px;
    margin-left: -6px;
    margin-right: -6px;
    flex-shrink: 0;
    background: transparent;
    cursor: col-resize;
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Thin line (behind handle) - gray by default, gradient on hover */
.panel-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: rgba(24, 49, 81, 0.1);
    z-index: 0;
}

.panel-divider:hover::before,
.panel-divider.dragging::before {
    background: linear-gradient(180deg, transparent, #C2477E, #8400FF, #C2477E, transparent);
}

/* Drag handle in the center */
.panel-divider::after {
    content: '';
    position: relative;
    z-index: 1;
    width: 6px;
    height: 32px;
    background: rgba(24, 49, 81, 0.12);
    border-radius: 3px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.panel-divider:hover::after,
.panel-divider.dragging::after {
    background: var(--bz-gradient);
    box-shadow: 0 0 8px rgba(132, 0, 255, 0.3);
}

/* Artifact panel - now uses flex instead of fixed positioning */
.artifact-panel {
    flex: 1;
    min-width: 20%;
    height: 100%;
    background: var(--bz-bg-white);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.artifact-panel.open {
    display: flex;
}

.artifact-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: transparent;
    flex-shrink: 0;
    box-shadow: var(--bz-shadow-sm);
}

.artifact-panel-title-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.artifact-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bz-gradient);
    border-radius: 10px;
    color: white;
    font-size: 13px;
    flex-shrink: 0;
}

.artifact-icon i {
    color: white;
}

.artifact-panel-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bz-text);
}

.artifact-panel-actions {
    display: flex;
    gap: 6px;
}

.artifact-action-btn {
    background: var(--bz-glass);
    backdrop-filter: var(--bz-blur);
    -webkit-backdrop-filter: var(--bz-blur);
    border: 1px solid var(--bz-border-glass);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--bz-text);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: var(--bz-shadow-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.artifact-action-btn:hover {
    background: white;
    transform: translateY(-1px);
}

.artifact-action-btn i {
    font-size: 13px;
}

.artifact-panel-content {
    flex: 1;
    padding: 28px 28px 28px;
    overflow-y: auto;
    background: transparent;
    color: #374151;
    font-size: 15px;
    line-height: 1.75;
}

    /* Iframes (charts, dashboards) should fill the panel */
    .artifact-panel-content iframe {
        width: 100%;
        height: 100%;
        min-height: 400px;
    }

/* Artifact content styling (for panel) */
.artifact-panel-content h1,
.artifact-panel-content h2,
.artifact-panel-content h3,
.artifact-panel-content h4,
.artifact-panel-content h5,
.artifact-panel-content h6 {
    font-family: var(--bz-font-body);
    color: var(--bz-text);
    line-height: 1.4;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.artifact-panel-content h1 {
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.artifact-panel-content h2 {
    font-size: 20px;
    margin-top: 1.5rem;
}

.artifact-panel-content h3 {
    font-size: 17px;
}

.artifact-panel-content h4 {
    font-size: 15px;
}

.artifact-panel-content h5 {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artifact-panel-content h6 {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artifact-panel-content p {
    margin-bottom: 1rem;
    color: #374151;
}

.artifact-panel-content ul,
.artifact-panel-content ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
    list-style: none;
}

.artifact-panel-content ul li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bz-gradient);
    margin-right: 10px;
    vertical-align: middle;
}

.artifact-panel-content li {
    margin-bottom: 0.35rem;
    color: #374151;
}

.artifact-panel-content strong,
.artifact-panel-content b {
    font-weight: 600;
    color: var(--bz-text);
}

.artifact-panel-content em,
.artifact-panel-content i {
    font-style: italic;
}

.artifact-panel-content a {
    color: var(--bz-purple);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.artifact-panel-content a:hover {
    opacity: 0.7;
}

.artifact-panel-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #c2477e;
}

.artifact-panel-content pre {
    background: #1a1a2e;
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: 13px;
    line-height: 1.6;
}

.artifact-panel-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.artifact-panel-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--bz-border);
}

.artifact-panel-content th,
.artifact-panel-content td {
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 16px;
    text-align: left;
    font-size: 14px;
}

.artifact-panel-content th {
    background: #fafafa;
    font-weight: 600;
    color: var(--bz-text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.artifact-panel-content tr:last-child td {
    border-bottom: none;
}

.artifact-panel-content tr:hover td {
    background: #fafbfc;
}

.artifact-panel-content blockquote {
    border-left: 3px solid rgba(132, 0, 255, 0.3);
    padding: 10px 16px;
    margin: 1.25rem 0;
    background: rgba(132, 0, 255, 0.03);
    border-radius: 0 8px 8px 0;
    color: #6b7280;
    font-style: italic;
}

.artifact-panel-content hr {
    border: none;
    height: 1px;
    background: #f0f0f0;
    margin: 2rem 0;
}

/* First paragraph after headings */
.artifact-panel-content h1 + p,
.artifact-panel-content h2 + p {
    color: #6b7280;
}

/* Responsive - Artifact Panel */
/* Small screens: full width overlay instead of split */
@media (max-width: 768px) {
    .artifact-panel.open {
        position: fixed;
        top: 0;
        left: 0;
        width: 100% !important;
        min-width: 100%;
        max-width: 100%;
        z-index: 9999;
    }

    .panel-divider {
        display: none;
    }

    .chat-log {
        margin-bottom: 300px;
    }
}

/* ===================================
   QUICK ACTION PILLS
   =================================== */
.quick-actions-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.quick-action-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgb(255 255 255 / 60%);
    border: 1px solid var(--bz-border-glass);
    border-radius: var(--bz-radius-xl);
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: var(--bz-t-fast);
    backdrop-filter: var(--bz-blur);
    -webkit-backdrop-filter: var(--bz-blur);
    box-shadow: var(--bz-shadow-sm);
}

.quick-action-pill:hover {
    background: var(--bz-glass-hover);
    transform: translateY(-2px);
    box-shadow: var(--bz-shadow-md);
}

.quick-action-pill i {
    font-size: 14px;
}

/* Rapport - Yellow/Orange gradient icon */
.quick-action-pill[data-action="report"] i {
    background: linear-gradient(135deg, #ffb100 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Zoeken - Red gradient icon */
.quick-action-pill[data-action="search"] i {
    background: linear-gradient(135deg, #ff2e2e 0%, #c80c33 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video - Pink/Magenta gradient icon */
.quick-action-pill[data-action="video"] i {
    background: linear-gradient(135deg, #e23a85 0%, #b200af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Persona - Purple gradient icon */
.quick-action-pill[data-action="persona"] i {
    background: var(--bz-icon-purple-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Capabilities toggle - Floating button */
.capabilities-toggle-floating {
    /* flex-center, pill-shape, gradient-primary, shadow-purple-glow applied via HTML */
    position: relative;
    width: 50px;
    height: 50px;
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--bz-t);
}

.capabilities-toggle-floating i {
    font-size: 18px;
    color: white;
}

.capabilities-toggle-floating:hover {
    transform: scale(1.1);
    box-shadow: var(--bz-glow-hover);
}

/* Hide the top buttons container when panel is open */
.top-buttons-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===================================
   SLASH COMMAND MENU
   TODO: Re-enable for future implementation
   =================================== */
.slash-command-menu {
    display: none !important; /* TEMPORARILY DISABLED - remove this line to re-enable */
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: var(--bz-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.slash-command-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.slash-menu-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}

.slash-menu-items {
    max-height: 320px;
    overflow-y: auto;
}

.slash-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.slash-menu-item:hover,
.slash-menu-item.selected {
    background: #f3f4f6;
}

.slash-menu-item .slash-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bz-gradient);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.slash-menu-item .slash-content {
    flex: 1;
}

.slash-menu-item .slash-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.slash-menu-item .slash-desc {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* ===================================
   CAPABILITIES PANEL
   =================================== */
.capabilities-panel {
    position: fixed;
    top: 20px;
    right: -420px;
    width: 380px;
    height: calc(100% - 40px);
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    border-radius: var(--bz-radius-xl);
    overflow: hidden;
}

.capabilities-panel.open {
    right: 20px;
}

.capabilities-header {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--bz-border);
    background: var(--bz-gradient);
    border-radius: 20px 20px 0 0;
    margin: 10px 10px 0px 10px;
    border-radius: var(--bz-radius-xl);
}

.capabilities-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.capabilities-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.capabilities-header h3 i {
    color: white;
}

.capabilities-header-back {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--bz-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.capabilities-header-back:hover {
    background: rgba(255, 255, 255, 0.3);
}

.capabilities-header-back i {
    color: white;
    font-size: 14px;
}

.capabilities-header-intro {
    margin: 16px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-weight: 400;
    text-align: center;
}

.capabilities-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--bz-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
}

.capabilities-close i {
    color: white;
}

.capabilities-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.capabilities-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    animation: capSlideInLeft 0.3s ease forwards;
}

.capabilities-content.slide-out {
    animation: capSlideOutLeft 0.3s ease forwards;
}

.capabilities-section {
    margin-bottom: 24px;
}

.capabilities-section:last-child {
    margin-bottom: 0;
}

.capabilities-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.capabilities-section h4 i {
    font-size: 16px;
    background: var(--bz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Workflow section - Wand icon */
.capabilities-section:nth-child(1) h4 i {
    background: linear-gradient(135deg, #ffb100 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Databronnen section - Database icon */
.capabilities-section:nth-child(2) h4 i {
    background: linear-gradient(135deg, #ff2e2e 0%, #c80c33 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Agents section - Robot icon */
.capabilities-section:nth-child(3) h4 i {
    background: var(--bz-icon-purple-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.capability-item {
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border 0.2s ease;
    border: 1px solid transparent;
}

.capability-item:hover {
    background: #f3f4f6;
    transform: translateX(4px);
    background: linear-gradient(#fcfafa, #fcfafa) padding-box, var(--bz-gradient-full) border-box;
}

.capability-item .capability-name {
    display: block;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin-bottom: 4px;
}

.capability-item .capability-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

/* Plugin items - icon box layout */
.plugin-item {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    cursor: default;
}

.plugin-item:hover {
    background: #f9fafb;
    transform: none;
}

.plugin-icon {
    color: white;
}

.plugin-item:nth-child(5n+1) .plugin-icon-wrapper {
    background: var(--bz-icon-orange-grad);
    box-shadow: var(--bz-icon-orange-shadow);
}
.plugin-item:nth-child(5n+2) .plugin-icon-wrapper {
    background: var(--bz-icon-coral-grad);
    box-shadow: var(--bz-icon-coral-shadow);
}
.plugin-item:nth-child(5n+3) .plugin-icon-wrapper {
    background: var(--bz-icon-pink-grad);
    box-shadow: var(--bz-icon-pink-shadow);
}
.plugin-item:nth-child(5n+4) .plugin-icon-wrapper {
    background: var(--bz-icon-purple-grad);
    box-shadow: var(--bz-icon-purple-shadow);
}
.plugin-item:nth-child(5n+5) .plugin-icon-wrapper {
    background: var(--bz-icon-green-grad);
    box-shadow: var(--bz-icon-green-shadow);
}

.plugin-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    corner-shape: squircle;
    font-size: 18px;
}

.plugin-premium-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    background: linear-gradient(135deg, #FF8C00, #E55A3F);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--bz-radius-xl);
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(229, 90, 63, 0.5);
    z-index: 1;
}

.plugin-text {
    flex: 1;
}

.plugin-item .capability-name {
    margin-bottom: 2px;
}

.capability-empty {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    padding: 8px 0;
}

/* Datasource item with icon box layout */
.datasource-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.datasource-icon-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    corner-shape: squircle;
    font-size: 18px;
    transition: box-shadow 0.2s ease;
}

.datasource-item:nth-child(5n+1) .datasource-icon-wrapper {
    background: var(--bz-icon-orange-grad);
    box-shadow: var(--bz-icon-orange-shadow);
}
.datasource-item:nth-child(5n+2) .datasource-icon-wrapper {
    background: var(--bz-icon-coral-grad);
    box-shadow: var(--bz-icon-coral-shadow);
}
.datasource-item:nth-child(5n+3) .datasource-icon-wrapper {
    background: var(--bz-icon-pink-grad);
    box-shadow: var(--bz-icon-pink-shadow);
}
.datasource-item:nth-child(5n+4) .datasource-icon-wrapper {
    background: var(--bz-icon-purple-grad);
    box-shadow: var(--bz-icon-purple-shadow);
}
.datasource-item:nth-child(5n+5) .datasource-icon-wrapper {
    background: var(--bz-icon-green-grad);
    box-shadow: var(--bz-icon-green-shadow);
}

.datasource-icon {
    color: white;
}

.datasource-text {
    flex: 1;
}

.datasource-item .capability-name {
    margin-bottom: 2px;
}

.capability-arrow {
    color: #c9cdd3;
    font-size: 12px;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.datasource-item:not(.no-detail):hover .capability-arrow {
    color: var(--bz-purple);
    transform: translateX(2px);
}

.datasource-item.no-detail {
    cursor: default;
    opacity: 0.7;
}

.datasource-item.no-detail:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* Dataset Detail Screen */
.capabilities-detail {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    animation: capSlideInRight 0.3s ease forwards;
}

.capabilities-detail.slide-out {
    animation: capSlideOutRight 0.3s ease forwards;
}

@keyframes capSlideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

@keyframes capSlideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes capSlideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(30px); }
}

@keyframes capSlideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.detail-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.detail-section-header i {
    font-size: 14px;
    background: linear-gradient(135deg, #FF8C00 0%, #C2477E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-suggestion-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-pill-button {
    position: relative;
    overflow: hidden;
    background: var(--bz-glass);
    border: 1px solid rgba(200, 195, 220, 0.15);
    border-radius: var(--bz-radius-lg);
    padding: 12px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    backdrop-filter: var(--bz-blur);
    -webkit-backdrop-filter: var(--bz-blur);
    cursor: pointer;
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .4s cubic-bezier(.16, 1, .3, 1), border-color .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s cubic-bezier(.16, 1, .3, 1);
    font-size: 13.5px;
    font-weight: 500;
    color: #2a1f4e;
    text-align: left;
    line-height: 1.5;
}

.detail-pill-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 246, 255, 0.9));
    border-color: rgba(168, 130, 255, 0.25);
    box-shadow: 0 8px 32px rgba(120, 80, 200, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detail-pill-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 16px 0 0 16px;
    background: linear-gradient(180deg, #a882ff, #ff8c5a);
    opacity: 0;
    transition: opacity .4s cubic-bezier(.16, 1, .3, 1);
}

.detail-pill-button:hover::before {
    opacity: 1;
}

.detail-pill-button i {
    display: none;
}

.detail-section-divider {
    margin: 20px 0 0;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.detail-info-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.detail-info-list li {
    padding: 5px 0;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-info-list li::before {
    content: "\2022";
    font-weight: bold;
    font-size: 18px;
    line-height: 1;
}

.detail-info-list li:nth-child(1)::before { color: var(--bz-orange); }
.detail-info-list li:nth-child(2)::before { color: var(--bz-coral); }
.detail-info-list li:nth-child(3)::before { color: var(--bz-magenta); }
.detail-info-list li:nth-child(4)::before { color: var(--bz-purple); }

/* Agent Cards - Stacked Style */
.agent-cards-container {
    position: relative;
    height: 220px;
    cursor: pointer;
}

.agent-cards-container.expanded {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.agent-card {
    position: absolute;
    width: 200px;
    transition: transform 0.3s ease, z-index 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.agent-card:nth-child(1) {
    z-index: 3;
    left: 0;
    top: 0;
}

.agent-card:nth-child(2) {
    z-index: 2;
    left: 40px;
    top: 15px;
    transform: rotate(5deg);
}

.agent-card:nth-child(3) {
    z-index: 1;
    left: 80px;
    top: 30px;
    transform: rotate(10deg);
}

.agent-card:hover {
    z-index: 10;
}

.agent-card:hover .agent-card-img {
    transform: scale(1.05);
}

.agent-cards-container.expanded .agent-card {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100px;
}

.agent-cards-container.expanded .agent-card:hover .agent-card-img {
    transform: translateY(-4px);
}

.agent-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--bz-radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.agent-cards-container.expanded .agent-card-img {
    height: 100px;
    border-radius: var(--bz-radius-md);
}

.agent-card-info {
    display: none;
    padding: 8px 4px;
    text-align: center;
}

.agent-cards-container.expanded .agent-card-info {
    display: block;
}

.agent-card-name {
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #111827;
}

.agent-card-desc {
    display: block;
    font-size: 10px;
    color: #6b7280;
    margin-top: 2px;
}

.capabilities-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--bz-border);
    background: #f9fafb;
}

.capabilities-footer p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.capabilities-footer i {
    color: #f59e0b;
}

.capabilities-footer code {
    background: var(--bz-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

/* Capabilities overlay - disabled */
.capabilities-overlay {
    display: none;
}

/* Capabilities panel mobile */
@media (max-width: 576px) {
    .capabilities-panel {
        width: calc(100% - 20px);
        right: -110%;
        top: 10px;
        height: calc(100% - 20px);
    }
    .capabilities-panel.open {
        right: 10px;
    }
    .capabilities-header {
        padding: 16px 18px;
        margin: 8px;
    }
    .capabilities-header h3 {
        font-size: 16px;
    }
    .capabilities-content {
        padding: 14px;
    }
    .capability-item {
        padding: 10px 12px;
    }
}

/* ===================================
   TYPING INDICATOR (3 dots)
   =================================== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator .dot:nth-child(1) {
    background: var(--bz-magenta);
    animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
    background: #A324BE;
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    background: var(--bz-purple);
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.typing-status-text {
    margin-left: 10px;
    font-size: 13px;
    color: #999;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===================================
   SMART TIP MESSAGE
   =================================== */
.smart-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--bz-radius-md);
    font-size: 13px;
    color: var(--bz-purple);
    margin-bottom: 12px;
    animation: fadeInUp 0.5s ease;
}

.smart-tip i {
    color: #f59e0b;
}

.smart-tip code {
    background: rgba(102, 126, 234, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* ============================================
   CREDIT BALANCE BOX (Top of screen)
   ============================================ */

.credit-balance-box {
    /* glass-effect, hover-lift, pill-shape applied via HTML */
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
}

.credit-balance-box:hover {
    color: #374151;
    text-decoration: none;
}

.credit-balance-box i {
    font-size: 14px;
    color: #FFD700;
}

.credit-balance-box.credit-used {
    animation: creditPulse 0.5s ease;
}

.credit-balance-box.credit-low {
    border-color: rgba(255, 152, 0, 0.5);
    color: #ff9800;
}

.credit-balance-box.credit-low i {
    color: #ff9800;
}

@keyframes creditPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background: rgba(255, 215, 0, 0.2); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   QUICK ACTIONS HIDDEN STATE
   =================================== */
.quick-actions-bar.hidden {
    display: none !important;
}

/* ===================================
   PULSATING CAPABILITIES BUTTON
   =================================== */
.capabilities-toggle-floating.pulse-hint::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: var(--bz-gradient);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.3;
        transform: scale(1);
    }
}

.capabilities-tooltip {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #374151;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.capabilities-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: white;
}

.capabilities-toggle-floating:hover .capabilities-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Auto-show tooltip on first visit */
.capabilities-toggle-floating.pulse-hint.first-visit .capabilities-tooltip {
    opacity: 1;
    visibility: visible;
    animation: tooltipBounce 0.5s ease-out;
}

@keyframes tooltipBounce {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* ===================================
   INPUT FEATURE HINT
   =================================== */
.input-feature-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
    padding: 8px 0 0 0;
    transition: opacity 0.3s ease;
}

.input-feature-hint code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #6b7280;
}

.input-feature-hint i.fa-sparkles {
    background: var(--bz-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-feature-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   RESPONSIVE: Hide agent images on smaller screens
   =================================== */
@media (max-width: 1200px) {
    .chat-agent {
        display: none;
    }

    .message-AI {
        gap: 0;
    }

    .chat-log {
        padding-left: 75px;
    }
}

/* Hide agent when chat column is narrow (via resizing) */
.chat-column.narrow .chat-agent {
    display: none;
}

.chat-column.narrow .message-AI {
    gap: 0;
}

.chat-column.narrow .chat-log {
    padding-left: 75px;
}

/* ===================================
   CHAT MOBILE HAMBURGER MENU
   =================================== */
/* Chat-specific mobile overrides */
@media (max-width: 768px) {
    .chat-log { padding-left: 20px !important; }
    .chatbox-wrapper { padding-left: 20px !important; }
    .chat-textarea { font-size: 16px; }
}