body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 1rem;
    background-color: #1a1a1a;
    color: white;
    padding-bottom: 4rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body.light-mode {
    background-color: white;
    color: #1a1a1a;
}

header {
    background-color: #303030;
    color: #e0e0e0;
    padding: 1rem 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

header.light-mode {
    background-color: #e0e0e0;
    color: #000000;
}

header h1 {
    font-size: 2rem;
    margin: 0;
    display: flex;
    align-items: baseline;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

header h1 .letter-c {
    font-size: 4rem;
    margin-right: 0.2rem;
    transform: translateY(-10px);
}

header h1 .letter-j {
    font-size: 4rem;
    transform: translateY(10px);
}

header .logo-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ff6f61;
    font: inherit;
    display: flex;
    align-items: baseline;
}

header.light-mode .logo-button {
    color: #ff6f61;
}

header .user-menu {
    position: relative;
    display: inline-block;
}

header .user-menu button {
    background: none;
    border: none;
    color: #ff6f61;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

header .user-menu .dropdown-content {
    display: none;
    position: absolute;
    background-color: #303030;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

header .user-menu .dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

header .user-menu .dropdown-content a:hover {
    background-color: #575757;
}

header .user-menu:hover .dropdown-content {
    display: block;
}

header.light-mode .user-menu .dropdown-content {
    background-color: #e0e0e0;
}

header.light-mode .user-menu .dropdown-content a {
    color: #000000;
}

header.light-mode .user-menu .dropdown-content a:hover {
    background-color: #cccccc;
}

header .user-info {
    font-size: 1rem;
    color: #e0e0e0;
}

header.light-mode .user-info {
    color: #000000;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

main.light-mode {
    background-color: #ffffff;
    color: #000000;
}

section {
    margin-top: 0;
    width: 100%;
    padding: 1rem;
    text-align: left;
    box-sizing: border-box;
}

section.light-mode {
    background-color: white;
    color: #000000;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ff6f61;
    border-bottom: 2px solid #ff6f61;
    padding-bottom: 0.5rem;
}

section.light-mode h2 {
    color: #ff6f61;
}

section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cccccc;
}

section.light-mode p {
    color: #000000;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #e0e0e0;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #444;
    color: #e0e0e0;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-button {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Roboto', sans-serif;
}

.form-button:hover {
    background-color: #ff3b2f;
    transform: scale(1.05);
}

.logout-button {
    background: none;
    border: none;
    color: #ff6f61;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.logout-button:hover {
    text-decoration: underline;
}

footer {
    background-color: #303030;
    color: #e0e0e0;
    text-align: center;
    padding: 1rem 2rem;
    position: static;
    width: 100%;
    bottom: 0;
    opacity: 1;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    box-sizing: border-box;
}

footer.light-mode {
    background-color: #e0e0e0;
    color: #000000;
}

footer .about {
    margin-top: 1rem;
}

footer .about p {
    margin-bottom: 1rem;
}

footer .about a {
    color: #ff6f61;
    text-decoration: none;
}

footer .about a:hover {
    text-decoration: underline;
}

#notification-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.notification {
    background-color: #444;
    color: #fff;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

.chat-window {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    height: 80vh;
    background-color: #3a3a3a; /* Changed to a lighter color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #2a2a2a; /* Changed to a lighter color */
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    background-color: #3a3a3a; /* Changed to a lighter color */
    border-top: 1px solid #555; /* Changed to a lighter color */
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background-color: #555; /* Changed to a lighter color */
    color: #e0e0e0;
    font-size: 1rem;
    margin-right: 0.5rem;
}

.chat-input:focus {
    outline: none;
    border: 1px solid #4CAF50;
}

.chat-button {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Roboto', sans-serif;
}

.chat-button:hover {
    background-color: #ff3b2f;
    transform: scale(1.05);
}

.clear-chat-button {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Roboto', sans-serif;
    margin-top: 1rem;
}

.clear-chat-button:hover {
    background-color: #ff3b2f;
    transform: scale(1.05);
}

.new-chat-button {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    font-family: 'Roboto', sans-serif;
    margin-top: 1rem;
}

.new-chat-button:hover {
    background-color: #ff3b2f;
    transform: scale(1.05);
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    background-color: #555; /* Changed to a lighter color */
    color: #e0e0e0;
}

.user-message {
    align-self: flex-end;
    background-color: #4CAF50;
}

.ai-message {
    align-self: flex-start;
    background-color: #3a3a3a; /* Changed to a lighter color */
}

.chat-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.user-list {
    width: 200px;
    background-color: #2a2a2a;
    border-right: 1px solid #555;
    overflow-y: auto;
    padding: 1rem;
    box-sizing: border-box;
}

.user-item {
    padding: 0.5rem;
    cursor: pointer;
    color: #e0e0e0;
    border-bottom: 1px solid #444;
}

.user-item:hover {
    background-color: #444;
}

.user-item.selected-user {
    background-color: #4CAF50; /* Highlight color */
    color: white;
}
