/* Optimized Chatbot CSS */

/* Chatbot Container */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 40px;
    z-index: 999999;
}

/* Chatbot Floating Button */
#chatbot-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    transition: transform 0.3s ease;
    /* background: #ffffff; */
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
}

#chatbot-icon img {
    max-width: 70px;
    width: 100%;
    height: auto;
}

#chatbot-icon:hover {
    transform: scale(1.1);
}

/* Chatbot Window */
#chatbot {
    position: fixed;
    bottom: 100px;
    right: 50px;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999999;
}

/* Chat Header */
#chat-header {
    background: #fda31b;
    color: white;
    padding: 12px;
    display: flex;
    font-size: 16px;
    font-weight: bold;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

#chatbot-cancel {
    position: absolute;
    top: 13px;
    right: 10px;
}

#chat-header .logo {
    height: 30px;
    margin-right: 10px;
}

#chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* Chat Body */
#chat-body {
    height: 350px;
    overflow-y: auto;
    padding: 10px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

/* Chat Messages */
.bot-message, .user-message {
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 8px;
    max-width: 80%;
    font-size: 14px;
}

.bot-message {
    background: #ff4339;
    color: white;
    border-radius: 0px 22px 22px 22px;
}

.bot-message::before {
    content: "TRINITY's TINKU:";
    font-weight: bold;
    font-size: 12px;
    display: block;
    margin-bottom: 3px;
    color: #fff4d3;
}

.user-message {
    background: #fda31b;
    color: white;
    align-self: flex-end;
    border-radius: 22px 0px 22px 22px;
}

.timestamp {
    font-size: 12px;
    color: #ffffff;
    margin-top: 4px;
    display: block;
    text-align: right;
}

/* Chat Footer */
#chat-footer {
    display: flex;
    padding: 10px;
    border-top: 1px solid #fda31b;
}

#user-input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #fda31b;
    border-radius: 5px;
}

#chat-footer button {
    margin-left: 5px;
    padding: 8px;
    border: none;
    background: #fda31b;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

/* Options Buttons */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
}

.options .option-btn {
    padding: 8px 15px;
    font-size: 14px;
    border: 2px solid #fda31b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: white;
    color: #fda31b;
    min-width: 120px;
    text-align: center;
}

.options .option-btn:hover {
    background: #fda31b;
    color: white;
}

.option-btn.selected {
    background-color: #fda31b !important;
    color: white !important;
    border: 2px solid #ff4339 !important;
}

/* Popup Message */
#popup-message {
    position: fixed;
    bottom: 90px;
    right: 40px;
    background: #ffffff;
    color: #96160f;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 10000;
    white-space: nowrap;
}

#chat-body::-webkit-scrollbar {
    width: 0px;
}

#chat-body::-webkit-scrollbar-thumb {
    background: #fda31b;
    border-radius: 5px;
}

#chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

/* RESPONSIVE DESIGN*/
@media (max-width: 576px) {
  #chatbot-container {
    right: 20px;
    bottom: 15px;
  }

  #chatbot {
    right: 15px;
    bottom: 80px;
    width: 90vw;
    max-width: 320px;
    height: 85vh;
  }

  
}
