/* 历史记录面板动画 */
#history-panel {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    opacity: 1;
}

#history-panel.hidden {
    transform: translateY(20px);
    opacity: 0;
}

/* 历史记录项目悬停效果 */
.history-item {
    transition: background-color 0.2s ease;
}

.history-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

/* 历史记录项目按钮 */
.history-actions button {
    transition: all 0.2s ease;
}

.history-actions button:hover {
    transform: translateY(-1px);
}

/* 过滤器按钮 */
.filter-button {
    transition: all 0.2s ease;
}

.filter-button.active {
    background-color: #3b82f6;
    color: #ffffff;
}

.filter-button:not(.active) {
    background-color: #f3f4f6;
    color: #4b5563;
}

.filter-button:hover:not(.active) {
    background-color: #e5e7eb;
    transform: translateY(-1px);
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.history-loading {
    animation: pulse 1.5s infinite ease-in-out;
}

/* 无历史记录状态 */
.no-history {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.no-history:hover {
    opacity: 1;
}

/* 会话项目标记 */
.session-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 10px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    margin-left: 8px;
}

/* 历史记录日期标签 */
.history-date {
    font-size: 10px;
    color: #9ca3af;
    margin-left: auto;
}

/* 推理模型开关样式 - 底部版本 */
#reasoning-toggle + div {
    position: relative;
    width: 32px !important;
    height: 16px !important;
    background-color: #e5e7eb;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

#reasoning-toggle + div::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

#reasoning-toggle:checked + div {
    background-color: #3b82f6;
}

#reasoning-toggle:checked + div::after {
    transform: translateX(16px);
}

/* 活跃状态的开关容器 */
.active-toggle {
    color: #3b82f6 !important;
}

.active-toggle span {
    color: #3b82f6 !important;
}

/* 输入框下方提示文本 */
.model-status {
    font-size: 10px;
    color: #9ca3af;
    text-align: center;
    padding: 2px 0;
    transition: all 0.3s ease;
}

/* 问题面板动画 - 从气泡上方向下弹出 */
#questions-panel {
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    max-height: 40vh;
    overflow: hidden;
    padding-top: 10px;
    border-radius: 1rem;
    z-index: 40;
}

#questions-panel.questions-panel-visible {
    transform: translateY(0);
    opacity: 1;
}

/* 防止问题面板遮挡分类按钮 */
.category-buttons-container {
    position: relative;
    z-index: 50 !important;
    pointer-events: auto !important;
}

/* 问题项目样式优化 */
.question-item {
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
    margin: 4px 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.question-item:hover {
    border-left-color: #3b82f6;
    background-color: #f1f5f9;
    transform: translateX(2px);
}

/* 关闭按钮样式 */
#close-questions-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 移除旧的transform定义 */
.-translate-y-full {
    /* transform: translateY(-100%) !important; */
} 