﻿body {
    font-family: Arial, Helvetica, sans-serif;
}

#study-india-chatbot-launcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 95px;
    height: 95px;
    background: linear-gradient(126deg, rgba(13,47,94,1) 13%, rgba(61,129,184,1) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 36px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease;
    overflow: hidden;
    padding: 0;
}

    #study-india-chatbot-launcher:hover {
        transform: scale(1.1);
        background-color: #2A6496;
    }

    #study-india-chatbot-launcher img.launcher-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 10%;
    }

#study-india-chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    max-height: calc(100vh - 50px);
    background-color: #ffffff;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

    #study-india-chatbot-window.open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

.chatbot-header {
    background-color: #FFFFFF;
    /*padding: 15px;*/
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    flex-shrink: 0;
}


.chatbot-header img {
  height: 26px;
  width: auto;
  margin-right: 8px;
}

    .chatbot-header .header-content-wrapper {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .chatbot-header .logo {
        display: block;
        height: auto;
    }

    .chatbot-header .study-india-logo {
        max-width: 200px;
        max-height: 50px;
    }

    .chatbot-header .moe-logo {
        height: 44px;
        margin-left: 35px;
    }

.chatbot-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chatbot-messages {
    background-color: #f7f9fc;
    padding: 15px;
    flex-grow: 1;
    font-size: 14px;
}

.message {
    margin-bottom: 12px;
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 85%;
    line-height: 1.4;
    clear: both;
    position: relative;
    padding-bottom: 10px;
}

.message-content {
    word-wrap: break-word;

    padding-right: 40px;
}

.message-timestamp {
    font-size: 0.7em;
    color: #888;
    position: absolute;
    bottom: 8px;
    right: 18px;
}

.bot-message {
    background-color: #e9eaf1;
    color: #333;
    float: left;
    border-bottom-left-radius: 4px;
 
}



    .bot-message a {
        color: #2A6496;
        text-decoration: underline;
    }

    .bot-message strong {
        font-weight: bold;
    }

.user-message {
    background-color: #357ABD;
    color: white;
    float: right;
    border-bottom-right-radius: 4px;
   
}
.user-message {
    background-color: #357ABD;
    color: #ffffff;
    float: right;
    border-radius: 10px;             /* smaller curve */
    border-bottom-right-radius: 4px; /* keep your style */
    padding: 6px 10px !important;    /* smaller padding */
    font-size: 14px;                 /* lighter text */
    line-height: 1.3;
}

.chatbot-messages::after {
    content: "";
    clear: both;
    display: table;
}

/*.chatbot-input-area {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
}*/
.chatbot-input-area {
    padding: 6px 10px;        /* reduced from 15px */
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;                 /* spacing between input + button */
}

.chatbot-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    padding-top: 5px;
}

.chatbot-option-button {
    /*padding: 8px 15px;*/
    border: 1px solid #357ABD;
    background-color: #EAF2F8;
    color: #2A6496;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
}

    .chatbot-option-button:hover {
        background-color: #357ABD;
        color: white;
    }

.chatbot-footer {
    /*padding: 10px 15px;*/
    background-color: #f7f9fc;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.footer-buttons-container {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

    .footer-buttons-container button {
        flex: 1;
        padding: 8px 15px;
        border-radius: 20px;
        cursor: pointer;
        font-size: 0.9em;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background-color 0.2s, color 0.2s;
    }

        .footer-buttons-container button svg {
            fill: currentColor;
        }

.close-chat-button {
    border: 1px solid #357ABD;
    background-color: #EAF2F8;
    color: #2A6496;
    font-weight: normal;
    padding: 6px 12px;
    font-size: 14px;
    height: 32px;
    line-height: 1;
}

    .close-chat-button:hover {
        background-color: #357ABD;
        color: white;
    }

.footer-buttons-container .whatsapp-button {
    padding: 10px;
    background-color: #25D366;
    color: white;
    border: 1px solid transparent;
    font-weight: bold;
    font-size: 0.95em;
    display: none;
    padding: 6px 12px;
    font-size: 14px;
    height: 32px;
    line-height: 1;
}

.footer-buttons-container.whatsapp-button:hover {
        background-color: #1DAE51;
}

.chatbot-footer .footer-text {
    font-size: 0.85em;
    color: #888;
}

.chatbot-text-input {
    width: calc(100% - 85px);
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 8px;
    box-sizing: border-box;
    font-size: 0.95em;
}
.chatbot-text-input {
    padding: 6px 10px;       /* slimmer */
    font-size: 14px;
   height:32px;
}
.chatbot-submit-button {
    padding: 10px 15px;
    border: none;
    background-color: #357ABD;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.95em;
    min-width: 65px;
}

.chatbot-submit-button {
    padding: 6px 12px;       /* reduced */
    font-size: 14px;
    height: 32px;            /* match input height */
    line-height: 1;
}



    .chatbot-submit-button:hover {
        background-color: #2A6496;
    }


.feedback-container {
    background-color: #EAF2F8;
    border-top: 1px solid #d1d5db;
    padding: 12px;
    margin: 12px -18px -12px -18px; 
    font-size: 0.9em;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 18px;
}

    .feedback-container span {
        font-weight: bold;
    }

.feedback-btn {
    padding: 4px 12px;
    border: 1px solid #357ABD;
    background-color: #ffffff;
    color: #357ABD;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

    .feedback-btn:hover {
        background-color: #357ABD;
        color: white;
    }

    .feedback-btn.feedback-yes:hover {
        background-color: #28a745;
        border-color: #28a745;
        color: white;
    }

    .feedback-btn.feedback-no:hover {
        background-color: #dc3545;
        border-color: #dc3545;
        color: white;
    }

    .feedback-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: #f0f0f0;
    }

.feedback-textarea {
    width: 100%;
    height: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
    margin-bottom: 8px;
}
.chatbot-footer .footer-text {
  /*margin-top: 10px;*/
  margin-bottom: 0px;
}
.footer-buttons-container .whatsapp-button.show-whatsapp-button {
    display: flex !important;
}
.footer-buttons-container {
    display: block !important;
}
.footer-buttons-container {
    display: flex !important;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    align-content: inherit;
    padding: 10px 0px;
}

