html, body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
}

#header {
    color: #00321E;
    font-weight: 600;
    padding: 10px;
    align-items: center;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

a {
    color: rgb(0, 90, 158);
    text-decoration: none;
}

    a:hover {
        color: rgb(0, 69, 120);
    }


#webchat {
    display: flex;
    flex-direction: column;
    height: 75vh; /* fixed height, adjust as needed */
    max-height: 90vh;
    min-height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

#copilot-chat-window {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    background: #fff;
}

.chat-input {
    border-top: 1px solid #ccc;
    padding: 10px;
    background: #fafafa;
}

#chatwindow {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
}

#subheader {
    background-color: rgb(243, 242, 241);
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #ddd;
}

#loginStatus {
    flex: 1 1 auto;
    color: #00321E;
    min-width: 180px;
}

#login, #logout, a#login, a#logout {
    display: inline-block;
    padding: 8px 16px;
    background-color: #00321E;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}

    #login:hover, #logout:hover, a#login:hover, a#logout:hover {
        background-color: #009A31;
    }

#logout {
    display: none;
}

/* Center navbar items */
.navbar .mx-auto {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
    background-color: rgb(243, 242, 241);
    font-size: 14px;
    color: rgb(100, 100, 100);
    position: fixed;
    bottom: 0;
    width: 100%;
}


/* Header white override */
.header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: white;
    padding: 12px 24px;
    gap: 16px;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 16px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 16px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(14px);
}
#languageCode {
    font-size: 14px;
    font-weight: 500;
    color: #00321E;
    margin-left: 2px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #header {
        font-size: 16px;
        padding: 10px;
    }

    #webchat {
        height: 50vh;
        width: 100%;
    }

    #subheader {
        font-size: 12px;
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    #loginStatus {
        font-size: 13px;
        min-width: auto;
    }

    #login, #logout, a#login, a#logout {
        font-size: 13px;
        padding: 6px 12px;
        margin-left: 0;
    }

    footer {
        font-size: 12px;
        padding: 8px;
    }

    a#login,
    a#logout {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    #header {
        font-size: 14px;
        padding: 8px;
    }

    #subheader {
        font-size: 11px;
    }

    footer {
        font-size: 11px;
    }

    #login, #logout, a#login, a#logout {
        font-size: 11px;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    #subheader {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 16px;
    }

    #loginStatus {
        font-size: 13px;
        min-width: auto;
    }
}

.font-home {
    font-size: 20px;
    font-weight: 600;
}

.padding14 {
    padding-top: 14px;
    padding-bottom: 14px;
}

#copilot-chat-window {
    height: 425px; /* Adjust as per layout */
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
}

.language-card {
    margin-right: 10px;
}

    .language-card + a img {
        transition: transform 0.2s;
    }

        .language-card + a img:hover {
            transform: scale(1.1);
        }

.refresh-logo {
    height: 32px;
    cursor: pointer;
    background-color: #00A6A6;
    border-radius: 50px;
    transform: rotate(-45deg);
}


#webchat {
    flex: 1;
    font-size: 0.7rem;
    min-height: 400px;
    max-height: 90vh;
    transition: height 0.2s ease-in-out;
}

@media (max-width: 800px) {
    #webchat {
        font-size: 0.6rem;
    }
}

/* This targets the suggested action buttons */
.webchat__stacked-layout__button-group {
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 0.5rem;
    max-width: 100%;
    overflow-x: hidden;
}
    .webchat__stacked-layout__button-group button {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
        white-space: normal !important; /* Allows text wrapping */
        min-width: auto !important;
    }

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-button {
    font-size: min(0.85rem, 2vw);
    padding: 0.5rem 0.75rem;
}

@media (max-width: 1024px) {
    #webchat {
        height: 75vh;
        font-size: 0.85rem;
    }

}


@media screen and (min-width: 768px) and (max-width: 1024px) {
    .header-right {
        width: 35% !important;
    }
}

.header-wrapper {
display:flex;
justify-content:space-between;
align-items:center;
}

.header-right {
    display: flex;
    width: 25%;
    justify-content: space-between;
    align-items: center;
}