﻿/* Chat Input Styles - ALWAYS VISIBLE AT BOTTOM */

.chat-input-container {
  padding: 12px;
  background: #1e293b;
  border-top: 1px solid var(--border);
  flex-shrink: 0 !important;
}

.chat-templates-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.chat-templates-bar::-webkit-scrollbar {
  height: 4px;
}

.chat-templates-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.template-chip {
  padding: 6px 12px;
  background: #0b1224;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.template-chip:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.1);
}

.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-attach-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.chat-attach-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* Textarea del chat - tamaño más compacto */
#chatInput {
  flex: 1;
  padding: 12px 16px;
  background: #0b1224;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
  resize: vertical;
  min-height: 44px;
  max-height: 150px;
  overflow-y: auto;
  box-sizing: border-box;
}

#chatInput:focus {
  outline: none;
  border-color: #25d366;
}

#chatInput::placeholder {
  color: var(--muted);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #25d366;
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.chat-send-btn:hover {
  background: #128c7e;
  transform: scale(1.05);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* Status bar */
.chat-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1e293b;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-status-bar .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-status-bar .status-dot.connected {
  background: #25d366;
  box-shadow: 0 0 6px #25d366;
}

.chat-status-bar .status-dot.disconnected {
  background: #f59e0b;
}

.chat-status-bar .status-dot.error {
  background: #ef4444;
}

.chat-status-bar a {
  color: #25d366;
  text-decoration: none;
}

.chat-status-bar a:hover {
  text-decoration: underline;
}

.chat-status-bar.connected {
  background: rgba(37, 211, 102, 0.1);
}
