/* ====================================================================== */
/* VLA — Virtual Leasing Agent Chat Panel                                  */
/* ====================================================================== */

.vla-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  max-height: 800px;
}

.vla-header {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.vla-selectors {
  display: flex;
  gap: 8px;
  align-items: center;
}

.vla-selectors select {
  flex: 1;
  max-width: 280px;
}

.vla-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.vla-welcome {
  text-align: center;
  padding: 40px 20px;
  color: var(--text2);
}

.vla-welcome-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.vla-welcome h3 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 18px;
}

.vla-welcome p {
  font-size: 13px;
  max-width: 500px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.vla-quick-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.vla-quick-actions .btn {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--glass2);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
}

.vla-quick-actions .btn:hover {
  background: var(--glass);
  border-color: var(--accent);
  color: var(--accent);
}

.vla-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  animation: vlaFadeIn 0.3s ease;
}

@keyframes vlaFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.vla-message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.vla-message.assistant {
  align-self: flex-start;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  color: var(--text);
  white-space: pre-wrap;
}

.vla-message .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text3);
  gap: 8px;
}

.vla-message.user .meta {
  color: rgba(255,255,255,0.6);
}

.vla-message .meta-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.vla-tpa-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vla-tpa-a { background: rgba(34,197,94,0.15); color: #22c55e; }
.vla-tpa-b { background: rgba(245,158,11,0.15); color: #f59e0b; }
.vla-tpa-c { background: rgba(239,68,68,0.15); color: #ef4444; }

.vla-copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text3);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}

.vla-message:hover .vla-copy-btn {
  opacity: 1;
}

.vla-copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.vla-typing {
  padding: 12px 16px;
  background: var(--glass2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
  align-self: flex-start;
}

.vla-typing-dots {
  display: flex;
  gap: 4px;
}

.vla-typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text3);
  animation: vlaBlink 1.4s infinite both;
}

.vla-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.vla-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes vlaBlink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

.vla-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.vla-input-area input {
  flex: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .vla-container { height: calc(100vh - 120px); }
  .vla-message { max-width: 95%; }
  .vla-quick-actions { gap: 4px; }
  .vla-quick-actions .btn { font-size: 10px; padding: 4px 8px; }
}
