body { margin: 0; font-family: Arial, sans-serif; }

.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #ddd; color: white; }

.footer { background: #ddd; text-align: center; padding: 15px; margin-top: 20px;}

.logo img { height: 100px; }


.lang-picker { margin-left: 20px; }


.menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

.menu li {
    display: flex;
    align-items: center; /* Aligns text and images in the center */
}

.menu li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000; /* Adjust color as needed */
    font-size: 16px; /* Adjust text size if needed */
}

.menu li a:hover { text-decoration: underline; }

.menu li a img {
    height: 1em; /* Makes the image match the text height */
    width: auto; /* Maintains aspect ratio */
    margin-right: 5px; /* Adds spacing between icon and text */
}


#chat-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box; /* Ensures padding is included in width calculations */
}

#chat-window {
    flex-grow: 1;
    width: 100%;
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #fff;
    box-sizing: border-box;
}

#chat-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
    box-sizing: border-box;
}

#controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#controls input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* Layout for chat + session dropdown */
#session-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 20px;
}

#session-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 200px;
}

#sessions {
    width: 200px;
    height: 120px;
}



.bot_msg {
    width: 95%;
    padding: 3px;
    margin-top: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    float: left;
}

.bot_msg b { font-weight: bold; }
.bot_msg i { font-style: italic; }
.bot_msg code {
    background-color: #eee;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.human_msg {
    width: 95%;
    padding: 3px;
    margin-top: 2px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #eee;
    float: right;
}

#cookie-banner {
            position: fixed;
            bottom: 10px;
            left: 10px;
            right: 10px;
            background: white;
            color: black;
            border-color: black;
            padding: 10px 20px;
            border-radius: 5px;
            font-size: 14px;
            text-align: center;
            display: none; /* Hidden by default */
        }
        #cookie-banner button {
            background: #4CAF50;
            color: white;
            border: none;
            padding: 5px 10px;
            cursor: pointer;
            margin-left: 10px;
            border-radius: 3px;
        }
        #cookie-banner a {
            color: black;
            text-decoration: underline;
        }

#loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Hidden by default */
    z-index: 1000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
