/* General Styles */
body {
    /* font-family: 'Poppins', sans-serif; */
    font-family: "EB Garamond", serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8;
    color: #333;
    display: flex;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1, h2 {
    margin: 0;
    font-weight: 600;
}

/* Button Styles */
button {
    
    cursor: pointer;
    border: none;
    background-color: #6c5ce7; /* Softer blue */
    color: #fff;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #4e2b94; /* Darker shade of purple on hover */
}



/* Sign-In Section */
#signin-section {
    display: flex;
    font-family: "EB Garamond", serif;

    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.signin-container {
    font-family: "EB Garamond", serif;

    text-align: center;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background-color: #ffffff;
    width: 350px;
    max-width: 100%;
}

.signin-container h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.signin-container p {
    font-size: 14px;
    margin-bottom: 20px;
}

.signin-container input {
    font-family: "EB Garamond", serif;

    padding: 12px;
    width: 85%;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8f8f8;
}

.signin-container .link-btn {
    color: #6c5ce7;
    background-color: transparent;
    /* text-decoration: underline; */
    cursor: pointer;
}

.signin-container .link-btn:hover {
    color: #4e2b94;
}
#signin-section, #register-section {
    font-family: "EB Garamond", serif;

    display: flex; /* Flexbox for centering */
    justify-content: center;
    align-items: center;
    position: absolute; /* Ensure full coverage */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure Containers Are Centered Within Their Sections */
.signin-container, .register-container {
    text-align: center;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    /* background-color: #ffffff; */
    width: 350px;
    max-width: 100%;
}

.link-btn {
    font-family: "EB Garamond", serif;

    font-size: 14px; /* Adjust font size */
    cursor: pointer; /* Pointer cursor for clickable buttons */
    padding: 0; /* Remove extra padding */
    outline: none;
}
.link-btn:hover {
    outline: none; /* Ensure no focus outline appears on hover */
    text-decoration: none; /* Optional: Remove underline on hover */
}

/* Focus state: Remove outline when clicked or focused */
.link-btn:focus {
    outline: none;
}

#register-section {
    display: flex; 
    font-family: "EB Garamond", serif;

    justify-content: center; 
    align-items: center; 
    width: 100%;
    height: 100%;
    background-color: #fff; 
    position: absolute;
    top: 0;
    left: 0;
}

.register-container {
    text-align: center;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background-color: #ffffff;
    width: 350px;
    max-width: 100%;
}


.register-container h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.register-container p {
    font-size: 14px;
    margin-bottom: 10px;
}

.register-container input {
    font-family: "EB Garamond", serif;

    padding: 12px;
    width: 85%;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f8f8f8;
}
.signin-container button, .register-container button {
    font-family: "EB Garamond", serif;
}
#password-requirements {
    margin-top: 10px;
    font-size: 14px;
}

#password-requirements ul {
    list-style-type: none;
    padding: 0;
}

#password-requirements li {
    color: red;
}

#password-requirements .valid {
    color: green;
}

#password-requirements .invalid {
    color: red;
}

.register-container .link-btn {
    color: #6c5ce7;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.register-container .link-btn:hover {
    color: #4e2b94;
}

/* Register Button */
#registerBtn:disabled {
    background-color: #bbb; /* Disabled button */
    cursor: not-allowed;
}

/* Chat Section */
#chat-section {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar Styles */
.sidebar {
    width: 320px;
    font-family: "EB Garamond", serif;

    min-width: 320px;
    background-color: #2d3436;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #dfe6e9;
}

.sidebar button {
    width: 100%;
    margin-bottom: 20px;
    padding: 14px;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.sidebar button:hover {
    background-color: #b2bec3;
}

#chat-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.chat-item {
    padding: 12px;
    font-family: "EB Garamond", serif;

    margin-bottom: 12px;
    background-color: #444;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-item:hover {
    background-color: #555;
}

.chat-item.active {
    background-color: #6c5ce7;
}

.chat-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
    background-color: #fff;
    min-width: 0;
}

.chat-header {
    border-bottom: 2px solid #ddd;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.chat-display {
    flex-grow: 1;
    overflow-y: auto;
    background-color: #f5f5f5;
    padding: 18px;
    border-radius: 8px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 16px;
}

.chat-message.user {
    align-self: flex-end;
    background-color: #6c5ce7;
    color: #fff;
}

.chat-message.assistant {
    align-self: flex-start;
    background-color: #e1e1e1;
    color: #333;
}

.chat-input-container {
    font-family: "EB Garamond", serif;
    display: flex;
    margin-top: 18px;
    border-top: 2px solid #ddd;
    padding-top: 12px;
}

.chat-input-container input {
    flex-grow: 1;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.chat-input-container button {
    font-family: "EB Garamond", serif;
    margin-left: 12px;
}

.pdf-upload-section{
    font-family: "EB Garamond", serif;
    margin-top: 10px;

}

.logout-btn {
    margin-top: auto;
    background-color: #ff4757;
    color: white;
    padding: 12px 20px;
    font-family: "EB Garamond", serif;

    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #e84118;
}

#userIdDisplay {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

