.message-input-container {
    padding: 8px 12px calc(8px + var(--safe-bottom));
    position: relative;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 4px 6px 4px 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}

.input-wrapper:focus-within {
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 0 1px rgba(59,130,246,0.15), inset 0 1px 0 rgba(255,255,255,0.03);
}

.message-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: none;
    padding: 8px 4px;
    min-height: 36px;
    max-height: 100px;
    line-height: 1.4;
    align-self: center;
}

.message-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.attach-btn {
    color: var(--text-muted);
    flex-shrink: 0;
}

.attach-btn:hover {
    color: var(--text-secondary);
}

.emoji-btn {
    color: var(--text-muted);
    flex-shrink: 0;
}

.emoji-btn:hover {
    color: var(--text-secondary);
}

.send-voice-group {
    flex-shrink: 0;
    position: relative;
    width: 34px;
    height: 34px;
}

.send-btn {
    background: var(--accent);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(59,130,246,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.15s ease;
}

.send-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px rgba(59,130,246,0.6), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.send-btn:active {
    transform: scale(0.92);
}

.send-btn svg {
    width: 18px;
    height: 18px;
}

.voice-btn {
    display: none;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: all 0.15s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.voice-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transform: scale(1.05);
}

.voice-btn:active {
    transform: scale(0.92);
}

.voice-btn svg {
    width: 18px;
    height: 18px;
}

.message-input-container.voice-mode .voice-btn {
    display: flex;
}

.message-input-container:not(.voice-mode) .voice-btn { display: none; }
.message-input-container.voice-mode .send-btn { display: none; }
.message-input-container:not(.voice-mode) .send-btn { display: flex; }