/* DipBlueTech AI Chat — widget */
.dbtc-root{--dbtc-color:#0b5ed7;--dbtc-wa:#25d366;position:fixed;bottom:22px;z-index:99999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5;color:#1f2937;direction:ltr}
.dbtc-root[dir=rtl]{direction:rtl}
.dbtc-pos-right{right:22px}
.dbtc-pos-left{left:22px}
.dbtc-root *{box-sizing:border-box}

/* Balon */
.dbtc-bubble{display:flex;align-items:center;gap:8px;height:56px;padding:0 18px 0 14px;border:0;border-radius:28px;background:var(--dbtc-color);color:#fff;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.22);transition:transform .2s,box-shadow .2s;font:inherit;font-weight:600}
.dbtc-bubble:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.28)}
.dbtc-bubble .dbtc-i-x{display:none}
.dbtc-opened .dbtc-bubble .dbtc-i-x{display:block}
.dbtc-opened .dbtc-bubble .dbtc-i-chat,.dbtc-opened .dbtc-bubble-label{display:none}
.dbtc-opened .dbtc-bubble{width:56px;padding:0;justify-content:center}

/* Pencere */
.dbtc-win{position:absolute;bottom:70px;width:380px;max-width:calc(100vw - 44px);height:560px;max-height:calc(100vh - 110px);background:#fff;border-radius:18px;box-shadow:0 16px 48px rgba(0,0,0,.24);display:flex;flex-direction:column;overflow:hidden;opacity:0;visibility:hidden;transform:translateY(16px) scale(.97);transition:opacity .22s,transform .22s,visibility .22s}
.dbtc-pos-right .dbtc-win{right:0}
.dbtc-pos-left .dbtc-win{left:0}
.dbtc-opened .dbtc-win{opacity:1;visibility:visible;transform:none}

.dbtc-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:var(--dbtc-color);color:#fff;flex-shrink:0}
.dbtc-head-l{display:flex;align-items:center;gap:10px;min-width:0}
.dbtc-avatar{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.2);flex-shrink:0}
.dbtc-title{font-weight:700;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dbtc-status{font-size:11px;opacity:.9;display:flex;align-items:center;gap:5px}
.dbtc-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#4ade80}
.dbtc-head-r{display:flex;gap:4px}
.dbtc-hbtn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;text-decoration:none;transition:background .15s}
.dbtc-hbtn:hover{background:rgba(255,255,255,.18)}

.dbtc-body{flex:1;overflow-y:auto;padding:16px 14px 8px;background:#f5f7fb;display:flex;flex-direction:column;gap:10px;scroll-behavior:smooth}
.dbtc-msg{display:flex;flex-direction:column;max-width:88%}
.dbtc-msg-bot{align-self:flex-start;align-items:flex-start}
.dbtc-msg-user{align-self:flex-end;align-items:flex-end}
.dbtc-root[dir=rtl] .dbtc-msg-bot{align-self:flex-end;align-items:flex-end}
.dbtc-root[dir=rtl] .dbtc-msg-user{align-self:flex-start;align-items:flex-start}
.dbtc-bubble-msg{padding:10px 14px;border-radius:16px;word-wrap:break-word;overflow-wrap:anywhere;white-space:normal}
.dbtc-msg-bot .dbtc-bubble-msg{background:#fff;border-bottom-left-radius:5px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.dbtc-msg-user .dbtc-bubble-msg{background:var(--dbtc-color);color:#fff;border-bottom-right-radius:5px}
.dbtc-bubble-msg[dir=rtl]{text-align:right}
.dbtc-bubble-msg a{color:inherit;text-decoration:underline}
.dbtc-bubble-msg .dbtc-li{display:block;padding-left:14px;position:relative}
.dbtc-bubble-msg .dbtc-li:before{content:"•";position:absolute;left:2px}
.dbtc-sources{margin-top:5px;display:flex;flex-wrap:wrap;gap:5px;font-size:11px;color:#6b7280;align-items:center}
.dbtc-sources a{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:2px 8px;color:#374151;text-decoration:none;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dbtc-sources a:hover{border-color:var(--dbtc-color);color:var(--dbtc-color)}
.dbtc-wa{margin-top:6px;background:#fff;border:1px solid #d1fae5;border-radius:12px;padding:10px 12px;max-width:100%}
.dbtc-wa p{margin:0 0 8px;font-size:13px;color:#374151}
.dbtc-wa-btn{display:inline-flex;align-items:center;gap:7px;background:var(--dbtc-wa);color:#fff!important;text-decoration:none!important;font-weight:600;padding:8px 14px;border-radius:20px;font-size:13px;transition:filter .15s}
.dbtc-wa-btn:hover{filter:brightness(.93)}
.dbtc-notice{align-self:center;font-size:11px;color:#6b7280;background:#e5e7eb;border-radius:10px;padding:4px 10px;text-align:center}

.dbtc-typing{display:flex;gap:4px;padding:4px 20px 8px;background:#f5f7fb;flex-shrink:0}
.dbtc-typing[hidden]{display:none!important}
.dbtc-typing span{width:7px;height:7px;border-radius:50%;background:#9ca3af;animation:dbtc-blink 1.2s infinite}
.dbtc-typing span:nth-child(2){animation-delay:.2s}
.dbtc-typing span:nth-child(3){animation-delay:.4s}
@keyframes dbtc-blink{0%,80%,100%{opacity:.3}40%{opacity:1}}

.dbtc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid #e5e7eb;background:#fff;flex-shrink:0}
.dbtc-input{flex:1;resize:none;border:1px solid #e5e7eb;border-radius:20px;padding:9px 14px;font:inherit;font-size:14px;line-height:1.4;max-height:110px;outline:none;background:#fff;color:#1f2937;margin:0;box-shadow:none}
.dbtc-input:focus{border-color:var(--dbtc-color)}
.dbtc-send{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--dbtc-color);color:#fff;cursor:pointer;flex-shrink:0;padding:0}
.dbtc-send:hover{filter:brightness(1.08)}
.dbtc-root[dir=rtl] .dbtc-send svg{transform:scaleX(-1)}
.dbtc-foot{display:flex;justify-content:space-between;align-items:center;padding:4px 14px 8px;background:#fff;font-size:11px;color:#9ca3af;flex-shrink:0}
.dbtc-end{border:0;background:none;color:#9ca3af;font:inherit;font-size:11px;cursor:pointer;padding:0;text-decoration:underline}
.dbtc-end:hover{color:#374151}

/* Gömülü (kısa kod) */
.dbtc-inline{position:static}
.dbtc-inline .dbtc-win{position:relative;bottom:auto;width:100%;max-width:100%;height:600px;opacity:1;visibility:visible;transform:none;box-shadow:0 4px 20px rgba(0,0,0,.1)}
.dbtc-inline .dbtc-close{display:none}

@media (max-width:480px){
	.dbtc-root{bottom:14px}
	.dbtc-pos-right{right:14px}.dbtc-pos-left{left:14px}
	.dbtc-win{position:fixed;left:0!important;right:0!important;top:0;bottom:0;width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0}
	.dbtc-opened .dbtc-bubble{display:none}
}
