body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.left-pane {
  width: 40%;
  /* background: linear-gradient(135deg, #000, #ffd700); */
  background: linear-gradient(154deg, #FFC000 0.72%, rgba(255, 192, 0, 0.48) 98.27%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

#robot {
  width: 200px;
  height: 200px;
  margin-bottom: 1rem;
}

.right-pane {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.chat-wrapper {
  width: 95%;
  max-width: 700px;
  background: rgba(255,215,0,0.05);
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 30px #ffd700aa;
}

#chat {
  height: 70vh;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(0,0,0,0.4);
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid #ffd70033;
}

.msg {
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 10px;
  max-width: 85%;
}

.user {
  background: #ffd900c7;
  align-self: flex-end;
  text-align: right;
  color: #000;
}

.gpt {
  background: #ffffff11;
  color: #ffd700;
}

.input-area {
  display: flex;
  gap: 1rem;
}

input[type="text"] {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ffd70088;
  background: #111;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

button {
  padding: 0.75rem 1.5rem;
  background: #ffd700;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #e6c200;
}


.typing {
  font-style: italic;
  margin-bottom: 0.5rem;
  color: #ffd700;
  font-size: 0.9rem;
}

.typing .dot {
  animation: blink 1s infinite;
}

.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 20% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.hidden {
  display: none;
}


.typing {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 0.5rem;
  height: 24px;
}

.typing .dot {
  width: 8px;
  height: 8px;
  background-color: #ffd700;
  border-radius: 50%;
  animation: bounce 1.4s infinite;
}

.typing .dot:nth-child(1) { animation-delay: 0s; }
.typing .dot:nth-child(2) { animation-delay: 0.2s; }
.typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.4); opacity: 1; }
}

.hidden {
  display: none;
}

#voiceBtn {
  font-size: 1.2rem;
  padding: 0.75rem;
  background: #3d3d3b;
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

#voiceBtn:hover {
  background: #ffd700;
}
#voiceBtn:active {
  background: #05961d;
}
#voiceBtn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.5);
}
#voiceBtn:disabled {    
  background: #ccc;
  cursor: not-allowed;
}