/* GLM-4 Chat Assistant Styles */
.glm-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-height: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glm-chat.minimized {
    height: 60px;
    overflow: hidden;
}

.glm-chat-header {
    padding: 16px 20px;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.glm-chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.glm-chat-header-left .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #d4af37;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glm-chat-header-left h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.glm-chat-header .minimize-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.glm-chat-header .minimize-btn:hover {
    opacity: 1;
}

.glm-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    max-height: 460px;
}

.glm-message {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
    animation: messageAppear 0.3s ease forwards;
}

@keyframes messageAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glm-message.assistant {
    padding-right: 20%;
}

.glm-message.user {
    padding-left: 20%;
}

.glm-message .content {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.glm-message.assistant .content {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
}

.glm-message.user .content {
    background: #1a1a1a;
    color: #fff;
    margin-left: auto;
}

.glm-chat-input {
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: center;
}

.glm-chat-input input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.glm-chat-input input:focus {
    border-color: #d4af37;
}

.glm-chat-input button {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.glm-chat-input button:hover {
    background: #333;
}

.glm-chat-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.glm-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    width: fit-content;
}

.glm-typing span {
    width: 4px;
    height: 4px;
    background: #666;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.glm-typing span:nth-child(2) { animation-delay: 0.2s; }
.glm-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .glm-chat {
        width: 92%;
        right: 4%;
        bottom: 10px;
        max-height: 580px;
    }

    .glm-chat-messages {
        max-height: 400px;
    }

    .glm-message.assistant {
        padding-right: 10%;
    }

    .glm-message.user {
        padding-left: 10%;
    }
} 