/* ============================================
   简约风格 - 重置
   ============================================ */

/* 自定义下拉选择器 */
.custom-select {
    position: relative;
    min-width: 200px;
}

.custom-select-display {
    padding: 10px 40px 10px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    position: relative;
    transition: background 0.2s;
}

.custom-select-display::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
}

.custom-select-display:hover {
    background: #f5f5f5;
}

.custom-select.open .custom-select-display {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 20px 20px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-select.open .custom-select-dropdown {
    display: block;
}

.custom-select-option {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.custom-select-option:hover {
    background: #f5f5f5;
}

.custom-select-option.selected {
    background: #e8e8e8;
    font-weight: 600;
}

.custom-select-option:last-child {
    border-radius: 0 0 20px 20px;
}

/* 简化按钮样式 */
.send-btn, 
.login-btn,
.sidebar-btn,
.db-btn,
.add-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.send-btn:hover,
.login-btn:hover,
.sidebar-btn:hover,
.db-btn:hover {
    background: #666;
}

.add-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.add-btn:hover {
    background: #e8e8e8;
}

/* 语音按钮 */
.voice-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    background-image: url('/assets/pic/voice.ico');
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-btn:hover {
    background-color: #f5f5f5;
}

.voice-btn.recording {
    background-color: #ff4444;
    border-color: #ff4444;
}

/* 移动端也显示语音按钮 */
@media (max-width: 768px) {
    .voice-btn {
        display: flex !important;
    }
}

/* 移除所有花哨动画 */
* {
    animation: none !important;
}

/* 简化输入框 */
#messageInput {
    border: 1px solid #ddd;
    background: white;
}

#messageInput:focus {
    border-color: #333;
    box-shadow: none;
}

/* 简化消息样式 */
.message.user {
    background: #333;
    color: white;
}

.message.assistant {
    background: #f5f5f5;
    color: #333;
}

/* 搜索框 */
.chat-search {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.chat-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 13px;
    outline: none;
}

.chat-search input:focus {
    border-color: #333;
}
