@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: transparent; /* Allows iframe to show parent page background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* This is the main container that will have the purple background */
#window-container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    background-color: #542E91; /* The HX purple background */
    padding-top: 55px; /* Creates space for the masthead */
}

/* This is the logo positioned within the purple masthead area */
#brand-container {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 10;
}

#brand-logo {
    height: 30px;
}

/* The white chat area, now with margins to fit inside the window */
#chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 10px 10px 10px; /* New margins */
}

#chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f9f9f9;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.user-message {
    align-self: flex-end;
    background-color: #542E91;
    color: white;
}

.assistant-message {
    align-self: flex-start;
    background-color: #e9e9eb;
    color: black;
}

.assistant-message p {
    margin: 0 0 0.5em 0;
}

.assistant-message p:last-child {
    margin-bottom: 0;
}

.assistant-message ul, .assistant-message ol {
    padding-left: 20px;
    margin-top: 0;
    margin-bottom: 0.5em;
}

strong, b {
    font-weight: 700;
}

#chat-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#user-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 1em;
}

#user-input:focus {
    outline-color: #542E91;
}

#chat-form button {
    background-color: #542E91;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

#consent-text {
    padding: 8px 15px;
    font-size: 0.75em;
    text-align: center;
    color: #888;
    background-color: #fff;
}

#consent-text a {
    color: #542E91;
    text-decoration: underline;
}

@media (max-width: 480px) {
    #window-container {
        padding-top: 50px;
    }

    #brand-container {
        top: 12px;
        right: 15px;
    }

    #brand-logo {
        height: 25px;
    }

    #user-input {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    #chat-form button {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .message {
        max-width: 85%;
    }
} 