InputArea.css•2.58 kB
.input-area {
padding: 1rem;
background: linear-gradient(180deg, transparent 0%, var(--f1-dark-gray) 50%);
border-top: 1px solid var(--border-color);
backdrop-filter: blur(10px);
}
.input-form {
max-width: 1200px;
margin: 0 auto;
}
.input-container {
display: flex;
gap: 0.75rem;
align-items: flex-end;
background: var(--f1-gray);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 0.75rem;
transition: all 0.2s ease;
}
.input-container:focus-within {
border-color: var(--f1-blue);
box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.message-input {
flex: 1;
background: transparent;
border: none;
outline: none;
color: var(--text-primary);
font-size: 1rem;
line-height: 1.5;
resize: none;
min-height: 24px;
max-height: 120px;
font-family: inherit;
overflow-y: auto;
}
.message-input::placeholder {
color: var(--text-muted);
}
.message-input:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.send-button {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border: none;
border-radius: 8px;
background: linear-gradient(135deg, var(--f1-red) 0%, var(--f1-dark-red) 100%);
color: var(--f1-white);
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
}
.send-button:hover:not(:disabled) {
background: linear-gradient(135deg, var(--f1-dark-red) 0%, #8b0300 100%);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(225, 6, 0, 0.3);
}
.send-button:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 2px 6px rgba(225, 6, 0, 0.2);
}
.send-button:disabled {
opacity: 0.5;
cursor: not-allowed;
background: var(--f1-light-gray);
}
.input-hint {
margin-top: 0.5rem;
text-align: center;
font-size: 0.75rem;
color: var(--text-muted);
opacity: 0.8;
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
/* Scrollbar for textarea */
.message-input::-webkit-scrollbar {
width: 4px;
}
.message-input::-webkit-scrollbar-track {
background: transparent;
}
.message-input::-webkit-scrollbar-thumb {
background: var(--f1-light-gray);
border-radius: 2px;
}
.message-input::-webkit-scrollbar-thumb:hover {
background: var(--f1-silver);
}
/* Responsive design */
@media (max-width: 768px) {
.input-area {
padding: 0.75rem;
}
.input-container {
padding: 0.5rem;
gap: 0.5rem;
}
.message-input {
font-size: 0.9rem;
}
.send-button {
width: 36px;
height: 36px;
}
.input-hint {
font-size: 0.7rem;
margin-top: 0.25rem;
}
}