/* Modern, Clean Input Area */
.input-section {
  padding: 1rem 1.25rem 1.5rem;
  position: relative;
  z-index: 100;
}

.input-frame {
  max-width: 48rem;
  margin: 0 auto;
  position: relative;
}


.input-area {
  position: relative;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
}

.input-area:focus-within {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-hsl), 0.25), var(--shadow-lg);
}


.input-main {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0.5rem 0.25rem 0.5rem 0.25rem;
}

.action-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  color: rgb(160, 160, 160);
  background: transparent;
  border: 1px solid rgb(64, 64, 64);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn:hover {
  color: rgb(220, 220, 220);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgb(82, 82, 82);
}


.input-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
}


#user-input {
  width: 100%;
  min-height: 2.8rem;
  max-height: 12rem;
  padding: 1rem 1.2rem;
  background: var(--bg-primary);
  border: none;
  color: var(--text-primary);
  font-size: 1.08rem;
  line-height: 1.6;
  border-radius: 1.1rem;
  resize: none;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.18s, color 0.18s;
}


#user-input::placeholder { color: var(--text-secondary); opacity: 1; }


.input-actions {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.model-select {
  height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.model-select:hover { color: var(--text-primary); background: var(--bg-tertiary); border-color: var(--border-color-hover); }

.model-select i {
  font-size: 0.75rem;
  opacity: 0.7;
}


.send-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 1.2rem;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 1;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}

.send-btn:disabled {
  opacity: 0.5;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  cursor: not-allowed;
  box-shadow: none;
}

.send-btn:hover:not(:disabled), .send-btn:focus-visible:not(:disabled) { background: var(--accent-primary-hover); box-shadow: var(--shadow-lg); transform: scale(1.06); }
