/* ==========================================================================
   输入区域
   ========================================================================== */
/**
 * 微信风格输入区域
 * @selector #input - 输入区域容器
 * @selector .input-container - 输入内容容器
 * @selector #input_tool - 工具栏
 * @selector .tool-btn - 工具按钮
 * @selector #input_text - 文本输入容器
 * @selector #text - 文本输入框
 * @selector .send-container - 发送按钮容器
 * @selector .send-hint - 发送提示
 * @selector #sentBtn - 发送按钮
 */

#input {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
    flex-shrink: 0;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 工具栏 */
#input_tool {
    display: flex;
    gap: 4px;
    align-items: center;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-btn:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
}

.tool-btn:active {
    transform: scale(0.95);
}

.tool-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#imageBtn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#imageBtn:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
}

/* 输入框 */
#input_text {
    flex: 1;
}

#text {
    width: 100%;
    min-height: 60px;
    max-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    resize: none;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    box-sizing: border-box;
    background: var(--bg-white);
}

#text:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

#text::placeholder {
    color: var(--text-light);
}

/* 发送按钮区域 */
.send-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.send-hint {
    font-size: 12px;
    color: var(--text-secondary);
}

#sentBtn {
    height: 34px;
    padding: 0 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(7, 193, 96, 0.2);
}

#sentBtn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(7, 193, 96, 0.3);
    transform: translateY(-1px);
}

#sentBtn:active {
    transform: translateY(0);
}

#sentBtn:disabled {
    background: var(--bg-hover);
    color: var(--text-light);
    cursor: not-allowed;
    box-shadow: none;
}