/* General Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
    color: #ffffff;
    font-size: 16px; /* Base font size */
}

/* Chat Container */
.chat-container {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 0.9375rem rgba(0, 0, 0, 0.5);
    flex-direction: row;
    overflow-x: hidden;
}
/* Sidebar Styling */
.sidebar {
    width: 16.25rem; /* 260px */
    min-width: 16.25rem; /* 260px */
    background-color: #2c2c2c;
    display: flex;
    flex-direction: column;
    padding: 0.625rem; /* 10px */
    box-sizing: border-box;
    overflow-y: auto;
    border-radius: 0.625rem; /* 10px */
    flex-shrink: 0;
}

.sidebar-button {
    font-family: 'Poppins', sans-serif;
    background-color: #3a3a3a;
    color: white;
    border: none;
    padding: 0.75rem; /* 12px */
    font-size: 0.9375rem; /* 15px */
    text-align: left;
    cursor: pointer;
    margin-bottom: 0.625rem; /* 10px */
    border-radius: 0.625rem; /* 10px */
}

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

.chat-list {
    flex-grow: 1;
    overflow-y: auto;
}

/* Chat Item Styling */
.chat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #3a3a3a;
    padding: 0.75rem; /* 12px */
    border-radius: 0.625rem; /* 10px */
    margin-bottom: 0.625rem; /* 10px */
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
    position: relative;
    font-size: 0.9375rem; /* 15px */
}

.chat-item.active, .chat-item:hover {
    background-color: #525252;
}

.options-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1rem; /* 16px */
    cursor: pointer;
}

.options-button:hover {
    color: #cccccc;
}

.options-menu {
    display: none;
    position: absolute;
    right: 0.625rem; /* 10px */
    top: 2.1875rem; /* 35px */
    background-color: #4b4b4b;
    border: 0.0625rem solid #444; /* 1px */
    border-radius: 0.3125rem; /* 5px */
    z-index: 10;
    overflow: hidden;
}

.options-menu.active {
    display: block;
}

.options-menu button {
    width: 100%;
    background: none;
    border: none;
    padding: 0.625rem; /* 10px */
    color: white;
    text-align: left;
    cursor: pointer;
}

.options-menu button:hover {
    background-color: #575757;
}

/* Chat Box Styling */
.chat-box {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    padding: 1.25rem; /* 20px */
    border-radius: 0.625rem; /* 10px */
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    min-width: 0;
}

.assistant-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    margin: 0 0 1.25rem; /* 20px */
    padding: 0;
    color: #ffffff;
    text-align: center;
}

/* Intro Text Styling */
.intro-text {
    font-size: 1.125rem; /* 18px */
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1.25rem; /* 20px */
    color: #cccccc;
    max-width: 50rem; /* 800px */
    margin: 0 auto 1.25rem; /* 20px */
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.intro-text.visible {
    opacity: 1;
}

/* Suggestion List Fade-in Styling */
.suggestion-list {
    display: none;
    justify-content: center;
    gap: 1.25rem; /* 20px */
    padding: 0.625rem; /* 10px */
    margin: 1.25rem auto;
    flex-wrap: wrap;
    max-width: 100%;
    opacity: 0;
    transform: translateY(1.25rem); /* 20px */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.suggestion-list.visible {
    opacity: 1;
    transform: translateY(0);
}

.suggestion {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1.25rem; /* 20px */
    background-color: #3a3a3a;
    border-radius: 0.625rem; /* 10px */
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 15.625rem; /* 250px */
    max-width: 18.75rem; /* 300px */
    text-align: left;
    box-sizing: border-box;
}

.suggestion:hover {
    background-color: #525252;
}

.suggestion .text {
    font-size: 1rem; /* 16px */
    font-weight: 400;
    margin-bottom: 0.625rem; /* 10px */
    font-family: 'Poppins', sans-serif;
}

.suggestion .icon {
    font-size: 1.5rem; /* 24px */
    color: #ffffff;
    align-self: flex-end;
}

/* Chat Window Styling */
.chat-window {
    flex-grow: 1;
    padding: 1.25rem; /* 20px */
    overflow-y: auto;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    border-radius: 0.625rem; /* 10px */
    border: none;
}

/* Typing Area Styling */
.typing-area {
    background-color: #1e1e1e;
    padding: 0.9375rem; /* 15px */
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
    border-radius: 0.625rem; /* 10px */
    border-top: none;
}

.typing-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    background-color: #444;
    border-radius: 3.125rem; /* 50px */
    padding: 0 0.9375rem; /* 15px */
}

.typing-input {
    flex-grow: 1;
    padding: 0.75rem; /* 12px */
    border: none;
    background-color: transparent;
    color: white;
    font-size: 1rem; /* 16px */
    font-family: 'Poppins', sans-serif;
    border-radius: 3.125rem; /* 50px */
    outline: none;
}

.typing-input::placeholder {
    color: #888;
}

/* Circular Button Styling */
.circular-button {
    width: 3.125rem; /* 50px */
    height: 3.125rem; /* 50px */
    border-radius: 50%;
    background-color: #4caf50;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    font-size: 1.5rem; /* 24px */
}

.circular-button .icon {
    font-size: 1.5rem; /* 24px */
    color: white;
}

.action-buttons {
    display: flex;
    gap: 0.625rem; /* 10px */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.75rem; /* 12px */
}

::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 0.625rem; /* 10px */
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 0.625rem; /* 10px */
    border: 0.1875rem solid #2c2c2c; /* 3px */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #888 #2c2c2c;
}

/* Light Mode Scrollbar */
body.light-mode, html.light-mode {
    scrollbar-color: #bbb #e0e0e0;
}

.light-mode ::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 0.625rem; /* 10px */
}

.light-mode ::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 0.625rem; /* 10px */
    border: 0.1875rem solid #e0e0e0; /* 3px */
}

.light-mode ::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}


/* Message Bubbles */
.message {
    max-width: 60%;
    padding: 0.625rem 0.9375rem; /* 10px 15px */
    margin: 0.3125rem 0; /* 5px 0 */
    border-radius: 1.25rem; /* 20px */
    word-wrap: break-word;
    font-size: 0.9375rem; /* 15px */
}

.user-message {
    align-self: flex-end;
    background-color: #0084ff;
    color: white;
    text-align: left;
    border-bottom-right-radius: 0;
}

.bot-message {
    align-self: flex-start;
    background-color: #333;
    color: white;
    text-align: left;
    border-bottom-left-radius: 0;
}

/* Dark Mode */
.dark-mode {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .sidebar {
    background-color: #2c2c2c;
}

.dark-mode .chat-box {
    background-color: #1e1e1e;
}

.dark-mode .assistant-heading {
    color: #ffffff;
}

.dark-mode .suggestion-list {
    background-color: #1e1e1e;
}

.dark-mode .suggestion {
    background-color: #3a3a3a;
}

.dark-mode .suggestion .icon {
    color: #ffffff;
}

.dark-mode .chat-window {
    background-color: #1e1e1e;
    border: none;
}

.dark-mode .sidebar-button {
    background-color: #3a3a3a;
    color: white;
}

.dark-mode .sidebar-button:hover {
    background-color: #4b4b4b;
}

.dark-mode .chat-item {
    background-color: #3a3a3a;
    color: white;
}

.dark-mode .chat-item.active, .dark-mode .chat-item:hover {
    background-color: #525252;
}

.dark-mode .options-button {
    color: #ffffff;
}

.dark-mode .typing-area {
    background-color: #1e1e1e;
    border-top: 0.0625rem solid #1e1e1e; /* 1px */
}

.dark-mode .typing-input {
    background-color: #444;
    color: white;
    border: none;
    outline: none;
}

.dark-mode .circular-button {
    background-color: #4caf50;
    color: white;
}

/* Light Mode */
.light-mode {
    background-color: #f4f4f4;
    color: #333333;
}

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

.light-mode .chat-box {
    background-color: #ffffff;
}

.light-mode .assistant-heading {
    color: #333333;
}

.light-mode .suggestion-list {
    background-color: #ffffff;
}

.light-mode .suggestion {
    background-color: #f0f0f0;
    border: 0.0625rem solid #dcdcdc; /* 1px */
}

.light-mode .suggestion .icon {
    color: #333333;
}

.light-mode .chat-window {
    background-color: #ffffff;
    border: none;
}

.light-mode .sidebar-button {
    background-color: #dcdcdc;
    color: #333333;
}

.light-mode .sidebar-button:hover {
    background-color: #cccccc;
}

.light-mode .chat-item {
    background-color: #f0f0f0;
    color: #333333;
}

.light-mode .chat-item.active, .light-mode .chat-item:hover {
    background-color: #e0e0e0;
}

.light-mode .options-button {
    color: #333333;
}

.light-mode .typing-area {
    background-color: #ffffff;
    border-top: 0.0625rem solid #ffffff; /* 1px */
}

.light-mode .typing-input {
    background-color: #e0e0e0;
    color: #333333;
    border: none;
    outline: none;
}

.light-mode .circular-button {
    background-color: #4caf50;
    color: white;
}

.light-mode .input-wrapper {
    background-color: #e0e0e0;
}

/* Bot Message Wrapper */
.bot-message-wrapper {
    display: flex;
    align-items: center;
    margin-top: 0.3125rem; /* 5px */
}

/* Bot Icon */
.bot-icon {
    margin-right: 0.625rem; /* 10px */
    font-size: 1.5rem; /* 24px */
    color: #888;
    align-self: center;
}

/* Bot Message Bubble */
.bot-message {
    max-width: 60%;
    padding: 0.625rem 0.9375rem; /* 10px 15px */
    margin: 0;
    border-radius: 1.25rem; /* 20px */
    word-wrap: break-word;
    align-self: flex-start;
    background-color: #333; /*#1e1e1e, #333*/
    color: white;
    text-align: left;
    border-bottom-left-radius: 0;
}

/* Rating Buttons */
.rating-buttons {
    display: flex;
    gap: 0.625rem; /* 10px */
    margin-top: 0.625rem; /* 10px */
}

.like-button, .dislike-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 1rem; /* 16px */
    padding: 0.3125rem; /* 5px */
    border-radius: 0.3125rem; /* 5px */
    transition: background-color 0.2s ease;
}

.like-button:hover, .dislike-button:hover {
    background-color: #444;
}

.like-button span, .dislike-button span {
    font-size: 1.25rem; /* 20px */
    color: #888;
}

.like-button.active span {
    color: #4caf50; /* Green color for like */
}

.dislike-button.active span {
    color: #f44336; /* Red color for dislike */
}

/* Responsive Design with Media Queries */

/* Large devices (desktops, 1200px and up) */
@media (max-width: 75rem) { /* 1200px */
    .sidebar {
        width: 15rem; /* 240px */
    }

    .circular-button {
        width: 2.8125rem; /* 45px */
        height: 2.8125rem; /* 45px */
        font-size: 1.25rem; /* 20px */
    }
}

/* Medium devices (tablets, 992px and up) */
@media (max-width: 62rem) { /* 992px */
    .chat-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        padding: 0.625rem; /* 10px */
    }

    .chat-box {
        padding: 0.9375rem; /* 15px */
    }

    .suggestion-list {
        flex-direction: column;
    }

    .circular-button {
        width: 2.5rem; /* 40px */
        height: 2.5rem; /* 40px */
        font-size: 1.125rem; /* 18px */
    }

    .input-wrapper {
        padding: 0 0.625rem; /* 10px */
    }

    .assistant-heading {
        font-size: 1.375rem; /* 22px */
    }

    .action-buttons {
        gap: 0.3125rem; /* 5px */
        padding-right: 0.625rem; /* 10px */
    }
}

/* Small devices (landscape phones, 768px and up) */
@media (max-width: 48rem) { /* 768px */
    .chat-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        flex-direction: row;
        padding: 0.625rem; /* 10px */
    }

    .chat-box {
        padding: 0.625rem; /* 10px */
    }

    .assistant-heading {
        font-size: 1.25rem; /* 20px */
    }

    .suggestion-list {
        flex-direction: column;
        align-items: center;
    }

    .suggestion {
        min-width: 100%;
        max-width: 100%;
    }

    .circular-button {
        width: 2.1875rem; /* 35px */
        height: 2.1875rem; /* 35px */
        font-size: 1rem; /* 16px */
    }

    .action-buttons {
        gap: 0.3125rem; /* 5px */
        padding-right: 0.625rem; /* 10px */
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 36rem) { /* 576px */
    .chat-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0.5rem; /* 8px */
    }

    .chat-box {
        padding: 0.5rem; /* 8px */
        max-height: calc(100% - 3.75rem); /* 60px */
        overflow-y: auto;
    }

    .assistant-heading {
        font-size: 1.125rem; /* 18px */
    }

    .intro-text {
        font-size: 0.875rem; /* 14px */
        padding: 0.625rem; /* 10px */
        margin: 0 0.3125rem 0 0; /* 0 5px 0 0 */
    }

    .suggestion-list {
        flex-direction: column;
        align-items: center;
    }

    .suggestion {
        min-width: 100%;
        max-width: 100%;
    }

    .suggestion .text {
        font-size: 0.875rem; /* 14px */
    }

    .circular-button {
        width: 1.5625rem; /* 25px */
        height: 1.5625rem; /* 25px */
        font-size: 0.75rem; /* 12px */
        margin: 0;
    }

    .input-wrapper {
        flex-grow: 0.7;
        padding: 0 0.375rem; /* 6px */
    }

    .typing-area {
        padding: 0.25rem; /* 4px */
        gap: 0.125rem; /* 2px */
        display: flex;
        align-items: center;
    }

    .typing-input {
        font-size: 0.75rem; /* 12px */
    }

    .action-buttons {
        gap: 0.3125rem; /* 5px */
        padding-right: 0.625rem; /* 10px */
    }
}

/* Extra extra small devices (very small portrait phones, less than 370px) */
@media (max-width: 23.125rem) { /* 370px */
    .chat-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0.375rem; /* 6px */
    }

    .chat-box {
        padding: 0.375rem; /* 6px */
        max-height: calc(100% - 3.125rem); /* 50px */
        overflow-y: auto;
    }

    .assistant-heading {
        font-size: 1rem; /* 16px */
    }

    .intro-text {
        font-size: 0.75rem; /* 12px */
        padding: 0.5rem; /* 8px */
        margin: 0 0.3125rem 0 0; /* 0 5px 0 0 */
    }

    .suggestion-list {
        flex-direction: column;
        align-items: center;
    }

    .suggestion {
        min-width: 100%;
        max-width: 100%;
        padding: 0.625rem; /* 10px */
        font-size: 0.875rem; /* 14px */
    }

    .suggestion .text {
        font-size: 0.75rem; /* 12px */
    }

    .circular-button {
        width: 1.25rem; /* 20px */
        height: 1.25rem; /* 20px */
        font-size: 0.625rem; /* 10px */
        margin: 0;
    }

    .input-wrapper {
        flex-grow: 0.5;
        padding: 0 0.25rem; /* 4px */
    }

    .typing-area {
        padding: 0.1875rem; /* 3px */
        gap: 0.0625rem; /* 1px */
        display: flex;
        align-items: center;
    }

    .typing-input {
        font-size: 0.5625rem; /* 9px */
    }

    .action-buttons {
        gap: 0.3125rem; /* 5px */
        padding-right: 0.625rem; /* 10px */
    }
}

/* Extra extra small devices (very small portrait phones, less than 330px) */
@media (max-width: 20.625rem) { /* 330px */
    .chat-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0.25rem; /* 4px */
    }

    .chat-box {
        padding: 0.25rem; /* 4px */
        max-height: calc(100% - 2.8125rem); /* 45px */
        overflow-y: auto;
    }

    .assistant-heading {
        font-size: 0.875rem; /* 14px */
    }

    .intro-text {
        font-size: 0.625rem; /* 10px */
        padding: 0.375rem; /* 6px */
        margin: 0 0.3125rem 0 0; /* 0 5px 0 0 */
    }

    .suggestion-list {
        flex-direction: column;
        align-items: center;
    }

    .suggestion {
        min-width: 100%;
        max-width: 100%;
        padding: 0.5rem; /* 8px */
        font-size: 0.75rem; /* 12px */
    }

    .suggestion .text {
        font-size: 0.625rem; /* 10px */
    }

    .circular-button {
        width: 0.75rem; /* 12px */
        height: 0.75rem; /* 12px */
        font-size: 0.375rem; /* 6px */
        margin: 0;
    }

    .input-wrapper {
        flex-grow: 0.5;
        padding: 0 0.1875rem; /* 3px */
    }

    .typing-area {
        padding: 0.125rem; /* 2px */
        gap: 0.0625rem; /* 1px */
        display: flex;
        align-items: center;
    }

    .typing-input {
        font-size: 0.5rem; /* 8px */
    }

    .action-buttons {
        gap: 0.1875rem; /* 3px */
    }
}

/* Ultra small devices (ultra small portrait phones, less than 300px) */
@media (max-width: 18.75rem) { /* 300px */
    .chat-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0.1875rem; /* 3px */
    }

    .chat-box {
        padding: 0.1875rem; /* 3px */
        max-height: calc(100% - 2.5rem); /* 40px */
        overflow-y: auto;
    }

    .intro-text {
        font-size: 0.5rem; /* 8px */
        padding: 0.25rem; /* 4px */
        margin: 0 0.3125rem 0 0; /* 0 5px 0 0 */
    }

    .suggestion-list {
        flex-direction: column;
        align-items: center;
    }

    .suggestion {
        min-width: 100%;
        max-width: 100%;
        padding: 0.375rem; /* 6px */
        font-size: 0.625rem; /* 10px */
    }

    .suggestion .text {
        font-size: 0.5rem; /* 8px */
    }

    .circular-button {
        width: 0.625rem; /* 10px */
        height: 0.625rem; /* 10px */
        font-size: 0.25rem; /* 4px */
        margin: 0;
    }

    .input-wrapper {
        flex-grow: 0.5;
        padding: 0 0.125rem; /* 2px */
    }

    .typing-area {
        padding: 0.0625rem; /* 1px */
        gap: 0.0625rem; /* 1px */
        display: flex;
        align-items: center;
    }

    .typing-input {
        font-size: 0.4375rem; /* 7px */
    }

    .action-buttons {
        gap: 0.1875rem; /* 3px */
    }

    .assistant-heading{
        font-size: 1rem; /* 16px */
    }
}

/* Height-based Media Queries */

/* Viewport height between 801px and 1000px */
@media (max-height: 62.5rem) and (min-height: 50.0625rem) { /* 1000px and 801px */
    .chat-container {
        max-height: 100%;
    }

    .chat-box {
        max-height: 100%;
        padding: 0.9375rem; /* 15px */
    }

    .typing-area {
        padding: 0.625rem; /* 10px */
        gap: 0.3125rem; /* 5px */
    }

    .circular-button {
        width: 2.5rem; /* 40px */
        height: 2.5rem; /* 40px */
        font-size: 1.125rem; /* 18px */
    }
}

/* Viewport height between 601px and 800px */
@media (max-height: 50rem) and (min-height: 37.5625rem) { /* 800px and 601px */
    .chat-container {
        max-height: 100%;
    }

    .chat-box {
        max-height: 100%;
        padding: 0.625rem; /* 10px */
        overflow-y: auto;
    }

    .typing-area {
        padding: 0.5rem; /* 8px */
        gap: 0.3125rem; /* 5px */
    }

    .circular-button {
        width: 2.1875rem; /* 35px */
        height: 2.1875rem; /* 35px */
        font-size: 1rem; /* 16px */
    }

    .assistant-heading {
        font-size: 1.25rem; /* 20px */
    }
}

/* Viewport height between 401px and 600px */
@media (max-height: 37.5rem) and (min-height: 25.0625rem) { /* 600px and 401px */
    .chat-container {
        max-height: 100%;
    }

    .chat-box {
        max-height: 100%;
        padding: 0.5rem; /* 8px */
        overflow-y: auto;
    }

    .typing-area {
        padding: 0.3125rem; /* 5px */
        gap: 0.3125rem; /* 5px */
    }

    .circular-button {
        width: 1.875rem; /* 30px */
        height: 1.875rem; /* 30px */
        font-size: 0.875rem; /* 14px */
    }

    .assistant-heading {
        font-size: 1.125rem; /* 18px */
    }
}

/* Viewport height below 400px */
@media (max-height: 25rem) { /* 400px */
    .chat-container {
        max-height: 100%;
    }

    .chat-box {
        max-height: 100%;
        padding: 0.3125rem; /* 5px */
        overflow-y: auto;
    }

    .typing-area {
        padding: 0.1875rem; /* 3px */
        gap: 0.1875rem; /* 3px */
    }

    .circular-button {
        width: 1.5625rem; /* 25px */
        height: 1.5625rem; /* 25px */
        font-size: 0.75rem; /* 12px */
    }

    .assistant-heading {
        font-size: 1rem; /* 16px */
    }
}

/* Sidebar Toggle Button */
.sidebar-toggle-button {
    position: absolute;
    top: 0.3125rem; /* 5px */
    left: 0;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 1.875rem; /* 30px */
    cursor: pointer;
    z-index: 1000;
}

/* Sidebar hidden for smaller screens */
.sidebar-hidden .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.sidebar-visible .sidebar {
    transform: translateX(0);
    transition: transform 0.3s ease;
}

/* Media Queries */
@media (max-width: 62rem) { /* 992px */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        z-index: 100;
        background-color: #2c2c2c;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 16.25rem; /* 260px */
    }

    .sidebar-toggle-button {
        display: block;
    }

    .chat-box {
        margin-left: 0;
        padding-left: 0.9375rem; /* 15px */
    }

    .chat-container.sidebar-hidden .sidebar {
        display: none;
    }

    .chat-container.sidebar-visible .sidebar {
        display: flex;
    }

    .chat-container.sidebar-hidden .chat-box {
        margin-left: 0;
    }

    .chat-container.sidebar-visible .chat-box {
        margin-left: 16.25rem; /* 260px */
    }
}

@media (max-width: 48rem) { /* 768px */
    .chat-container.sidebar-visible .sidebar {
        transform: translateX(0);
    }

    .chat-container.sidebar-hidden .sidebar {
        transform: translateX(-100%);
    }

    .chat-box {
        margin-left: 0;
    }

    .sidebar-toggle-button {
        display: block;
    }
}

/* Extra CSS */
.sidebar-hidden .sidebar {
    display: none;
}

.sidebar-hidden .chat-box {
    width: 100%;
}




/* Typing Area */
.typing-area {
    position: sticky;
    bottom: 0.7rem; /* Space for footer */
    z-index: 100; /* Above the chat box */
    background-color: #1e1e1e;
    padding: 0.9375rem; /* 15px */
    display: flex;
    align-items: center;
    gap: 0.625rem; /* 10px */
    border-top: none;
}

/* Footer - Terms and Conditions Link */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.7rem; /* Fixed footer height */
    text-align: center;
    background-color: #1e1e1e;
    color: white;
    padding: 0.5rem 0; /* Space within the footer */
    z-index: 1000; /* Above other elements */
    line-height: 0rem;
    font-size: 0.9rem;
}

.light-mode footer {
    background-color: white;
}

.footer a {
    color: #4caf50;
    text-decoration: none;
}

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

/* Modal - Terms and Conditions Popup */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem; /* Rounded corners */
    width: 90%; /* Responsive width */
    max-width: 600px; /* Maximum width */
    color: #333333; /* Text color */
    text-align: left;
    position: relative;
    overflow-y: auto; /* Scroll if modal content is too long */
    max-height: 80vh; /* Ensure modal doesn't exceed screen height */
}

.modal-content h2 {
    margin-top: 0;
}

.close-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem; /* Larger close button */
    cursor: pointer;
    color: #333;
}

.close-button:hover {
    color: #f44336; /* Highlight color on hover */
}


@media (max-width: 768px) {
    .typing-area {
        padding: 0.625rem; /* Reduce padding for smaller screens */
        gap: 0.5rem; /* Adjust gap */
    }

    .footer {
        height: 0.6rem; /* Slightly reduce height */
        font-size: 0.8rem; /* Smaller footer text */
        line-height: 0rem;
    }

    .footer a {
        font-size: 0.8rem; /* Smaller text size for links */
    }

    .modal-content {
        width: 95%; /* Adjust modal width for smaller screens */
        max-width: 500px; /* Adjust maximum width */
        padding: 1rem; /* Reduce padding */
    }

    .close-button {
        font-size: 1.25rem; /* Reduce size for close button */
    }
}

/* For devices with a width of 576px or less */
@media (max-width: 576px) {
    .typing-area {
        padding: 0.5rem; /* Further reduce padding */
        gap: 0.4rem; /* Narrower gap */
    }

    .footer {
        height: 0.5rem; /* Further reduce height */
        font-size: 0.6rem; /* Smaller footer text */
        line-height: 0rem;
    }

    .footer a {
        font-size: 0.6rem; /* Smaller text size for links */
    }

    .modal-content {
        width: 100%; /* Full width for very small screens */
        max-width: 450px; /* Further reduce maximum width */
        padding: 0.8rem; /* Reduce padding */
    }

    .close-button {
        font-size: 1rem; /* Further reduce size for close button */
    }
}

/* For devices with a width of 375px or less */
@media (max-width: 375px) {
    .typing-area {
        padding: 0.4rem; /* Reduce padding further */
        gap: 0.3rem; /* Narrower gap */
    }

    .footer {
        height: 0.4rem; /* Further reduce footer height */
        font-size: 0.5rem; /* Smaller footer text */
        line-height: 0rem;
    }

    .footer a {
        font-size: 0.5rem; /* Adjust text size for links */
    }

    .modal-content {
        width: 100%; /* Ensure it uses full width */
        max-width: 400px; /* Adjust max width */
        padding: 0.7rem; /* Reduce padding further */
    }

    .close-button {
        font-size: 0.9rem; /* Small close button */
    }
}

/* For devices with a height of 400px or less (very small screens) */
@media (max-height: 400px) {
    .modal-content {
        max-height: 70vh; /* Reduce modal height */
    }

    .footer {
        font-size: 0.6rem; /* Adjust footer text size */
    }

    .footer a {
        font-size: 0.6rem; /* Adjust link size */
    }
}

/* Center the entire landing container */
.landing-container {
    max-width: 900px; /* Limit the width of the container */
    margin: 0 auto; /* Center horizontally */
    padding: 2rem 1rem; /* Add padding for top and sides */
    text-align: left; /* Align text to the left */
    box-sizing: border-box; /* Include padding in dimensions */
    position: relative; /* Ensure content stays in flow */
    z-index: 1; /* Ensure content is above background elements */
    overflow-y: auto; /* Allow vertical scrolling */
    height: 100%; /* Ensure it takes the full viewport height */
}



/* Styling for the <h1> Heading */
.landing-container h1 {
    font-size: 2.5rem; /* Default font size */
    color: #ffffff; /* White text color */
    margin: 1.5rem auto; /* Add space above and below */
    text-align: center; /* Center-align the heading */
    line-height: 1.2; /* Adjust spacing between lines */
    word-wrap: break-word; /* Handle long text wrapping */
    z-index: 2; /* Ensure it's above other content */
}

/* Terms and Conditions */
.terms-conditions {
    margin: 1rem 0; /* Balanced spacing above and below */
    padding: 0; /* Remove unnecessary padding */
    color: #cccccc; /* Softer text color for readability */
    font-size: 1rem; /* Standard font size */
    line-height: 1.8; /* Increase line spacing for readability */
    max-width: 800px; /* Limit the width for better focus */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
}

.terms-conditions h2 {
    font-size: 1.8rem; /* Larger heading size */
    margin-bottom: 1rem; /* Space below heading */
    color: #ffffff; /* White color for contrast */
    text-align: center; /* Center align the heading */
}

.terms-conditions p {
    margin-bottom: 1.5rem; /* Add space below paragraphs */
}

.terms-conditions ol {
    margin: 1rem 0; /* Add spacing above and below the list */
    padding-left: 1.5rem; /* Indent the list */
}

.terms-conditions ol li {
    margin-bottom: 1rem; /* Add space between list items */
}

.terms-conditions ul {
    padding-left: 1.5rem; /* Indent bullet points */
    margin-top: 0.5rem; /* Add space above bullet points */
}

.terms-conditions ul li {
    margin-bottom: 0.5rem; /* Add space between bullet points */
}

.terms-conditions a {
    color: #4caf50; /* Green color for links */
    text-decoration: none; /* No underline by default */
}

.terms-conditions a:hover {
    text-decoration: underline; /* Add underline on hover */
}

/* Spacing for Checkbox and Button */
.landing-container label {
    margin-top: 1.5rem; /* Add spacing above the checkbox */
    display: block; /* Ensure the label is on its own line */
    font-size: 1rem;
    color: #cccccc;
}

#proceedButton {
    margin-top: 1rem; /* Add spacing above the button */
    font-size: 1rem;
    padding: 0.5rem 1.5rem; /* Add padding for better appearance */
    background-color: #4caf50; /* Green background for the button */
    color: #ffffff; /* White text */
    border: none; /* Remove border */
    border-radius: 0.25rem; /* Add slight rounding */
    cursor: pointer;
}

#proceedButton:disabled {
    background-color: #888888; /* Grey background when disabled */
    cursor: not-allowed;
}

/* Footer Styling */
.footer {
    position: fixed; /* Stay at the bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e; /* Dark background */
    color: #cccccc; /* Light text color */
    text-align: center;
    padding: 0.5rem 0; /* Add padding */
    z-index: 100; /* Ensure it's above most content */
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center align all links horizontally */
    gap: 2rem;
}

.footer a {
    color: #4caf50; /* Green text color for the link */
    text-decoration: none;
}

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

/* Responsive Adjustments */

/* For tablets (width <= 768px) */
@media (max-width: 768px) {
    .landing-container {
        padding: 3rem 1rem 2rem; /* Add sufficient padding for smaller screens */
    }

    .landing-container h1 {
        font-size: 2rem; /* Smaller font size for tablets */
        margin: 1.5rem auto; /* Ensure space above and below */
    }

    .terms-conditions h2 {
        font-size: 1.5rem; /* Slightly smaller heading size */
        margin-bottom: 1rem; /* Maintain spacing */
    }

    .terms-conditions {
        font-size: 0.95rem; /* Slightly smaller font size */
        line-height: 1.6; /* Adjust line height for smaller screens */
        padding: 0 1rem; /* Add padding on smaller screens */
    }

    #proceedButton {
        font-size: 0.9rem; /* Slightly smaller button text */
        padding: 0.4rem 1.2rem; /* Adjust padding */
    }
}

/* For mobile devices (width <= 576px) */
@media (max-width: 576px) {
    .landing-container {
        padding: 3rem 0.5rem 2rem; /* Add tighter padding for smaller screens */
    }

    .landing-container h1 {
        font-size: 1.8rem; /* Smaller font size for mobile */
        margin: 1.2rem auto; /* Adjust spacing */
        line-height: 1.3; /* Adjust line height */
    }

    .terms-conditions h2 {
        font-size: 1.3rem; /* Smaller heading size */
        margin-bottom: 1rem; /* Adjust spacing */
    }

    .terms-conditions {
        font-size: 0.9rem; /* Smaller text for mobile */
        line-height: 1.5; /* Reduce line height for compactness */
    }

    #proceedButton {
        font-size: 0.85rem; /* Smaller button text */
        padding: 0.3rem 1rem; /* Compact padding */
    }
}

/* For very small devices (width <= 375px) */
@media (max-width: 375px) {
    .landing-container h1 {
        font-size: 1.5rem; /* Compact font size */
        margin: 1rem auto; /* Reduce margin slightly */
    }

    .terms-conditions h2 {
        font-size: 1.2rem; /* Smaller heading */
    }

    .terms-conditions {
        font-size: 0.85rem; /* Smaller text */
        line-height: 1.4; /* Reduce line height for tight spaces */
    }

    .landing-container {
        padding: 1.5rem 0.3rem 1rem; /* Minimal padding for very small devices */
    }

    #proceedButton {
        font-size: 0.8rem; /* Small button text */
        padding: 0.2rem 0.8rem; /* Tight button padding */
    }
}
