body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #e3f2fd, #ffffff);
  padding: 40px;
}

.container {
  max-width: 650px;
  margin: auto;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: #ffffff; 
  box-shadow: 0 0 12px #1976d2, 0 0 24px #00c6ff;
}

@keyframes colorfulGlow {
  0% {
    box-shadow: 0 0 12px #1976d2, 0 0 24px #00c6ff;
  }
  /* 25% {
    box-shadow: 0 0 12px #8e24aa, 0 0 24px #d500f9;
  }
  50% {
    box-shadow: 0 0 12px #43a047, 0 0 24px #76ff03;
  } */
  /* 50% {
    box-shadow: 0 0 12px #ff8f00, 0 0 24px #ffd600;
  } */
  100% {
    box-shadow: 0 0 12px #1976d2, 0 0 24px #00c6ff;
  }
}

img {
  font-size: 32px;
  margin-bottom: 30px;
  color: #0b7beb;
  animation: fadeSlideDown 1.5s ease-out;
  background: linear-gradient(to right, #000203, #00c6ff);
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(25, 118, 210, 0.2);
  width: 40%;
  height: 10%;
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

input {
  width: 70%;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

button {
  padding: 12px 20px;
  font-size: 16px;
  margin-left: 10px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #135ba1;
}

#response {
  margin-top: 30px;
  font-size: 18px;
  text-align: left;
  background: #f1f8ff;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #1976d2;
  white-space: normal;            
  word-wrap: break-word;          
  overflow-wrap: break-word;      
  line-height: 1.5;               
  max-height: 350px;              
  overflow-y: auto;               
  transition: all 0.3s ease-in-out;
}


.loader {
  font-size: 18px;
  color: #1976d2;
  font-weight: 500;
  margin-top: 20px;
  text-align: center;
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { content: "Thinking"; }
  40% { content: "Thinking."; }
  60% { content: "Thinking.."; }
  80%, 100% { content: "Thinking..."; }
}


.hidden {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#feedback-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

#feedback-buttons button {
  padding: 10px 20px;
  font-size: 18px;
  background-color: #e3f2fd;
  border: 2px solid #1976d2;
  border-radius: 10px;
  color: #1976d2;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

#feedback-buttons button:hover {
  background-color: #1976d2;
  color: white;
}
#response {
  transition: all 0.3s ease-in-out;
  opacity: 1;
}

.typing {
  border-right: 2px solid #1976d2;
  animation: blinkCursor 0.8s steps(44) infinite normal;
}

@keyframes blinkCursor {
  from { border-right-color: #1976d2; }
  to { border-right-color: transparent; }
}

.mode-select {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 25px;
  font-size: 16px;
}

.mode-select input {
  margin-right: 6px;
}

