body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #181a20;
    color: #eee;
}
/*.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #23262f;
    padding: 0.75rem 1.2rem;
    position: relative;
    z-index: 10;
} 
.logo {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin-left: 1rem;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    transition: background 0.2s;
}
.nav-links a:hover {
    background: #3b3f51;
}
.user-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
}
/* Add to ai-demo.css */
.user-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}
.user-avatar-name {
    font-size: 1rem;
    color: #fff;
    vertical-align: middle;
}

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #23262f;
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: 0 2px 8px #0002;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}
.ai-main {
    display: flex;
    height: calc(100vh - 56px);
}
.ai-aside {
    width: 220px;
    background: #23262f;
    padding: 1rem;
    border-right: 1px solid #222;
}
.ai-aside h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #f5f5f5;
}
.ai-models-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.model-btn {
    background: #2a2d3a;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    transition: background 0.2s;
}
.model-btn.selected,
.model-btn:hover {
    background: #3b3f51;
}
.ai-chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}
.ai-messages-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ai-message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.ai-message.user .ai-message-avatar {
    background: #3b3f51;
}
.ai-message.ai .ai-message-avatar {
    background: #2a2d3a;
}
.ai-message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #23262f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.ai-message-content {
    background: #23262f;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    max-width: 500px;
    word-break: break-word;
}
.ai-chat-input-row {
    display: flex;
    gap: 0.5rem;
}
#ai-chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: none;
    background: #23262f;
    color: #fff;
    font-size: 1rem;
}
#ai-send-btn {
    background: #3b3f51;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
#ai-send-btn:hover {
    background: #4e5370;
}
@media (max-width: 800px) {
    .ai-main {
        flex-direction: column;
    }
    .ai-aside {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #222;
    }
    .ai-chat-section {
        padding: 1rem;
    }
}