* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Calibri', 'Roboto', sans-serif;
    position: relative;
    overflow: hidden;
}

#suggested-questions .question {
    font-size: 13px;
    padding: 8px 16px; 
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.chat_window {
    width: 420px; /* reduced from 450px */

    font-size: 8px; /* default font size inside window */
}

.title {
    font-size: 20px;
    /* font-weight: 600; */
}

.messages .message .text_wrapper {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 16px;
}

.background-container {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 0; /* put behind container */
}

    .background-container::before {
        content: "";
        position: absolute !important;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(rgba(0,0,50,0.3), rgba(0,0,50,0.3));
        z-index: 1; /* gradient layer */
    }

.background-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

    .background-slide.active {
        opacity: 1 !important;
    }

/* Make sure your container with logo/form is above background */
.container {
    position: relative;
    z-index: 2;
}

.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #fff;
    box-sizing: border-box;
    padding: 0;
}

    .login-container .text-center img {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }


    .login-container .text-center h3 {
        font-size: 32px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .login-container .text-center span {
        font-size: 20px;
        color: #333;
    }

    .login-container form {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    .login-container .form-group {
        margin-bottom: 15px;
    }

    .login-container .input-group-addon {
        background: #f0f0f0;
        padding: 12px;
        font-size: 18px;
    }

    .login-container input.form-control {
        height: 50px;
        font-size: 18px;
    }

    .login-container label {
        font-size: 16px;
    }

    .login-container button {
        width: 100%;
        padding: 14px 0;
        font-size: 18px;
        background: #007bff;
        border: none;
        border-radius: 4px;
    }

        .login-container button:hover {
            background: #0056b3;
        }

    .login-container a {
        font-size: 15px;
    }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    height: 100%;
}


body {
    /*background: linear-gradient(rgba(0, 0, 50, 0.3), rgba(0, 0, 50, 0.3)), url('static/img/bg2.jpg') no-repeat center center fixed;*/
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    width: 100%;
    max-width: 400px; /* Increased from 400px */
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.logo {
    width: 90px;
    margin: -80px auto 10px auto;
    display: block;
}

h2 {
    color: #000;
    font-weight: 600;
    margin: 10px 0 5px;
}

p.subtitle {
    color: #eee;
    margin-bottom: 30px;
}

.input-group {
    background-color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    /*margin-bottom: 15px;*/
}

    .input-group i {
        margin-right: 10px;
        color: #333;
    }

    .input-group input {
        border: none;
        background: transparent;
        outline: none;
        width: 100%;
        color: #000;
        font-size: 14px;
    }


.checkbox-container {
    display: flex;
    align-items: center;
    padding-top: 2px;
    margin: 10px 0 30px;
    font-size: 14px;
    color: #fff;
}

    .checkbox-container input {
        margin-right: 8px;
        margin-top: 0px;
    }

.btn {
    background-color: #007bff;
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
}

    .btn:hover {
        background-color: #0056b3;
    }

.links {
    margin-top: 20px;
    font-size: 14px;
    color: #fff;
}

    .links a {
        color: #fff;
        text-decoration: none;
    }

        .links a:hover {
            text-decoration: underline;
        }

.background-container {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    overflow: hidden;
}

    .background-container::before {
        content: "";
        position: absolute !important;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: linear-gradient(rgba(0, 0, 50, 0.3), rgba(0, 0, 50, 0.3));
        z-index: 1;
    }

.background-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

    .background-slide.active {
        opacity: 1 !important;
    }
/* ================== BACKGROUND SLIDESHOW ================== */
.bg-slideshow {
    display: flex !important;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    width: 40%;
    height: 100vh;
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 3px solid rgb(41, 57, 126);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-container h3 {
        text-align: center;
        margin-bottom: 10px;
    }

.text-facebook {
    font-size: 20px;
    margin-bottom: 20px;
}

.login-container .form-group i {
    margin-right: 10px;
}

.login-container .form-group label {
    font-size: 18px;
}


.login-container button {
    width: 100%;
}

.bg-slider {
    position: relative;
    width: 60%;
    height: 100vh;
    overflow: hidden;
}

    .bg-slider img.bg-image {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%; /* Cover entire right half */
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

        .bg-slider img.bg-image.active {
            opacity: 1 !important;
        }


/* Blurred fallback */
.bg {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/bg.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(4px);
    z-index: -1;
}

/* ================== CONTENT ================== */
.content {
    position: relative;
    z-index: 1;
}

.logo1 {
    background: url('./img/bot.jpg') no-repeat center center;
    background-size: contain;
    width: 100px;
    height: 100px;
    margin: 20px auto 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 10px;
    opacity: 0.95;
}

/* ================== CHATBOT WIDGET ================== */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 40px;
    z-index: 9999;
}

#chatbot-toggle {
    width: 120px;
    height: 120px;
    background: url('./img/chat.png') no-repeat center center;
    background-size: cover;
    cursor: pointer;
    animation: toggleScalePulse 1s ease-in-out infinite alternate;
}

@keyframes toggleScalePulse {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}

/* ================== CHAT WINDOW ================== */
.chat_window {
    width: 450px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: #f8f8f8;
    overflow: hidden;
}

/* Top menu header */
.top_menu {
    background-image: linear-gradient(to left, #4A00E0, #0575E6, #667db6);
    padding: 10px;
    box-shadow: 0 1px 30px rgba(0,0,0,0.1);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-text {
    display: block;
    font-size: 20px;
    color: #fff;
    margin-left: 10px;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
    line-height: 1;
}

.bot-icon {
    width: 75px;
    height: 75px;
    /* margin: 10px 0 10px 5px; */
    background: url('./img/moil_icon.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 40%;
}




.title {
    font-size: 20px;
    color: #fff;
    margin-left: 10px;
    line-height: 1;
}

.minimize-icon {
    margin-right: 20px;
    color: white;
}

/* ================== MESSAGES ================== */
.messages {
    flex: 1 1 auto;
    list-style: none;
    padding: 20px 10px 0;
    margin: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .messages .message {
        clear: both;
        overflow: hidden;
        margin-bottom: 20px;
        transition: all 0.5s linear;
        opacity: 0;
    }

        .messages .message.appeared {
            opacity: 1;
        }

        .messages .message .avatar {
            height: 40px;
            width: 40px;
            background-size: cover !important;
            border-radius: 50%;
            display: inline-block;
        }

        .messages .message .text_wrapper {
            font-size: 16px;
            display: inline-block;
            padding: 15px;
            border-radius: 6px;
            min-width: 150px;
            position: relative;
        }

        .messages .message.left .avatar {
            float: left;
            background: url('./img/moil_icon.jpg');
        }

        .messages .message.left .text_wrapper {
            background-color: #f3eeca;
            margin-left: 20px;
        }

        .messages .message.left .timestamp {
            color: #b0742f;
            font-size: 10px;
            font-weight: 300;
            text-align: right;
            margin-top: 5px;
        }

        .messages .message.right .avatar {
            float: right;
            background: url('./img/guy.jpg');
        }

        .messages .message.right .text_wrapper {
            background-color: #b0d4f3;
            margin-right: 20px;
            float: right;
        }

        .messages .message.right .timestamp {
            color: #1a5770;
            font-size: 10px;
            font-weight: 300;
            text-align: right;
            margin-top: 5px;
        }

/* ================== INPUT & BUTTON ================== */
.bottom_wrapper {
    background-color: #fff;
    padding: 15px;
    display: flex;
    flex-shrink: 0;
}

    .bottom_wrapper #msg_input {
        flex-grow: 1;
        outline: none;
        font-size: 14px;
        padding: 10px;
        border: 1px solid #bcbdc0;
        border-radius: 50px;
        margin-right: 10px;
    }

.app_button_1 {
    width: 80px;
    background-image: linear-gradient(#4b00e0d3, #030405cc);
    border-radius: 50px;
    cursor: pointer;
    padding: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    text-align: center;
}

/* ================== SUGGESTED QUESTIONS ================== */
#suggested-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px 10px;
    min-height: 80px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    #suggested-questions .question {
        font-size: 14px;
        padding: 6px 12px;
        margin: 4px;
        border-radius: 16px;
        background: linear-gradient(to right, #e0e0e0, #f9f9f9);
        border: 1px solid #ccc;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
    }

        #suggested-questions .question:hover {
            background-color: #d0e6ff;
            color: #0056b3;
            transform: scale(1.05);
        }

/* ================== RESPONSIVE ================== */
/* ================== RESPONSIVE CHAT WINDOW ================== */

@media (max-width: 768px) {
    .chat_window {
        width: 90vw;
        max-height: 80vh;
    }

    #chatbot-toggle {
        width: 80px;
        height: 80px;
    }

    .bot-icon {
        width: 50px;
        height: 50px;
    }

    .title {
        font-size: 18px;
    }

    .status-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .chat_window {
        width: 95vw;
        max-height: 80vh;
    }

    .chat_window {
        left: 1.5vw; /* ensures it does not cut off left on small screens */
    }

    #chatbot-toggle {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }

    .top_menu {
        padding: 8px;
    }

    .bot-icon {
        width: 40px;
        height: 40px;
    }

    .title {
        font-size: 16px;
    }

    .status-text {
        font-size: 14px;
    }

    .bottom_wrapper #msg_input {
        padding: 8px;
        font-size: 14px;
    }

    .app_button_1 {
        width: 60px;
        font-size: 14px;
        padding: 8px;
    }

    #suggested-questions .question {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* Ensure messages are readable on mobile */
@media (max-width: 480px) {
    .messages .message .text_wrapper {
        font-size: 14px;
        padding: 10px;
        min-width: 100px;
    }
}
/* ============= LOGIN CONTAINER RESPONSIVE FIX ============= */
@media (max-width: 992px) {
    .bg-slideshow {
        flex-direction: column;
    }

    .login-container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }

    .bg-slider {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    #chatbot-widget {
        bottom: 10px;
        right: 10px;
    }

    .chat_window {
        width: 95vw;
        max-height: 80vh;
        left: 2.5vw; /* ensures no cutoff on left side */
        top: auto;
        bottom: 80px; /* positions above toggle button */
    }

    #chatbot-toggle {
        width: 55px;
        height: 55px;
    }

    .bottom_wrapper #msg_input {
        font-size: 14px;
        padding: 8px;
    }

    .app_button_1 {
        font-size: 14px;
        padding: 8px;
    }

    .messages .message .text_wrapper {
        font-size: 14px;
        padding: 10px;
    }

    .bot-icon {
        width: 35px;
        height: 35px;
    }

    .title {
        font-size: 16px;
    }

    .status-text {
        font-size: 14px;
    }
}

/* Even smaller tablets and large phones in portrait */
@media (max-width: 600px) {
    .chat_window {
        width: 95vw;
        max-height: 75vh;
        left: 2.5vw;
        bottom: 70px;
    }

    #chatbot-toggle {
        width: 50px;
        height: 50px;
    }

    .bottom_wrapper #msg_input,
    .app_button_1,
    .messages .message .text_wrapper {
        font-size: 14px;
    }

    .bot-icon {
        width: 32px;
        height: 32px;
    }

    .title {
        font-size: 15px;
    }

    .status-text {
        font-size: 13px;
    }
}

/* Ensure chatbot window is fully visible on smallest devices */
@media (max-width: 480px) {
    .chat_window {
        width: 95vw;
        max-height: 70vh;
        left: 2.5vw;
        bottom: 65px;
    }

    #chatbot-toggle {
        width: 45px;
        height: 45px;
    }

    .bottom_wrapper #msg_input,
    .app_button_1,
    .messages .message .text_wrapper {
        font-size: 12px;
    }

    .bot-icon {
        width: 28px;
        height: 28px;
    }

    .title {
        font-size: 14px;
    }

    .status-text {
        font-size: 12px;
    }
}

/* Ultra small devices (iPhone SE, older Android) */
@media (max-width: 360px) {
    .chat_window {
        width: 100vw;
        left: 0;
        bottom: 60px;
    }

    #chatbot-toggle {
        width: 40px;
        height: 40px;
    }

    .bottom_wrapper #msg_input,
    .app_button_1,
    .messages .message .text_wrapper {
        font-size: 11px;
    }

    .bot-icon {
        width: 24px;
        height: 24px;
    }

    .title {
        font-size: 13px;
    }

    .status-text {
        font-size: 11px;
    }
}


/* ================== BACKGROUND SLIDESHOW ================== */
.bg-slideshow {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    width: 40%;
    height: 100vh;
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border: 3px solid rgb(41, 57, 126);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-container h3 {
        text-align: center;
        margin-bottom: 10px;
    }

.text-facebook {
    font-size: 20px;
    margin-bottom: 20px;
}

.login-container .form-group i {
    margin-right: 10px;
}

.login-container .form-group label {
    font-size: 18px;
}


.login-container button {
    width: 100%;
}

.bg-slider {
    position: relative;
    width: 60%;
    height: 100vh;
    overflow: hidden;
}

    .bg-slider img.bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* Cover entire right half */
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }

        .bg-slider img.bg-image.active {
            opacity: 1;
        }


/* Blurred fallback */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./img/bg.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(4px);
    z-index: -1;
}

/* ================== CONTENT ================== */
.content {
    position: relative;
    z-index: 1;
}

.logo1 {
    background: url('./img/bot.jpg') no-repeat center center;
    background-size: contain;
    width: 100px;
    height: 100px;
    margin: 20px auto 0 auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 10px;
    opacity: 0.95;
}

/* ================== CHATBOT WIDGET ================== */
#chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 40px;
    z-index: 9999;
}

#chatbot-toggle {
    width: 120px;
    height: 120px;
    background: url('./img/chat.png') no-repeat center center;
    background-size: cover;
    /* background-color: #b0d4f3; */
    cursor: pointer;
    animation: toggleScalePulse 1s ease-in-out infinite alternate;
}

@keyframes toggleScalePulse {
    from {
        transform: scale(0.7);
    }

    to {
        transform: scale(1);
    }
}

/* ================== CHAT WINDOW ================== */
.chat_window {
    width: 450px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background-color: #f8f8f8;
    overflow: hidden;
}

/* Top menu header */
.top_menu {
    background-image: linear-gradient(to left, #4A00E0, #0575E6, #667db6);
    padding: 10px;
    box-shadow: 0 1px 30px rgba(0,0,0,0.1);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icon-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-text {
    display: block;
    font-size: 20px;
    color: #fff;
    margin-left: 10px;
    font-weight: 300;
    font-style: italic;
    opacity: 0.9;
    line-height: 1;
}

.bot-icon {
    width: 75px;
    height: 75px;
    /* margin: 10px 0 10px 5px; */
    background: url('./img/moil_icon.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 40%;
}




.title {
    font-size: 20px;
    color: #fff;
    margin-left: 10px;
    line-height: 1;
}

.minimize-icon {
    margin-right: 20px;
    color: white;
}

/* ================== MESSAGES ================== */
.messages {
    flex: 1 1 auto;
    list-style: none;
    padding: 20px 10px 0;
    margin: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .messages .message {
        clear: both;
        overflow: hidden;
        margin-bottom: 20px;
        transition: all 0.5s linear;
        opacity: 0;
    }

        .messages .message.appeared {
            opacity: 1;
        }

        .messages .message .avatar {
            height: 40px;
            width: 40px;
            background-size: cover !important;
            border-radius: 50%;
            display: inline-block;
        }

        .messages .message .text_wrapper {
            font-size: 16px;
            display: inline-block;
            padding: 15px;
            border-radius: 6px;
            min-width: 150px;
            position: relative;
        }

        .messages .message.left .avatar {
            float: left;
            background: url('./img/moil_icon.jpg');
        }

        .messages .message.left .text_wrapper {
            background-color: #f3eeca;
            margin-left: 20px;
        }

        .messages .message.left .timestamp {
            color: #b0742f;
            font-size: 10px;
            font-weight: 300;
            text-align: right;
            margin-top: 5px;
        }

        .messages .message.right .avatar {
            float: right;
            background: url('./img/guy.jpg');
        }

        .messages .message.right .text_wrapper {
            background-color: #b0d4f3;
            margin-right: 20px;
            float: right;
        }

        .messages .message.right .timestamp {
            color: #1a5770;
            font-size: 10px;
            font-weight: 300;
            text-align: right;
            margin-top: 5px;
        }

/* ================== INPUT & BUTTON ================== */
.bottom_wrapper {
    background-color: #fff;
    padding: 15px;
    display: flex;
    flex-shrink: 0;
}

    .bottom_wrapper #msg_input {
        flex-grow: 1;
        outline: none;
        font-size: 14px;
        padding: 10px;
        border: 1px solid #bcbdc0;
        border-radius: 50px;
        margin-right: 10px;
    }

.app_button_1 {
    width: 80px;
    background-image: linear-gradient(#4b00e0d3, #030405cc);
    border-radius: 50px;
    cursor: pointer;
    padding: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    text-align: center;
}

/* ================== SUGGESTED QUESTIONS ================== */
#suggested-questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px 10px;
    min-height: 80px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    #suggested-questions .question {
        font-size: 14px;
        padding: 6px 12px;
        margin: 4px;
        border-radius: 16px;
        background: linear-gradient(to right, #e0e0e0, #f9f9f9);
        border: 1px solid #ccc;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
    }

        #suggested-questions .question:hover {
            background-color: #d0e6ff;
            color: #0056b3;
            transform: scale(1.05);
        }

/* ================== RESPONSIVE ================== */
/* ================== RESPONSIVE CHAT WINDOW ================== */

@media (max-width: 768px) {
    .chat_window {
        width: 90vw;
        max-height: 80vh;
    }

    #chatbot-toggle {
        width: 80px;
        height: 80px;
    }

    .bot-icon {
        width: 50px;
        height: 50px;
    }

    .title {
        font-size: 18px;
    }

    .status-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .chat_window {
        width: 95vw;
        max-height: 80vh;
    }

    .chat_window {
        left: 2.5vw; /* ensures it does not cut off left on small screens */
    }

    #chatbot-toggle {
        width: 60px;
        height: 60px;
        bottom: 10px;
        right: 10px;
    }

    .top_menu {
        padding: 8px;
    }

    .bot-icon {
        width: 40px;
        height: 40px;
    }

    .title {
        font-size: 16px;
    }

    .status-text {
        font-size: 14px;
    }

    .bottom_wrapper #msg_input {
        padding: 8px;
        font-size: 14px;
    }

    .app_button_1 {
        width: 60px;
        font-size: 14px;
        padding: 8px;
    }

    #suggested-questions .question {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* Ensure messages are readable on mobile */
@media (max-width: 480px) {
    .messages .message .text_wrapper {
        font-size: 14px;
        padding: 10px;
        min-width: 100px;
    }
}
/* ============= LOGIN CONTAINER RESPONSIVE FIX ============= */
@media (max-width: 992px) {
    .bg-slideshow {
        flex-direction: column;
    }

    .login-container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 20px;
    }

    .bg-slider {
        width: 100%;
        height: 300px;
    }
}

@media (max-width: 768px) {
    #chatbot-widget {
        bottom: 10px;
        right: 10px;
    }

    .chat_window {
        width: 95vw;
        max-height: 80vh;
        left: 2.5vw; /* ensures no cutoff on left side */
        top: auto;
        bottom: 80px; /* positions above toggle button */
    }

    #chatbot-toggle {
        width: 55px;
        height: 55px;
    }

    .bottom_wrapper #msg_input {
        font-size: 14px;
        padding: 8px;
    }

    .app_button_1 {
        font-size: 14px;
        padding: 8px;
    }

    .messages .message .text_wrapper {
        font-size: 14px;
        padding: 10px;
    }

    .bot-icon {
        width: 35px;
        height: 35px;
    }

    .title {
        font-size: 16px;
    }

    .status-text {
        font-size: 14px;
    }
}

/* Even smaller tablets and large phones in portrait */
@media (max-width: 600px) {
    .chat_window {
        width: 95vw;
        max-height: 75vh;
        left: 2.5vw;
        bottom: 70px;
    }

    #chatbot-toggle {
        width: 50px;
        height: 50px;
    }

    .bottom_wrapper #msg_input,
    .app_button_1,
    .messages .message .text_wrapper {
        font-size: 14px;
    }

    .bot-icon {
        width: 32px;
        height: 32px;
    }

    .title {
        font-size: 15px;
    }

    .status-text {
        font-size: 13px;
    }
}

/* Ensure chatbot window is fully visible on smallest devices */
@media (max-width: 480px) {
    .chat_window {
        width: 95vw;
        max-height: 70vh;
        left: 2.5vw;
        bottom: 65px;
    }

    #chatbot-toggle {
        width: 45px;
        height: 45px;
    }

    .bottom_wrapper #msg_input,
    .app_button_1,
    .messages .message .text_wrapper {
        font-size: 12px;
    }

    .bot-icon {
        width: 28px;
        height: 28px;
    }

    .title {
        font-size: 14px;
    }

    .status-text {
        font-size: 12px;
    }
}

/* Ultra small devices (iPhone SE, older Android) */
@media (max-width: 360px) {
    .chat_window {
        width: 100vw;
        left: 0;
        bottom: 60px;
    }

    #chatbot-toggle {
        width: 40px;
        height: 40px;
    }

    .bottom_wrapper #msg_input,
    .app_button_1,
    .messages .message .text_wrapper {
        font-size: 11px;
    }

    .bot-icon {
        width: 24px;
        height: 24px;
    }

    .title {
        font-size: 13px;
    }

    .status-text {
        font-size: 11px;
    }
}




/* ================== LANDSCAPE ORIENTATION SUPPORT ================== */
@media screen and (orientation: landscape) and (max-width: 991px) {
    body {
        font-size: 8px !important;
        overflow-y: auto;
    }

    .container {
        padding: 4px;
        max-height: 92vh;
        overflow-y: auto;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 8px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    }

    .logo {
        width: 40px;
        height: 40px;
        margin: 2px auto;
    }

    .container h2 {
        font-size: 12px;
        margin: 1px 0;
    }

    .subtitle {
        font-size: 8px;
        margin-bottom: 4px;
    }

    .login-container {
        width: 100%;
        max-height: 92vh;
        overflow-y: auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(8px);
        border-radius: 8px;
    }

    .login-form,
    .form-wrapper {
        width: 94%;
        max-width: 220px;
        padding: 1px;
        background-color: rgba(255, 255, 255, 0.85);
        border-radius: 3px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

        .login-form input,
        .login-form button {
            font-size: 7px;
            padding: 2px 3px;
            margin: 1px 0;
        }

        .login-form label,
        .login-form h2,
        .login-form p {
            font-size: 7px;
            line-height: 1.1;
            margin: 1px 0;
        }

    /* ✅ Checkbox adjustments */
    .checkbox-container {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
    }

        .checkbox-container input {
            width: 10px;
            height: 10px;
            margin-right: 2px;
            margin-top: 0;
            margin-bottom: 4px
        }


        .checkbox-container label {
            font-size: 6.5px;
        }

 
    .btn {
        font-size: 7px;
        padding: 3px 6px;
        margin-top: 2px;
    }

    .links p {
        font-size: 7px;
        margin: 2px 0;
    }

    /* CHATBOT WINDOW */
    .chat_window {
        width: 70vw;
        max-height: 80vh;
        left: 7vw;
        bottom: 32px;
        font-size: 9px;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    #chatbot-toggle {
        width: 40px;
        height: 40px;
        bottom: 2px;
        right: 2px;
    }

    .bottom_wrapper #msg_input,
    .app_button_1,
    .messages .message .text_wrapper {
        font-size: 7px;
        padding: 2px;
    }

    .bot-icon {
        width: 16px;
        height: 16px;
    }

    .title {
        font-size: 8px;
    }

    .status-text {
        font-size: 6.5px;
    }

    /* ✅ Suggested questions improved padding with side names */
    #suggested-questions .question {
        font-size: 6px;
    }

    .messages .message.left,
    .messages .message.right {
        display: flex;
        align-items: flex-end;
        margin-bottom: 10px;
    }

        .messages .message.left .avatar,
        .messages .message.right .avatar {
            float: none; /* override default */
            flex-shrink: 0;
            margin-right: 4px;
            margin-left: 0;
        }

    .messages .message.right {
        flex-direction: row-reverse;
    }

        .messages .message.right .avatar {
            margin-left: 4px;
            margin-right: 0;
        }

    .messages .message .text_wrapper {
        margin: 0; /* prevent conflicting margins */
    }

    .messages .message.left .text_wrapper,
    .messages .message.right .text_wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .messages .message .avatar {
        width: 20px;
        height: 20px;
    }

    .messages .message .text_wrapper {
        font-size: 6.5px !important;
        padding: 3px 4px !important;
        min-width: 60px;
        border-radius: 2px;
    }

    .messages .message.left .timestamp,
    .messages .message.right .timestamp {
        font-size: 4px;
        margin-top: 1px;
    }

    .messages .message.left .text_wrapper,
    .messages .message.right .text_wrapper {
        margin-left: 6px;
        margin-right: 6px;
    }

    input,
    button,
    select,
    textarea {
        font-size: 7px !important;
    }

    .app_button_1 {
        min-height: 18px;
        padding: 2px 6px;
    }
}


.errormsg {
    color: red !important;
}


.bot-html {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.4;
}

    /* Table wrapper */
    .bot-html table {
        width: auto;
        min-width: 100%;
        border-collapse: collapse;
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }

    /* Table cells */
    .bot-html th,
    .bot-html td {
        padding: 6px 8px;
        border: 1px solid #ccc;
        white-space: nowrap; /* 👈 KEY FIX */
        text-align: left;
    }

        /* Allow description column to wrap */
        .bot-html td:first-child,
        .bot-html th:first-child {
            white-space: normal;
            min-width: 120px;
        }

    /* Header style */
    .bot-html th {
        background-color: #f3f3f3;
        font-weight: 600;
    }

    /* Scrollbar */
    .bot-html table::-webkit-scrollbar {
        height: 6px;
    }

    .bot-html table::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

/* Chat bubble width */
.message .text_wrapper {
    max-width: 85%;
}