/* Chatbot Styles Custom for Jaya Polytechnic College */
.chatbot-wrapper {
  position: fixed;
  right: 24px;
  bottom: 20px;
  width: 370px;
  height: 560px;
  max-height: calc(100vh - 40px);
  display: none;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(22, 59, 92, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 24px 60px rgba(10, 37, 77, 0.25);
  overflow: hidden;
  z-index: 9999;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0c263f 72%, var(--accent-color) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.chatbot-header strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.chatbot-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chatbot-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  overflow-y: auto;
  background:
    radial-gradient(circle at top right, rgba(22, 59, 92, 0.08), transparent 40%),
    radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.12), transparent 35%),
    #f3f7fc;
}

.bot-message,
.user-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.45;
  margin: 0;
  word-wrap: break-word;
}

.bot-message {
  align-self: flex-start;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e3eaf5;
}

.user-message {
  align-self: flex-end;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color) 0%, #0c263f 100%);
  border: 1px solid var(--primary-color);
}

.choice-btn {
  align-self: flex-start;
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(22, 59, 92, 0.2);
  background: #ffffff;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.choice-btn:hover {
  color: #ffffff;
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.chatbot-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #dbe4f3;
  background: #ffffff;
}

.chatbot-footer input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cdd8ea;
  background: #f8fbff;
  font-size: 14px;
}

.chatbot-footer input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(22, 59, 92, 0.14);
}

.chatbot-footer button {
  width: 44px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-color) 0%, #b89324 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-footer button:disabled,
.chatbot-footer input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Responsive adjustments for chatbot */
@media (max-width: 576px) {
  .chatbot-wrapper {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    height: 480px;
  }
}
