/* Dontwarrior Chatbot Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1c1917;
  background: linear-gradient(135deg, #fef7ed 0%, #fafaf9 50%, #fed7aa 100%);
  min-height: 100vh;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  background: rgba(41, 37, 36, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #57534e;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
}

.header-icon {
  padding: 0.5rem;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fef3c7;
  margin: 0;
}

.header-subtitle {
  color: #d6d3d1;
  font-size: 0.875rem;
  margin: 0;
}

/* Chat Container */
.chat-container {
  padding: 1.5rem 0;
}

.chat-box {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e7e5e4;
  overflow: hidden;
}

/* Messages Area */
.messages-area {
  height: 24rem;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-wrapper {
  display: flex;
}

.message-wrapper.user {
  justify-content: flex-end;
}

.message-wrapper.dude {
  justify-content: flex-start;
}

.message {
  max-width: 20rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message.user {
  background: #57534e;
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.message.dude {
  background: #fef3c7;
  color: #1c1917;
  border-bottom-left-radius: 0.25rem;
  border: 1px solid #fde68a;
}

.message-text {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.message-time {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

.message.user .message-time {
  color: #d6d3d1;
}

.message.dude .message-time {
  color: #78716c;
}

/* Loading Animation */
.loading-message {
  display: flex;
  justify-content: flex-start;
}

.loading-content {
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dots {
  display: flex;
  gap: 0.25rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  background: #a8a29e;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.loading-text {
  color: #57534e;
  font-size: 0.875rem;
}

/* Input Area */
.input-area {
  border-top: 1px solid #e7e5e4;
  padding: 1rem;
  background: rgba(120, 113, 108, 0.05);
}

.input-container {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.message-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #d6d3d1;
  background: rgba(255, 255, 255, 0.8);
  color: #1c1917;
  font-size: 0.875rem;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
}

.message-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.message-input::placeholder {
  color: #78716c;
}

.message-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-button {
  padding: 0.75rem;
  background: #57534e;
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.send-button:hover:not(:disabled) {
  background: #44403c;
}

.send-button:disabled {
  background: #a8a29e;
  cursor: not-allowed;
}

.input-help {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #78716c;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #57534e;
}

.footer-text {
  font-size: 0.875rem;
  margin: 0;
}

.footer-quote {
  font-size: 0.75rem;
  margin: 0.25rem 0 0 0;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .message {
    max-width: 16rem;
  }
  
  .header-title {
    font-size: 1.25rem;
  }
  
  .messages-area {
    height: 20rem;
    padding: 1rem;
  }
}

/* Scrollbar Styling */
.messages-area::-webkit-scrollbar {
  width: 6px;
}

.messages-area::-webkit-scrollbar-track {
  background: #f5f5f4;
  border-radius: 3px;
}

.messages-area::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 3px;
}

.messages-area::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}