#tai-widget-button {
    position: fixed;
    z-index: 99999;
    background-color: #0284c7;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#tai-widget-button:hover {
    transform: scale(1.05);
    filter: brightness(0.95);
}

#tai-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

#tai-modal-container {
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    height: 520px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.tai-modal-header {
    background: #0284c7;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tai-modal-header h3 { margin: 0; font-size: 16px; color: #fff; }
#tai-close-modal { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

.tai-modal-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tai-msg { padding: 10px 14px; border-radius: 8px; font-size: 14px; max-width: 80%; line-height: 1.4; }
.ai-msg { background: #e2e8f0; color: #1e293b; align-self: flex-start; }
.user-msg { background: #0284c7; color: #ffffff; align-self: flex-end; }

.tai-modal-footer { padding: 12px; background: #fff; border-top: 1px solid #e2e8f0; }
.tai-input-group { display: flex; gap: 8px; margin-bottom: 10px; }
.tai-input-group input { flex: 1; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; outline: none; }
.tai-input-group button { background: #0284c7; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; }

.tai-wa-link { text-align: center; }
.tai-wa-link a { color: #16a34a; text-decoration: none; font-size: 13px; font-weight: bold; display: inline-flex; align-items: center; gap: 4px; }
.tai-wa-link a:hover { text-decoration: underline; }
