.chat-icon {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fcae9e, #ff7e6b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
   /*  transition: transform 0.3s ease, box-shadow 0.3s ease; */
    z-index: 1000;
    /* animation: pulse 2s infinite ease-in-out; */
}
.chat-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.chat-icon img {
    width: 80px;
    height: 80px;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.chat-container {
    position: fixed;
    bottom: 80px;
    right: 10px;
    width: 95vw;
    max-width: 400px;
    height: 70vh;
    max-height: 500px;
    /* background: #fff; */
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    background-image: url('../images/background.png');
    background-size: cover;
  	background-repeat: no-repeat;
  	background-position: center;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.chat-container.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    animation: bounceIn 0.5s ease-out;
}
@keyframes bounceIn {
    0% { transform: translateY(100px); opacity: 0; }
    60% { transform: translateY(-10px); opacity: 1; }
    80% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}
.chat-header {
    /* background: linear-gradient(135deg, #764ba2, #ff6b6b); */
    background: linear-gradient(135deg, #fcae9e, #ff7e6b);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.3em;
    cursor: pointer;
    padding: 8px;
} 
.chat-body {
    flex: 1;
    padding: 0; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}
.chat-message.user {
    justify-content: flex-end;
}
.chat-message.bot {
    justify-content: flex-start;
    align-items: flex-start;
}
.message-content {
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 15px;
    line-height: 1.4;
    position: relative;
    animation: fade-in 0.3s ease;
    font-size: 0.9em;
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.user .message-content {
    background: #ff6b6b;
    color: white;
    border-bottom-right-radius: 5px;
    margin-left: 35px;
}
.bot .message-content {
    background: #e6e6e6;
    color: #333;
    border-bottom-left-radius: 5px;
}

.options-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    /* padding: 5px !important; */
    background: #f8f9fd !important;
    border-radius: 10px !important;
   /*  margin-bottom: 6px !important; */
    justify-content: flex-start !important; /* Align options to start */
    width: 90% !important; /* Ensure container uses full available width */
    margin-left: 25px !important;
}
.option-view {
    background: linear-gradient(135deg, #ff7e6b, #fcae9e) !important;
    color: white !important;
    padding: 10px 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) !important;
    text-align: center !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    /* white-space: nowrap !important; */
    flex: 1 1 calc(50% - 6px) !important; /* Two per row, accounting for gap */
    /* max-width: calc(50% - 6px) !important; Ensure two per row */
}


.option-view:hover {
    background: linear-gradient(135deg, #ff9282, #ffc2b6) !important;
    transform: translateY(-2px) !important;
}

.option-view:active {
    transform: translateY(1px) !important;
}


.option-button {
    background: linear-gradient(135deg, #ff7e6b, #fcae9e) !important;
    color: white !important;
    border-radius: 12px !important; /* Softer corners */
    padding: 10px 16px !important;
    margin-top: 4px !important;
    cursor: pointer;
    display: block !important; /* Full-width buttons */
    width: 200px !important; /* Adjust width to content */
    font-weight: 600 !important;
    font-size: 0.95em !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.2s ease, background 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Subtle border */
}

.option-button:hover {
    background: linear-gradient(135deg, #ff9282, #ffc2b6) !important;
    transform: translateY(-2px) !important;
}

.option-button:active {
    transform: translateY(1px) !important;
}
 
.chat-footer {
    padding: 12px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
}
.chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 0.9em;
    transition: border-color 0.3s;
}
.chat-input:focus {
    border-color: #764ba2;
}
.send-button {
   /*  background: linear-gradient(135deg, #764ba2, #ff6b6b); */
   background: linear-gradient(135deg, #fcae9e, #ff7e6b);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.9em;
}
.send-button:hover {
     background: linear-gradient(135deg, #ffc2b6, #ff9282);
}
.chat-body::-webkit-scrollbar {
    width: 5px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: #ff7e6b;
}
#languageSelection {
    text-align: center;
   /*  margin: 0 10px;  */
    display: flex; /* Ensure flex display */
    justify-content: center; /* Center the buttons */
    gap: 10px;
}
#languageSelection button {
    padding: 8px 16px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    background: linear-gradient(135deg, #fcae9e, #ff7e6b);
    color: white;
    font-size: 0.9em;
    transition: background 0.3s;
}
#languageSelection button:hover {
    background: linear-gradient(135deg, #667eea, #ff8787);
}
@media (max-width: 600px) {
    .chat-icon {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }
    .chat-icon img {
        width: 35px;
        height: 35px;
    }
    .chat-container {
        bottom: 70px;
        right: 5px;
        width: 95vw;
        max-width: 320px;
        height: 80vh;
        max-height: 450px;
        border-radius: 15px;
    }
    .chat-header {
        padding: 10px;
        font-size: 1em;
    }
    .close-button {
        font-size: 1.1em;
        padding: 6px;
    }
    .chat-body {
        padding: 10px;
    }
    .message-content {
        font-size: 0.85em;
        padding: 8px 12px;
       
    }
    .option-button {
       font-size: 0.9em !important;
       padding: 8px 14px !important;
       max-width: 85% !important;
    }
    .chat-footer {
        padding: 10px;
    }
    .chat-input {
        font-size: 0.85em;
        padding: 8px;
    }
    .send-button {
        padding: 6px 12px;
        font-size: 0.85em;
    }
    .chat-prompt-text {
        font-size: 0.85em;
        padding: 6px 12px;
        bottom: 80px;
        right: 10px;
    }
}

.suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-width: 300px;
  z-index: 1000;
}
.suggestions-list li {
  padding: 5px 10px;
  cursor: pointer;
}
.suggestions-list li:hover {
  background-color: #f0f0f0;
}


.reset-button {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    color: white;
    margin-left: 50px;  
}


#chatMessages {
    /* flex: 1; */
    height: auto !important;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    scroll-behavior: smooth;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message.bot.language-prompt {
    margin-bottom: 0; /* Remove the margin-bottom entirely for the language prompt */
}

.chat-prompt-text {
    position: fixed;
    bottom: 85px; /* Position above the chat icon */
    right: 15px;
    background: linear-gradient(135deg, #fcae9e, #ff7e6b);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: bounceText 1.5s infinite ease-in-out;
    z-index: 999; /* Just below the chat icon */
}

/* Bouncing animation for the prompt text */
@keyframes bounceText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chat-message.bot .message-content img {
    border-radius: 50%; /* Make the logo circular */
}

.btn {
    border: none;
    font-weight: 500;
    text-align: center;
}
.message-content {
	box-shadow:none!important;
	border:none!important;
	margin-left: inherit;
}

.go-back-button {
    background-color: #e0e0e0;
    color: #333;
    border: 1px solid #ccc;
}
.go-back-button:hover {
    background-color: #d0d0d0;
}

.popup-modal {
  display: none;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 300px;
  background: #fff;
  z-index: 1000;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.popup-content {
  position: relative;
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 0px;
  font-size: 18px;
  cursor: pointer;
}

.popup-content textarea {
  resize: none;
  margin-top: 10px;
  padding: 8px;
  font-size: 14px;
}


.mini-form {
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 10px;
}
.send-button {
    background-color: #007bff;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
    vertical-align: middle;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  .send-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }




.message-feedback {
    display: flex;
    margin-top: 0.25rem; /* Matches Bootstrap mt-1 */
    
}

.thumbs-up,
.thumbs-down,
.thumbs-up-fill,
.thumbs-down-fill {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.2s ease; /* Smooth transition */
    display: inline-block;
    margin-right: 10px; /* Space between icons */
}

.thumbs-up {
    background-image: url("data:image/svg+xml;base64,PHN2ZyBzdHJva2U9ImN1cnJlbnRDb2xvciIgZmlsbD0iIzAwN2JmZiIgc3Ryb2tlLXdpZHRoPSIwIiB2aWV3Qm94PSI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jUtMTExIDAtMjguMy05LjMtNTUuNS0yNi4xLTc3LjdaTTExMiAxMzJ2MzY0YzAgMTcuNyAxNC4zIDMyIDMyIDMyaDY1VjEwMGgtNjVjLTE3LjcgMC0zMiAxNC4zLTMyIDMyeiI+PC9wYXRoPjwvc3ZnPg==");
}

.thumbs-up:last-child,
.thumbs-down:last-child,
.thumbs-up-fill:last-child,
.thumbs-down-fill:last-child {
    margin-right: 0; /* Remove margin for last icon */
}


.error-msg {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    transition: opacity 0.3s ease;
}

.input-error {
    border: 1px solid red !important;
}

