﻿
/* ============================================= */
/* Collapsible Thinking Process and Tool Calls  */
/* (Updated to match reference design)           */
/* ============================================= */

/* Thinking Process Card */
.thinking-card {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #2A2A2A;
}

.thinking-card:hover {
    background: #222;
    border-color: #333;
}

.thinking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.thinking-status {
    flex: 1;
    font-size: 13px;
    color: #B8B8B8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
}

.thinking-icon {
    font-size: 14px;
}

.thinking-card.completed .thinking-status {
    color: #4CAF50;
}

.thinking-toggle {
    font-size:10px;
    color: #666;
    transition: transform 0.2s ease;
    user-select: none;
}

.thinking-toggle.expanded {
    transform: rotate(180deg);
}

.thinking-progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.thinking-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4285F4, #34A853);
    transition: width 0.3s ease;
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.thinking-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.thinking-content.expanded {
    max-height: 600px;
    overflow-y: auto;
    margin-top: 14px;
    opacity: 1;
    padding-top: 12px;
    border-top: 1px solid #2A2A2A;
}

.thinking-text {
    font-size: 12px;
    line-height: 1.8;
    color: #999;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Tool Calls Card */
.tool-calls-card {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 12px 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #2A2A2A;
}

.tool-calls-card:hover {
    background: #222;
    border-color: #333;
}

.tool-calls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tool-calls-summary {
    font-size: 13px;
    color: #B8B8B8;
    font-weight: 400;
}

.tool-calls-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.tool-calls-list.expanded {
    max-height: 500px;
    overflow-y: auto;
    margin-top: 14px;
    opacity: 1;
    padding-top: 12px;
    border-top: 1px solid #2A2A2A;
}

.tool-call-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 13px;
    color: #999;
}

.tool-call-icon {
    width: 18px;
    height: 18px;
    font-size: 14px;
}

.tool-call-status {
    color: #4CAF50;
    margin-right: 4px;
    font-size: 12px;
}

.tool-call-name {
    flex: 1;
}

/* Scrollbar styling for dark theme */
.thinking-content::-webkit-scrollbar,
.tool-calls-list::-webkit-scrollbar {
    width: 6px;
}

.thinking-content::-webkit-scrollbar-track,
.tool-calls-list::-webkit-scrollbar-track {
    background: transparent;
}

.thinking-content::-webkit-scrollbar-thumb,
.tool-calls-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.thinking-content::-webkit-scrollbar-thumb:hover,
.tool-calls-list::-webkit-scrollbar-thumb:hover {
    background: #444;
}

