:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.deepseek-ai-chat-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.deepseek-chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.deepseek-chat-avatar {
    font-size: 24px;
}

.deepseek-chat-title {
    font-weight: 600;
    font-size: 18px;
}

.deepseek-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.deepseek-message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    line-height: 1.5;
}

.deepseek-user-message {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.deepseek-ai-message {
    align-self: flex-start;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 5px;
}

.deepseek-chat-input {
    display: flex;
    padding: 15px;
    background-color: white;
    border-top: 1px solid #e0e0e0;
}

.deepseek-message-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 16px;
}

.deepseek-send-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.deepseek-send-button:hover {
    background-color: #3a5ad9;
}

.deepseek-typing-indicator {
    display: flex;
    padding: 12px 16px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 18px;
    align-self: flex-start;
    margin: 0 20px 15px;
    display: none;
}

.deepseek-typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 3px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}

.deepseek-typing-indicator span:nth-of-type(1) {
    animation: deepseekTyping 1s infinite;
}

.deepseek-typing-indicator span:nth-of-type(2) {
    animation: deepseekTyping 1s 0.33s infinite;
}

.deepseek-typing-indicator span:nth-of-type(3) {
    animation: deepseekTyping 1s 0.66s infinite;
}

@keyframes deepseekTyping {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .deepseek-ai-chat-container {
        height: 500px;
    }
    
    .deepseek-message {
        max-width: 90%;
    }
}