body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.header {
    width: 100%;
    text-align: center;
    background-color: #f1f1f1;
    padding: 10px 0;
    position: absolute;
    top: 0;
    z-index: 1000;
}
.banner-image {
    max-width: 100%;
    height: auto;
}
.user-selection {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #e0e0e0;
    position: absolute;
    top: 60px;
    z-index: 1000;
}
.user-selection a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
}
.user-selection a:hover {
    color: #007bff;
}
.hamburger {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 70px;
    left: 10px;
    font-size: 24px;
    z-index: 1001;
}
.sidebar {
    width: 250px;
    background-color: #f6f6f6;
    border-right: 1px solid #ddd;
    padding: 10px;
    overflow-y: auto;
    position: absolute;
    top: 100px;
    height: calc(100vh - 100px);
}
.main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: absolute;
    top: 100px;
    left: 250px;
    width: calc(100% - 250px);
    height: calc(100vh - 100px);
}
.folder {
    cursor: pointer;
    padding: 5px;
    margin: 5px 0;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
}
.folder:hover {
    background-color: #e0e0e0;
}
.folder button {
    border: none;
    background: none;
    font-size: 14px;
    cursor: pointer;
    margin-left: 5px;
    padding: 0;
    line-height: 1;
}
.folder .add-btn {
    color: green;
}
.folder .del-btn {
    color: red;
}
.sub-items {
    display: none;
    padding-left: 20px;
}
.chat-item {
    cursor: pointer;
    padding: 5px;
    margin: 5px 0;
    border-radius: 4px;
}
.chat-item:hover {
    background-color: #d0d0d0;
}
.chat-content {
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    min-height: 100%;
}
.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}
.user-message {
    background-color: #dcf8c6;
    text-align: right;
}
.grok-message {
    background-color: #f1f1f1;
    text-align: left;
}
.new-chat {
    margin-bottom: 10px;
}
.error {
    color: red;
}
@media (max-width: 768px) {
    .header {
        position: static;
    }
    .user-selection {
        position: static;
    }
    .hamburger {
        display: block;
    }
    .sidebar {
        display: none;
        width: 200px;
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        padding-top: 50px;
    }
    .main {
        left: 0;
        width: 100%;
        top: 0;
        height: 100vh;
        padding-top: 120px;
    }
}