.chat-page {
    background: #000000;
}

.chat-page .video-background {
    display: none;
}

.top-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.top-panel-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-panel-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-button svg {
    width: 24px;
    height: 24px;
}

.chat-main-container {
    margin-top: 60px;
    height: calc(100vh - 60px);
    display: flex;
    background: #000000;
}

body#appBody #chatPage {
    display: none !important;
}

.chat-sidebar {
    width: 300px;
    background: #0d0d0d;
    border-right: 1px solid #333333;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #333333;
}



.new-chat-btn {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-family: inherit;
}

.new-chat-btn:hover {
    background: #2a2a2a;
    border-color: #555555;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-history::-webkit-scrollbar-track {
    background: #0d0d0d;
    border-radius: 3px;
}

.chat-history::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.chat-history::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.chat-item {
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-item:hover {
    background: #1a1a1a;
}

.chat-item.active {
    background: #1a1a1a;
    border: 1px solid #333333;
}

.chat-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-item .chat-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}



.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #000000;
    position: relative;
}

.chat-input-panel {
    position: fixed;
    bottom: 0;
    left: 300px;
    right: 0;
    background: transparent;
    z-index: 100;
    border-top: none;
    padding: 16px 20px;
    max-width: calc(100vw - 320px);
    box-sizing: border-box;
}

.chat-input-panel .relative {
    width: 100%;
    max-width: 100%;
}



.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 60px - 160px);
    max-height: calc(100vh - 60px - 160px);
    padding-bottom: 20px;
}

.chat-messages-container::-webkit-scrollbar {
    width: 8px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: #0d0d0d;
    border-radius: 4px;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.chat-messages-container {
    scrollbar-width: thin;
    scrollbar-color: #333333 #0d0d0d;
}

.chat-history {
    scrollbar-width: thin;
    scrollbar-color: #333333 #0d0d0d;
}

.message {
    display: flex;
    gap: 15px;
    max-width: 80%;
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.ai-message .message-avatar {
    background: transparent;
    border: none;
    padding: 0;
    width: 48px;
    height: 48px;
}

.ai-message .message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.user-message .message-avatar {
    background: #ffffff;
    color: #000000;
}

.message-content {
    flex: 1;
}

.ai-message .message-text {
    background: #0d0d0d;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 15px;
    color: #ffffff;
    line-height: 1.6;
}

.message-text {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 12px;
    padding: 15px;
    color: #ffffff;
    line-height: 1.6;
}

.user-message .message-text {
    background: #ffffff;
    color: #000000;
    border-color: #cccccc;
}

.message-text p {
    margin-bottom: 10px;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-text li {
    margin-bottom: 5px;
}



.typing-indicator {
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    padding: 10px 20px;
}

.typing-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 14px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666666;
}

.typing-indicator ~ .typing-indicator {
    display: none !important;
}





@media (max-width: 768px) {
    .chat-main-container {
        flex-direction: column;
    }
    
    .chat-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #333333;
    }
    
    .chat-main {
        height: calc(100vh - 260px);
    }
    
    .chat-input-panel {
        left: 0;
        right: 0;
        padding: 16px 20px;
        max-width: 100vw;
    }
    
    .chat-messages-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .typing-indicator {
        bottom: 120px;
    }
    
    .message {
        max-width: 95%;
    }
} 