::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.markdown-body pre {
    background-color: #1f2937;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.markdown-body code {
    font-family: monospace;
    background-color: #374151;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.markdown-body p {
    margin-bottom: 0.75rem;
}

.markdown-body p:last-child {
    margin-bottom: 0;
}

.markdown-body ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.markdown-body ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

select option {
    background-color: #1f2937;
    color: #f3f4f6;
}

select optgroup {
    background-color: #111827;
    color: #9ca3af;
    font-weight: 600;
    font-style: normal;
}

.chat-item-actions {
    display: none;
}

.chat-item:hover .chat-item-actions {
    display: flex;
}

.model-group {
    border: 1px solid #1f2937;
    border-radius: 0.375rem;
    background: #0b1220;
    padding: 0.375rem;
}

.model-group-summary {
    cursor: pointer;
    user-select: none;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    list-style: none;
}

.model-group-summary::-webkit-details-marker {
    display: none;
}

.model-group-summary::before {
    content: "›";
    display: inline-block;
    margin-right: 0.35rem;
    transition: transform 0.15s ease;
}

.model-group[open] .model-group-summary::before {
    transform: rotate(90deg);
}

.model-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.375rem;
    color: #d1d5db;
    background: transparent;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.model-option:hover {
    background: #1f2937;
    color: #ffffff;
}

.model-option.selected {
    background: #1d4ed8;
    color: #ffffff;
}

.model-option.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.model-option-name {
    max-width: 100%;
    font-size: 0.8125rem;
    line-height: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-option-meta {
    max-width: 100%;
    color: #9ca3af;
    font-size: 0.6875rem;
    line-height: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-option.selected .model-option-meta {
    color: #bfdbfe;
}

.model-setting-label {
    display: block;
    color: #9ca3af;
    font-size: 0.6875rem;
    margin-bottom: 0.25rem;
}

.model-setting-input {
    width: 100%;
    background: #030712;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    color: #e5e7eb;
    font-size: 0.8125rem;
    padding: 0.45rem 0.55rem;
    outline: none;
}

.model-setting-input:focus {
    border-color: #3b82f6;
}
