/* -----------------------------------------------------------
   Auction Saathi Chatbot – Premium UX + Shiny Glass UI
----------------------------------------------------------- */

/* Floating Chatbot Badge (AI Button) */
.chatbot-badge {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  font-size: 24px;
  z-index: 9999;
  transition: 0.25s ease;
  backdrop-filter: blur(6px);
}

.chatbot-badge:hover {
  transform: scale(1.13) rotate(6deg);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

/* Main Chatbot Window (Glassmorphism UI) */
.chatbot-container {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 340px;
  height: 470px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  display: none;
  overflow: hidden;
  animation: popup 0.35s ease;
  z-index: 9999;
}

/* Opening Animation */
@keyframes popup {
  0% { transform: translateY(40px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* Chat Header */
.chatbot-header {
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  padding: 12px 15px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.chatbot-header button {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.chatbot-header button:hover {
  transform: scale(1.25);
}

/* Chat Body (Smooth Scroll) */
.chatbot-body {
  height: 350px;
  padding: 12px;
  overflow-y: auto;
  background: rgba(245, 250, 255, 0.55);
  scroll-behavior: smooth;
}

/* Stylish Tip Box */
.chatbot-tip {
  background: rgba(225, 240, 255, 0.7);
  backdrop-filter: blur(6px);
  border-left: 5px solid #0078ff;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* User Message */
.user-message {
  background: linear-gradient(135deg, #0078ff, #00b4ff);
  color: white;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 16px 16px 4px 16px;
  max-width: 80%;
  margin-left: auto;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  animation: msgSlideUser 0.25s ease;
}

@keyframes msgSlideUser {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Bot Message */
.bot-message {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0,0,0,0.07);
  color: #000;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 16px 16px 16px 4px;
  max-width: 85%;
  margin-right: auto;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  animation: msgSlideBot 0.25s ease;

  /* --- URL / Long text wrapping fix --- */
  word-wrap: break-word;         /* Break long words */
  overflow-wrap: break-word;     /* Modern long-text wrap */
  word-break: break-word;        /* Extra support for URLs */
  white-space: normal;           /* Allow wrapping */
}
.bot-message a {
  color: #0066cc;
  word-break: break-all;
  text-decoration: underline;
}


@keyframes msgSlideBot {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Chat Footer */
.chatbot-footer {
  display: flex;
  padding: 10px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.08);
}

#chatbot-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ccd3dd;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
  background: rgba(255, 255, 255, 0.85);
}

#chatbot-input:focus {
  border-color: #0078ff;
  box-shadow: 0 0 0 3px rgba(0,120,255,0.15);
}

#chatbot-send {
  margin-left: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#chatbot-send:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #006be8, #00aee8);
}
/* General select styling */
.chat-faq-select {
    width: 100%; /* Full width in chat bubble */
    max-width: 400px; /* Optional max-width for consistency */
    padding: 10px 12px; /* Comfortable padding */
    font-size: 14px; /* Readable font size */
    font-family: 'Arial', sans-serif;
    color: #333; /* Dark text for readability */
    background-color: #fff; /* White background */
    border: 1px solid #ccc; /* Subtle border */
    border-radius: 6px; /* Rounded corners for modern look */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Light shadow for depth */
    appearance: none; /* Remove default arrow for custom style */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis; /* Handle oversize text */
    white-space: nowrap; /* Prevent wrapping */
}

/* Dropdown arrow */
.chat-faq-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.chat-faq-select-wrapper::after {
    content: '▼';
    font-size: 12px;
    color: #555;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Option text handling */
.chat-faq-select option {
    white-space: normal; /* Allow multi-line for options */
    padding: 6px 10px;
    font-size: 14px;
}

/* Hover/focus effects */
.chat-faq-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* For mobile / small screens */
@media (max-width: 480px) {
    .chat-faq-select {
        font-size: 13px;
        max-width: 100%;
    }
}
