.navbar {
    background-color: #007bff;
    color: #fff;
    /* padding: 15px; */
    width: 100%;
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}


.logo {
    width: 5%;
    height: 2%;
    padding-left: 15px;
    margin-right: 20px; /* Adjust space between logo and nav items */
}

.navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    flex: 1; /* Allow the ul to take the remaining space */
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

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


body {
    font-family: Arial, sans-serif;
    /* margin: 20; */
    /* padding: 50; */
    margin-top: 5px;
    height: 100vh;
    width: 99%;
    display: flex;
    /* flex-direction: column; */
    /* overflow: hidden; */
}

.left-half, .right-half {
    width: 50%;
    height: 90%;
    /* box-sizing: border-box; */
    margin-top: 4%;
} 

.left-half {
    background-color: #f0f0f0;
    display: flex;
    /* align-items: center;
    justify-content: center; */
}


.pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
}

.right-half {
    background-color: #ffffff;
    /* flex-grow: 1; */
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    padding-right: 20px;
    height: 90%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.chat-messages {
    /* display: flex; */
    flex: 1; 
    border: 1px solid #ccc;
    padding: 10px;
    /* overflow-y: auto; */
    margin-bottom: 10px;
    overflow-y: scroll;
}

.chat-input {
    flex-wrap: nowrap;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    width: 80%;
}

.chat-submit {
    flex-flow: row;
    margin-left: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 20%;
}

.chat-submit:hover {
    background-color: #0056b3;
}

.chat-form{
    display: flex;
    
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    white-space: pre-wrap;
}

.user-message {
    text-align: right;
    color: #333;
    background-color: #e6f7ff;
}

.bot-message {
    text-align: left;
    color: #007bff;
    background-color: #f0f0f0;
}

.message span {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.loading-spinner {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #007bff; /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: flex;
} 

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