#input-area-wrapper {
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(to bottom, transparent, var(--bg-color) 20%);
}

#input-container {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 2.5s forwards;
}

#input-area {
  width: 100%;
  max-width: 800px;
  position: relative;
  background-color: var(--input-bg);
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s;
}

#input-area:focus-within {
  border-color: var(--muted-text-color);
}

#message-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem;
  resize: none;
  max-height: 200px;
  min-height: 24px;
  outline: none;
  overflow-y: auto;
}

#send-button {
  background-color: var(--primary-color);
  color: black;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  transition: opacity 0.2s;
}

#send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#send-button svg {
  width: 16px;
  height: 16px;
}

#image-preview-area {
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

#image-preview-area.has-images {
  display: flex !important;
}

.image-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-item .remove-image {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}

.input-main-column {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.input-tools {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

.tool-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--muted-text-color);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tool-btn:hover {
  background-color: var(--hover-color);
  color: var(--text-color);
}

.tool-btn.active {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: #3b82f6;
}

.thinking-indicator {
  color: var(--text-color);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thinking-token-count {
  color: var(--muted-text-color);
  margin-left: 0.25rem;
}

.thinking-loader {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 10px;
  border: 2px solid var(--muted-text-color);
  border-top: 2px solid transparent;
  transform: translate(4px, 0px) rotate(0deg);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(4px, 0px) rotate(360deg);
  }
}

.thinking-dot {
  width: 6px;
  height: 6px;
  background-color: var(--muted-text-color);
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}
