@keyframes ai-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.ai-chat-section {
    margin: 30px 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ai-chat-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.ai-chat-header {
        background: #f2f2f2;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #d7d2ce;
}

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

.ai-chat-logo {
    background: #fc8517;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.15);
}

.ai-chat-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8b8686;
}

.ai-chat-title span {
        font-size: 14px;
    color: #464647;
    display: block;
    margin-top: 2px;
}

.ai-chat-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4CAF50;
    font-weight: bold;
}

.ai-chat-status-indicator {
    background: #4CAF50;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: ai-pulse 2s infinite;
}

.ai-chat-body {
    height: 350px;
    padding: 20px;
    overflow-y: auto;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-bottom: 1px solid #eee;
}

.ai-msg {
    max-width: 85%;
    font-size: 15px;
    line-height: 1.6;
}

.ai-msg.bot {
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 4px solid #2196F3;
    color: #333;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    align-self: flex-start;
}

.ai-msg.user {
    background: #2196F3;
    color: #ffffff;
    padding: 11px 15px;
    border-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    font-weight: 500;
    white-space: pre-wrap;
}

.ai-chat-footer {
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eaeaea;
}

#aiChatForm {
    display: flex;
    gap: 10px;
    margin: 0;
}

#aiChatInput {
    flex: 1;
    height: 42px;
    padding: 0 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    color: #333;
}

#aiChatBtn {
    background: #f98214;
    color: #ffffff;
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 1px 0 #f98214;
}

#aiChatBtn:disabled, #aiChatInput:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
