body {
    font-family: 'Inter', sans-serif; /* Apply Inter font to the entire body */
    background-color: #F3F4F6;
}

/* Light mode styles (default) */
.custom-border {
    border-color: #e5e7eb; /* light border color */
}
.sidebar-bg {
    background-color: #ffffff; /* white background for sidebar */
}
/* Remove the gray area by adjusting background and border of chat section */
.message-bg {
    background-color: #ffffff; /* Adjust this as needed */
    border: none; /* Remove border */
}
.input-bg {
    background-color: #ffffff; /* white background for inputs */
}
.text-primary {
    color: #1f2937; /* primary text color */
}
.text-secondary {
    color: #4b5563; /* secondary text color */
}
.assistant-message {
    background-color: #e5e7eb; /* gray background for assistant messages */
    color: black;
}
.reset-container {
    background-color: #ffffff; /* white background */
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    .custom-border {
        border-color: #333333;
    }
    .sidebar-bg {
        background-color: #2a2a2a;
    }
    .message-bg {
        background-color: #2a2a2a;
    }
    .input-bg {
        background-color: #333333;
        color: #e0e0e0;
    }
    .text-primary {
        color: #e0e0e0;
    }
    .text-secondary {
        color: #a0a0a0;
    }
    .assistant-message {
        background-color: #3a3a3a;
        color: #e0e0e0;
    }
    .reset-container {
        background-color: #2a2a2a;
    }
    .btn-primary {
        background-color: #7F56D9; /* Updated primary button color to purple */
        color: white; /* Ensure text color is white */
        border: 2px solid transparent; /* Add border, make it transparent */
    }
    .btn-primary:hover {
        background-color: #6941C6; /* Darker purple on hover */
        box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
    }
}

/* Styles that remain the same for both light and dark mode */
.message {
    padding: 8px 12px;
    border-radius: 8px;
    word-wrap: break-word; /* Ensures text wraps within the container */
    width: fit-content; /* Adjust width to fit the content */
    max-width: 50%;
}
/* Set user message text color to white */
.user-message {
    background-color: #7F56D9; /* purple background for user messages */
    margin-left: auto;
    text-align: right;
    border-radius: 8px 8px 0 8px; /* Rounded corners for user messages */
    position: relative
}

.user-message .text-primary {
    color: white !important; /* Ensure text color is white */
}

.assistant-message {
    border-radius: 8px 8px 8px 0; /* Rounded corners for assistant messages */
    position: relative;
}
.message-label {
    margin-bottom: 2px;
    font-size: 0.875rem; /* Adjust the font size */
}
.user-label {
    text-align: right;
    margin-right: 8px;
}
.assistant-label {
    text-align: left;
    margin-left: 8px;
}
.font-medium {
    font-weight: 500; /* Apply medium font weight */
}
.font-normal {
    font-weight: 400; /* Apply normal font weight */
}
.btn {
    text-transform: none; /* Prevents automatic capitalization */
    font-weight: 400; /* Apply medium font weight */
}
.reset-container {
    padding: 10px; /* padding around the button */
    border-radius: 8px; /* rounded corners */
    margin: 10px 0;
    display: flex;
    justify-content: flex-end; /* Aligns the button to the right */
}

.chat-bubble-primary {
    background-color: #7F56D9; /* Updated to purple color */
}

#messages {
    overflow-y: auto; /* Enable vertical scrolling */
    max-height: 800px; /* Set a maximum height */
}
.autofill-btn {
    background-color: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}
.autofill-btn:hover {
    background-color: #7c3aed;
}
.autofill-btn i {
    margin-right: 8px;
}

textarea.auto-resize {
    min-height: 96px; /* Approximately 3 lines of text */
    height: auto;
    overflow-y: hidden;
    resize: none;
}

.image-preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    margin: 8px 0;
}