/* Chat Styles */

.chat-messages-container {
  background: linear-gradient(180deg, #e5e7eb 0%, #f9fafb 100%);
  border-radius: 12px;
  padding: 24px;
  height: 500px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-message {
  display: flex;
  margin-bottom: 16px;
  animation: slideIn 0.3s ease-out;
}

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

.chat-message.current-user {
  justify-content: flex-end;
}

.chat-message.other-user {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 65%;
  padding: 12px 16px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.chat-bubble:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.chat-bubble.current-user {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
}

.chat-bubble.other-user {
  background: white;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.chat-bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.chat-avatar.current-user {
  background-color: #818cf8;
}

.chat-avatar.other-user {
  background-color: #6366f1;
}

.chat-username {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

.chat-bubble.current-user .chat-username {
  color: #c7d2fe;
}

.chat-bubble.other-user .chat-username {
  color: #374151;
}

.chat-timestamp {
  font-size: 11px;
  margin-left: auto;
}

.chat-bubble.current-user .chat-timestamp {
  color: #c7d2fe;
}

.chat-bubble.other-user .chat-timestamp {
  color: #9ca3af;
}

.chat-content {
  font-size: 14px;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
}

.chat-empty-text {
  color: #9ca3af;
  text-align: center;
  font-size: 16px;
}

.chat-empty-subtext {
  color: #d1d5db;
  font-size: 14px;
  margin-top: 8px;
}

.chat-form {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.chat-input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 12px 16px;
  font-size: 14px;
  resize: none;
  transition: all 0.2s ease;
  background: white;
}

.chat-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-input::placeholder {
  color: #9ca3af;
}

/* Scrollbar styling */
.chat-messages-container::-webkit-scrollbar {
  width: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
