﻿* {
    color: #183151;
    font-family: "inter-variable", sans-serif;
    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;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Flex center - centers content both horizontally and vertically */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glass effect - frosted glass appearance */
.glass-effect {
    background: rgb(255 255 255 / 50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Primary gradient background (purple-pink) */
.gradient-primary {
    background: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    color: white;
}

/* Purple glow shadow */
.shadow-purple-glow {
    box-shadow: 0 4px 15px rgba(132, 0, 255, 0.4);
}

/* Gradient text effect */
.gradient-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pill/capsule shape */
.pill-shape {
    border-radius: 100px;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CSS Custom Properties for repeated values */
:root {
    --gradient-primary: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    --gradient-intro: linear-gradient(90deg, #FF8C00 0%, #C2477E 47.12%, #8400FF 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-purple: 0 4px 15px rgba(132, 0, 255, 0.4);
    --shadow-purple-hover: 0 6px 20px rgba(132, 0, 255, 0.5);
    --glass-bg: rgb(255 255 255 / 50%);
    --glass-bg-hover: rgb(255 255 255 / 90%);
    --glass-border: rgba(255, 255, 255, 0.8);
    --blur-standard: blur(10px);
    --blur-strong: blur(20px);
    --radius-pill: 100px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-fast: transform 0.2s ease, box-shadow 0.2s ease;
    --transition-standard: transform 0.3s ease, box-shadow 0.3s ease;
}

.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: linear-gradient(90deg, #FF8C00 0%, #C2477E 47.12%, #8400FF 100%);
    -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: 0.75rem;
    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: 100px;
        background: rgb(255 255 255 / 50%);
        /* background: rgb(255 255 255 / 100%); */
        border: 1px solid #ddd;
        width: fit-content;
        transition: background .2s ease-out;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        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(--glass-bg);
    border: 1px solid #ddd;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: var(--blur-standard);
}


.chat-textarea-container {
    position: relative;
}

.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: 0.75rem;
    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: 100px;
    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(--transition-standard);
}

.send-button.chat-busy {
    opacity: 0.5;
    cursor: not-allowed;
}

    .send-button:hover {
        transform: scale(1.1);
        box-shadow: var(--shadow-purple-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: 16px;
    }



.message-user {
    float: right;
    clear: both;
}

    .message-user .message-text {
        background-color: #d1e7dd;
        padding: 0.75rem 1rem;
        border: 1px solid #F9F9F9;
        border-radius: 16px;
        height: fit-content;
        background-color: rgb(255 255 255 / 50%);
    }

.message-AI {
    float: left;
    clear: both;
    width: 100%;
}

.message-action {
    background-color: rgb(255 255 255 / 50%);
    padding: 10px 20px;
    /* text-align: center; */
    color: black;
    border-radius: 100px;
    float: left;
    clear: both;
    width: 100%;
    margin-bottom: 10px;
    width: fit-content;
    margin-left: 90px;
    border-radius: 0.75rem;
    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: 100px;
        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;
    }


.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;
}



.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: 0 2px 8px rgba(0, 0, 0, 0.05);
    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: 16px;
    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 {
    background: rgb(255 255 255 / 50%);
    border: 1px solid #ddd;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    cursor: pointer;

}

    .box-background:hover {
        /* padding: 20px; */
        /* border-radius: 12px; */
        background: linear-gradient(#fcfafa, #fcfafa) padding-box, linear-gradient(45deg, #ff6b6b, #5f6cff) border-box;
        background: linear-gradient(#fcfafa, #fcfafa) padding-box, linear-gradient(90deg, #FF8C00 0%, #C2477E 47.12%, #8400FF 100%) border-box;
        border: 2px solid transparent;
    }

.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;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggestion-start-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 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 #e5e7eb;
    border-radius: 12px;
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    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: rgb(255 255 255 / 50%);
    backdrop-filter: blur(20px);
    color: #183151;
    border: 2px solid white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.artifact-open-btn:hover {
    background: rgb(255 255 255 / 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.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: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@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: linear-gradient(135deg, #C2477E, #8400FF);
    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: #ffffff;
    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;
}

.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: linear-gradient(135deg, #C2477E, #8400FF);
    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: #183151;
}

.artifact-panel-actions {
    display: flex;
    gap: 6px;
}

.artifact-action-btn {
    background: rgb(255 255 255 / 50%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #183151;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    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: 0 28px 28px;
    overflow-y: auto;
    background: transparent;
    color: #374151;
    font-size: 15px;
    line-height: 1.75;
}

/* 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: "inter-variable", sans-serif;
    color: #183151;
    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: linear-gradient(135deg, #C2477E, #8400FF);
    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: #183151;
}

.artifact-panel-content em,
.artifact-panel-content i {
    font-style: italic;
}

.artifact-panel-content a {
    color: #8400FF;
    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 #e5e7eb;
}

.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: #183151;
    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(--glass-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: var(--blur-standard);
    box-shadow: var(--shadow-sm);
}

.quick-action-pill:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--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: linear-gradient(135deg, #8400FF 0%, #6e00ff 100%);
    -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(--transition-standard);
}

.capabilities-toggle-floating i {
    font-size: 18px;
    color: white;
}

.capabilities-toggle-floating:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-purple-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: 16px;
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    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: 20px;
    overflow: hidden;
}

.capabilities-panel.open {
    right: 20px;
}

.capabilities-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    border-radius: 20px 20px 0 0;
    margin: 10px;
    border-radius: 20px;

}

.capabilities-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.capabilities-header h3 i {
    color: white;
}

.capabilities-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    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;
}

.capabilities-section {
    margin-bottom: 24px;
}

.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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -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: linear-gradient(135deg, #8400FF 0%, #6e00ff 100%);
    -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;
    /* border-color: #667eea; */
    transform: translateX(4px);
    background: linear-gradient(#fcfafa, #fcfafa) padding-box, linear-gradient(90deg, #FF8C00 0%, #C2477E 47.12%, #8400FF 100%) 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;
}

.capability-empty {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    padding: 8px 0;
}

/* Datasource item with detail arrow */
.datasource-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
}

.datasource-item .capability-name {
    grid-column: 1;
    grid-row: 1;
}

.datasource-item .capability-desc {
    grid-column: 1;
    grid-row: 2;
}

.datasource-item .capability-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
}

.datasource-item.no-detail {
    cursor: default;
    opacity: 0.7;
}

.datasource-item.no-detail:hover {
    background: transparent;
    transform: none;
}

.capability-arrow {
    margin-left: auto;
    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: #8400FF;
    transform: translateX(2px);
}

/* Dataset Detail Screen */
.capabilities-detail {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.capabilities-detail-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    margin-bottom: 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

.capabilities-detail-back:hover {
    background: #e5e7eb;
    color: #111827;
}

.capabilities-detail-back i {
    font-size: 12px;
}

.detail-hero {
    background: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
}

.detail-hero h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-hero h2 i {
    font-size: 22px;
}

.detail-hero p {
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.6;
    margin: 0;
    color: white;
}

.detail-hero h2 {
    color: white;
}

.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 {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.detail-pill-button:hover {
    background: #f1f3f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #C2477E;
}

.detail-pill-button i {
    font-size: 14px;
    flex-shrink: 0;
}

.detail-pill-button:nth-child(1) i { color: #FF8C00; }
.detail-pill-button:nth-child(2) i { color: #C2477E; }
.detail-pill-button:nth-child(3) i { color: #8400FF; }
.detail-pill-button:nth-child(4) i { color: #E55A3F; }
.detail-pill-button:nth-child(5) i { color: #22c55e; }

.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: 8px 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: #FF8C00; }
.detail-info-list li:nth-child(2)::before { color: #C2477E; }
.detail-info-list li:nth-child(3)::before { color: #8400FF; }
.detail-info-list li:nth-child(4)::before { color: #E55A3F; }
.detail-info-list li:nth-child(5)::before { color: #22c55e; }

/* 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: 16px;
    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: 12px;
}

.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 #e5e7eb;
    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: #e5e7eb;
    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: #C2477E;
    animation-delay: 0s;
}

.typing-indicator .dot:nth-child(2) {
    background: #A324BE;
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    background: #8400FF;
    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: 12px;
    font-size: 13px;
    color: #667eea;
    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: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    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: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    -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-mobile-hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #183151;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}
.chat-mobile-hamburger:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }

.chat-mobile-menu {
    display: none;
    position: fixed;
    top: 58px;
    left: 10px;
    right: 10px;
    z-index: 10001;
    background: rgba(9, 31, 63, 0.85);
    backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    gap: 4px;
}
.chat-mobile-menu.open { display: flex; animation: chat-mob-in .25s ease forwards; }
@keyframes chat-mob-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.chat-mobile-menu-item {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    width: 100%;
}
.chat-mobile-menu-item:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.chat-mobile-menu-item i { width: 18px; text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 14px; }
.chat-mobile-menu-item:hover i { color: #fff; }

.chat-mobile-menu-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 4px 0; }

.chat-mobile-menu-cta {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    box-shadow: 0 4px 15px rgba(132, 0, 255, 0.3);
    transition: all 0.2s ease;
}
.chat-mobile-menu-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(132, 0, 255, 0.4); color: #fff; }
.chat-mobile-menu-cta i { color: #fff !important; width: 18px; text-align: center; font-size: 14px; }

@media (max-width: 768px) {
    .menu-wrapper { display: none; }
    .chat-mobile-hamburger { display: flex; }
    .chat-log { padding-left: 20px !important; }
    .chatbox-wrapper { padding-left: 20px !important; }
}