@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg,#f0f4f8,#e9eef5);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.chat-container {
  width: 420px;
  max-width: calc(100% - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20,30,60,0.08);
  overflow: hidden;
}

.header {
  padding: 14px 18px;
  background: linear-gradient(90deg, #F4A624, #E6951F);
  color: white;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

#chatbox {
  height: 380px;
  overflow-y: auto;
  padding: 18px;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.message.user { flex-direction: row-reverse; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dfe6e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #2d3436;
  flex-shrink: 0;
}

.bot-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.message.user .avatar { background: #F4A624; color: white; }

.bubble {
  max-width: 75%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f1f2f6;
  position: relative;
  line-height: 1.35;
}

.message.user .bubble { background: linear-gradient(180deg, #F4A624, #E6951F); color: white; }

.meta { font-size: 11px; color: #636e72; margin-top: 6px; text-align: right; }

.input-area {
  display:flex;
  padding: 12px;
  border-top: 1px solid #f1f3f5;
  gap: 10px;
}

#userInput {
  flex: 1;
  padding: 10px 12px;
  border-radius: 20px;
  border: 1px solid #dde6f2;
  outline: none;
}

#userInput:focus { box-shadow: 0 0 0 3px rgba(244, 166, 36, 0.12); border-color: #F4A624; }

#sendBtn {
  background: #F4A624;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

#sendBtn:disabled { opacity: 0.6; cursor: not-allowed; }

.typing { padding: 0 18px 6px 18px; color: #6b7280; display: none; font-style: italic; }
.typing .dots { margin-left: 6px; animation: blink 1s steps(3,end) infinite; }
@keyframes blink { 50% { opacity: 0.2 } }

@media (max-width: 480px) {
  .chat-container { width: 100%; margin: 20px; }
  #chatbox { height: 320px; }
}


.restart-btn {
  margin-left: auto;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.restart-btn:hover {
  background: #fff;
  color: #F4A624;
  transform: rotate(-8deg) scale(1.05);
}

.restart-btn:active {
  transform: scale(0.95);
}


.bubble .meta {
  font-size: 10px;
  opacity: .7;
  margin-top: 6px;
  text-align: right;
}



.message {
  animation: fadeUp 0.25s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble {
  transition: box-shadow .2s ease, transform .2s ease;
}
.bubble:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.quick-btn {
  background: #fff;
  border: 1px solid #F4A624;
  color: #F4A624;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 4px 6px 0 0;
  cursor: pointer;
  transition: all .2s ease;
}
.quick-btn:hover {
  background: #F4A624;
  color: #fff;
  transform: translateY(-1px);
}

