/* Tool Call Component Styles */
.tool-call {
    background: transparent;
    border: none;
    border-left: 2px solid rgba(108, 92, 231, 0.3);
    color: var(--text);
    max-width: 84%;
    font-size: 13px;
    border-bottom-left-radius: 0;
    padding: 0 0 0 12px;
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.3s var(--ease-out);
    border-radius: 0;
    margin-bottom: 12px;
}

.tool-call:hover {
    border-color: rgba(108, 92, 231, 0.5);
}

.tool-call__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    background: transparent;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s var(--ease-out);
}

.tool-call__header:hover {
    background: transparent;
}

.tool-call__header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.tool-call__icon {
    font-size: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: transparent;
    border-radius: 0;
    transition: transform 0.3s var(--ease-bounce);
}

.tool-call__header:hover .tool-call__icon {
    transform: scale(1.1) rotate(-8deg);
}

.tool-call__name {
    font-weight: 600;
    color: var(--primary-light);
    flex-shrink: 0;
    font-size: 13px;
}

.tool-call__summary {
    color: var(--text-dim);
    font-size: 12px;
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-call__toggle {
    font-size: 12px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: 10px;
    transition: transform 0.3s var(--ease-out);
}

.tool-call__toggle--open {
    transform: rotate(180deg);
}

.tool-call__content {
    display: none;
    padding: 8px 0;
    border-top: none;
    background: transparent;
}

.tool-call__content--show {
    display: block;
    animation: resultExpand 0.3s var(--ease-out);
}

.tool-call__section {
    margin-bottom: 12px;
}

.tool-call__section:last-child {
    margin-bottom: 0;
}

.tool-call__section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.tool-call__section-content {
    word-wrap: break-word;
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    font-size: 12px;
    color: var(--text-dim);
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-line;
    background: rgba(108, 92, 231, 0.05);
    padding: 8px;
    border-radius: 4px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.tool-call__result {
    padding: 8px 0;
    border-top: none;
    background: transparent;
    white-space: pre-line;
    word-wrap: break-word;
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    font-size: 12px;
    color: var(--text-dim);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.tool-call__result--show {
    display: block;
    animation: resultExpand 0.3s var(--ease-out);
}
