/* --- JLCELL PREMIUM UI --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --bg-dark: #121212;
    --glass-bg: rgba(255, 255, 255, 0.05);
}

#aiChatContainer {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    z-index: 1000;
    transition: all 0.3s ease;
}

#aiChatContainer.hidden {
    display: none;
}

.ai-chat-widget {
    background: #1e1e1e;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ai-chat-header {
    background: #252525;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ai-chat-title {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.ai-chat-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message-bot, .ai-message-user {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.ai-message-bot {
    background: #333;
    color: #fff;
    align-self: flex-start;
}

.ai-message-user {
    background: #007bff;
    color: #fff;
    align-self: flex-end;
}

.ai-chat-input-area {
    padding: 15px;
    background: #252525;
    display: flex;
    gap: 10px;
}

.ai-chat-input {
    flex: 1;
    background: #333;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 8px 12px;
    color: #fff;
}

.ai-chat-send {
    background: #007bff;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
}

.ai-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #007bff;
    border-radius: 50%;
    border: none;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    z-index: 999;
}

/* --- BOTÃO WHATSAPP FLUTUANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* --- CARD DE CONFIRMAÇÃO --- */
.ai-confirm-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border: 2px solid #007bff;
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
    color: #fff;
    animation: slideIn 0.3s ease;
}

.ai-confirm-header {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
    text-align: center;
}

.ai-confirm-summary p {
    margin: 5px 0;
    font-size: 13px;
}

.ai-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.ai-btn-confirm, .ai-btn-edit {
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.ai-btn-confirm {
    background: #007bff;
    color: #fff;
}

.ai-btn-edit {
    background: #444;
    color: #fff;
}

/* --- CARD DE PREÇO --- */
.price-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 15px;
    margin-top: 10px;
    color: #fff;
    text-align: center;
}

.price-title {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 10px;
}

.price-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-action {
    flex: 1;
    padding: 8px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-accept { background: #28a745; color: #fff; }
.btn-reject { background: #dc3545; color: #fff; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
