* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f5f7;
    color: #333333;
}

/* DCU banner */
.banner {
    width: 100%;
    height: 130px;
    background-image: url("/static/BANNER.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
}

/* Main page content */
.container {
    max-width: 1000px;
    margin: 35px auto;
    padding: 0 25px;
}

/* Page heading */
.intro {
    margin-bottom: 25px;
}

.intro h1 {
    color: #1A3C66;
    font-size: 28px;
    margin-bottom: 10px;
}

.intro p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
}

/* Chatbot panel */
.chatbot-box {
    background-color: white;
    border: 1px solid #dddddd;
    border-top: 5px solid #1A3C66;
    padding: 25px;
    max-width: 850px;
    margin: 0 auto;
}

.chatbot-box h2 {
    color: #1A3C66;
    font-size: 23px;
    margin-top: 0;
    margin-bottom: 8px;
}

.description {
    color: #666666;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Chat conversation area */
.chat-area {
    background-color: #f7f8fa;
    border: 1px solid #e1e1e1;
    min-height: 250px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 15px;
    line-height: 1.5;
    font-size: 14px;
    border: 1px solid lightgray;
    width: fit-content;


}

.message-label {
    color: #1A3C66;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 7px;
}

/* Suggested questions */
.suggestions {
    margin-bottom: 20px;
}

.suggestions p {
    font-size: 13px;
    font-weight: bold;
    color: #555555;
}

.suggestion {
    display: inline-block;
    background-color: white;
    border: 1px solid #1A3C66;
    color: #1A3C66;
    padding: 9px 13px;
    margin: 4px 4px 4px 0;
    font-size: 13px;
    cursor: pointer;
}

.suggestion:hover {
    background-color: #1A3C66;
    color: white;
}

/* Message input */
.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 13px;
    border: 1px solid #bbbbbb;
    font-size: 14px;
}

.chat-input button {
    background-color: #1A3C66;
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 14px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #102b4a;
}

/* Footer */
.footer {
    text-align: center;
    color: #777777;
    font-size: 12px;
    margin-top: 35px;
    padding: 20px;
    border-top: 1px solid #dddddd;
}

@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }

    .chatbot-box {
        padding: 15px;
    }

    .message {
        max-width: 100%;
    }

    .chat-input button {
        padding: 0 15px;
    }
}

/* Source cotainer */
.sources {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border-top: 1px solid black;


}

/* style each source item */
.sources a {
    display:  inline-block;
    padding: 5px 10px;
    border: 1px solid #1A3C66;
    border-radius: 15px;
    background-color: white;

}

.user-message{
    align-self: flex-end;
    max-width: 75%;
    background-color: white;
    border-right: 4px solid #1A3C66;
}

.bot-message{
    align-self: flex-start;
    max-width: 85%;
    background-color: white;
    border-left: 4px solid#1A3C66;
    overflow-wrap: anywhere;
}



