#tanvir-chatbot-button {
    position: fixed; right: 25px; bottom: 25px;
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    cursor: pointer; z-index: 99999;
    display: flex; align-items:center; justify-content:center;
    transition: transform 0.2s;
}
#tanvir-chatbot-button:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.tanvir-chat-popup .swal2-html-container { margin: 0 !important; overflow: hidden; font-family: 'Segoe UI', sans-serif; }
.tanvir-chat-popup { border-radius: 12px !important; }
#tanvir-chat-window { height: 480px; background: #fff; position: relative; }

#lumi-view-chat, #lumi-view-email, #lumi-view-summary { display: flex; flex-direction: column; height: 100%; }

#tanvir-chat-history {
    flex: 1; overflow-y: auto; padding: 15px; background: #fff;
    display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.tanvir-chat-message { max-width: 85%; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; }
.tanvir-chat-message.user { align-self: flex-end; background: #2563eb; color: #fff; border-bottom-right-radius: 2px; }
.tanvir-chat-message.bot { align-self: flex-start; background: #f3f4f6; border: 1px solid #e5e7eb; color: #1f2937; border-bottom-left-radius: 2px; }
.tanvir-chat-message p { margin: 0 0 5px; }
.tanvir-chat-message a { color: #2563eb; text-decoration: underline; font-weight: bold; }

#tanvir-chat-loading { padding: 5px; font-size: 12px; color: #6b7280; font-style: italic; background:#fff; text-align: center; }

#tanvir-chat-controls { display: flex; padding: 10px; border-top: 1px solid #e5e7eb; gap: 8px; }
#tanvir-chat-input { flex: 1; padding: 10px; border: 1px solid #d1d5db; border-radius: 20px; outline: none; }
#tanvir-chat-send { background: #2563eb; color: #fff; border:none; width:40px; height:40px; border-radius:50%; cursor:pointer; }

.tanvir-chat-footer { padding: 10px; background: #f9fafb; border-top: 1px solid #e5e7eb; }

#lumi-view-email, #lumi-view-summary { padding: 20px; box-sizing: border-box; }
.summary-header { font-size: 18px; font-weight: bold; color: #111; margin-bottom: 5px; }
.summary-instr { font-size: 13px; color: #666; margin-bottom: 15px; background: #fff7ed; padding: 10px; border-left: 4px solid #f97316; border-radius: 4px; text-align: left;}

#editor-container { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.input-label { font-size: 12px; font-weight: bold; color: #555; text-align: left; }

#summary-service { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; box-sizing: border-box; font-weight: 600; }
#summary-details { width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; box-sizing: border-box; height: 120px; resize: none; font-family: inherit; }

#client-email-input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; outline: none; font-size: 16px; box-sizing: border-box; }
#client-email-input:focus { border-color: #2563eb; }

#summary-loader { color: #2563eb; font-weight: 600; margin-bottom: 10px; display:none; }

.summary-actions { display: flex; gap: 10px; margin-top: auto; }
.footer-btn { width: 100%; padding: 12px; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; transition: 0.2s; background: #2563eb; color: #fff; }
.footer-btn:hover { background: #1d4ed8; }
.footer-btn.secondary { background: #e5e7eb; color: #374151; width: 35%; }
.footer-btn.primary { background: #16a34a; }
.footer-btn:disabled { background: #ccc; cursor: not-allowed; }