/* style.css */
body {
  background-color: #f8fafc;
  font-family: 'Nunito', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  text-align: center;
  font-weight: 700;
  font-size: 1.5rem;
  padding: 1rem 0;
  color: #0d6efd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.message {
  margin-bottom: 1.5rem;
}

.user-msg {
  text-align: right;
}

.bot-msg {
  text-align: left;
}

.message-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #6c757d;
}

.avatar {
  margin-right: 8px;
  font-size: 1.2rem;
}

.timestamp {
  margin-left: auto;
  opacity: 0.7;
}

.bubble {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 85%;
  word-wrap: break-word;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  line-height: 1.6;
}

.user-msg .bubble {
  background-color: #0d6efd;
  color: white;
  border-bottom-right-radius: 4px;
}

.bot-msg .bubble {
  background-color: #f1f3f5;
  color: #212529;
  border-bottom-left-radius: 4px;
}

.typing-indicator .bubble {
  display: flex;
  align-items: center;
  height: 40px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6c757d;
  margin: 0 3px;
  animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.fixed-input {
  position: sticky;
  bottom: 0;
  background-color: #f8fafc;
  padding: 10px 0;
  border-top: 1px solid #dee2e6;
}

#user-input {
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  transition: all 0.3s;
}

#user-input:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: none;
}

.btn-primary {
  padding: 0 20px;
  transition: all 0.3s;
}

.quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.quick-btn {
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 12px;
}

/* Adicione ao final do seu arquivo CSS */
.file-upload-container {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px dashed #dee2e6;
}

#file-name {
  font-size: 0.9rem;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.file-preview {
  max-width: 100%;
  max-height: 60vh;
  margin: 0 auto;
  display: block;
}

.file-preview-text {
  white-space: pre-wrap;
  font-family: monospace;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
}

.file-info {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
}

.progress {
  height: 8px;
  margin-top: 1rem;
}

/* Adicione media queries para responsividade */
@media (max-width: 768px) {
  .chat-container {
    padding: 1rem;
  }
  
  .bubble {
    max-width: 90%;
  }
  
  .quick-actions {
    justify-content: center;
  }
}