Newer
Older
cortex-hub / frontend / src / components / ChatWindow.css
/* Modern AI Tool Styles */
:root {
    --user-bubble-bg: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    --assistant-bubble-bg: rgba(255, 255, 255, 0.05);
    --reasoning-bg: rgba(99, 102, 241, 0.03);
    --border-subtle: rgba(255, 255, 255, 0.1);
}

.dark {
    --assistant-bubble-bg: rgba(31, 41, 55, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.08);
}

.assistant-message {
    background: var(--assistant-bubble-bg) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle) !important;
    border-radius: 1.25rem !important;
    font-family: 'Inter', sans-serif;
    animation: slideInUp 0.3s ease-out;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.user-message-container {
    background: var(--user-bubble-bg) !important;
    border-radius: 1.25rem !important;
    font-family: 'Inter', sans-serif;
    animation: slideInUp 0.3s ease-out;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.thought-panel {
    background: var(--reasoning-bg);
    border-left: 3px solid #6366f1;
    border-radius: 0 0.75rem 0.75rem 0;
    margin: 0.5rem 0;
}

.status-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Scoped to .assistant-message */
.assistant-message code {
    color: #818cf8;
    font-size: 90%;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
}

.assistant-message pre {
    background-color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.75rem;
    max-width: 100%;
    overflow-x: auto;
}

.streaming-dots::after {
    content: '';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

.assistant-message strong {
    font-weight: 700;
    color: #6366f1;
}

/* Sub-agent thought blocks */
.thought-panel blockquote {
    border-left: 2px solid rgba(99, 102, 241, 0.4) !important;
    background: rgba(99, 102, 241, 0.05) !important;
    margin: 0.75rem 0 0.75rem 1rem !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.7rem !important;
    line-height: 1.4 !important;
    color: #4f46e5 !important;
}

.dark .thought-panel blockquote {
    color: #818cf8 !important;
    background: rgba(129, 140, 248, 0.05) !important;
}

.thought-panel blockquote p {
    margin: 0 !important;
}

.thought-panel blockquote strong {
    color: #4338ca;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.65rem;
}

.dark .thought-panel blockquote strong {
    color: #a5b4fc;
}