body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    margin: 0;
    overflow: hidden;
}
.top-bar {
    width: 100%;
    height: 100px;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
}
.sidebar {
    width: 250px;
    position: fixed;
    left: -250px;
    top: 0;
    height: 100vh;
    background: #343a40;
    padding-top: 20px;
    transition: left 0.3s;
    z-index: 1100;
}
.sidebar.open {
    left: 0;
}
.sidebar .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}
.chat-list {
    max-height: 90vh;
    overflow-y: auto;
    padding: 10px;
}
.chat-list a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #495057;
}
.chat-list a:hover {
    background: #495057;
}
.menu-btn {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    background: white;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Stile scrollbar sottile e simile a quella di Apple */
.chat-list::-webkit-scrollbar {
    width: 6px;
}
.chat-list::-webkit-scrollbar-track {
    background: transparent;
}
.chat-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}
.chat-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
}
.chat-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.chat-container {
    width: 100%;
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #f8f9fa;
    margin-top: 100px;
}
.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}
.chat-message {
    padding: 10px 15px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 75%;
}
.user-message {
    background: #007bff;
    color: white;
    align-self: flex-end;
}
.server-message {
    background: #e9ecef;
    color: black;
    align-self: flex-start;
}
.spinner {
    display: none;
    text-align: center;
    margin-top: 10px;
}
.input-area {
    display: flex;
    align-items: center;
    width: 60%;
    background: white;
    padding: 10px;
    transition: transform 0.3s ease-in-out;
    margin: auto;
}
.textarea-container {
    flex-grow: 1;
}
.textarea-container textarea {
    width: 100%;
    height: 4rem;
    resize: none;
}
.suggestions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.bottom-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 5px;
}