/* masih simpel banget jir awokawokaowkaowk */

:root {
  --primary-dark: #1f2235;
  --accent-teal: #4ecdc4;
  --bg-light: #f0f4f8;
  --text-white: #fff;
  --text-dark: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
}

body {
  background-color: var(--bg-light);
}

#app {
  display: flex !important; 
  flex-direction: column;
  min-height: calc(100vh - 70px); 
  height: 100%;
}

.chat-header {
  background-color: var(--primary-dark);
  padding: 22px 35px;
  color: var(--text-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.chat-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.chat-header p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 3px;
}

.chat-container {
  flex: 1; 
  overflow-y: auto;
  padding: 35px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-container::-webkit-scrollbar {
  width: 8px;
}
.chat-container::-webkit-scrollbar-thumb {
  background: #cfd5dd;
  border-radius: 8px;
}

.message {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: 0.95rem;
  animation: fadeIn 0.25s ease;
  font-weight: 400;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  align-self: flex-start;
  background-color: var(--accent-teal);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.message.user {
  align-self: flex-end;
  background-color: #ffffff;
  border: 1px solid #ddd;
  color: var(--text-dark);
  border-bottom-right-radius: 4px;
}

.input-area {
  padding: 18px 35px;
  background-color: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
  width: 100%; 
  flex-shrink: 0;
}

.input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #cfd3db;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: 0.2s;
}

.input-wrapper:hover {
  border-color: var(--accent-teal);
}

input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px;
  font-size: 1rem;
}

.btn-send {
  background-color: var(--accent-teal);
  border: none;
  color: var(--text-white);
  padding: 10px 26px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  border-radius: 10px;
  margin-right: 10px;
}

.btn-send:hover {
  filter: brightness(0.95);
}

.typing {
  display: inline-flex;
  gap: 4px;
}

.typing span {
  width: 6px;
  height: 6px;
  background: #888;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}