.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    max-height: calc(100vh - 2rem - 60px);
}

.chat-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(255, 0, 255, 0.1) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2), 0 0 40px rgba(255, 0, 255, 0.2);
}

#chat-container {
    flex-grow: 1;
    background-color: var(--chat-background);
    border-radius: 20px 20px 0 0;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: auto; /* Changed from 'hidden' to 'auto' */
    backdrop-filter: blur(10px);
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-right: 10px;
    margin-bottom: 10px;
}

#status-messages {
    font-style: italic;
    color: #ffa500;
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(255, 165, 0, 0.2);
    border-radius: 10px;
    margin-top: 10px;
    position: sticky;
    bottom: 0;
    z-index: 10;
    max-width: 80%;
    align-self: center;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.controls {
    background-color: var(--chat-background);
    border-radius: 0 0 20px 20px;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.toggle-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#chat-form {
    display: flex;
    gap: 1rem;
}

/* Custom scrollbar styles */
#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 4px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.5);
}