body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1e1f25;
    color: #eaeaea;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1f25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: #eaeaea;
}

#loading-screen h1 {
    font-size: 3rem;
    font-weight: bold;
    color: #0d6efd;
}

#sidebar {
    width: 250px;
    background-color: #2a2b32;
    padding: 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

#sidebar h3 {
    font-family: 'Arial Black', sans-serif;
    color: #0d6efd;
    text-align: center;
    margin-bottom: 20px;
}

#sidebar a {
    color: #eaeaea;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

#sidebar a:hover {
    background-color: #444654;
}

#chat-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#chat-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #444654;
}

.chat-bubble {
    max-width: 75%;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.5;
}

.user {
    align-self: flex-end;
    background-color: #0d6efd;
    color: white;
}

.assistant {
    align-self: flex-start;
    background-color: #555;
}

#input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #555;
    background-color: #40414f;
}

#input-field {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 16px;
    background-color: #343541;
    color: #eaeaea;
}

#send-button {
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #0d6efd;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#send-button:hover {
    background-color: #0056b3;
}

.theme-toggle {
    cursor: pointer;
    font-size: 20px;
    color: #eaeaea;
    align-self: flex-end;
}

.light-mode {
    background-color: #f7f7f8;
    color: #333;
}

.light-mode #chat-container {
    background-color: #ffffff;
}

.light-mode #input-container {
    background-color: #f7f7f8;
    border-top: 1px solid #ddd;
}

.light-mode #input-field {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.light-mode #send-button {
    background-color: #0d6efd;
    color: white;
}
