/* Matlakse AI Chat Widget — corporate theme */
.mlc-root { position: fixed; right: 24px; bottom: 24px; z-index: 99999; font-family: 'Open Sans', Arial, sans-serif; }
.mlc-bubble {
  width: 60px; height: 60px; border-radius: 50%; cursor: pointer; border: 0;
  background: #444444;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform .2s ease;
  position: relative;
}
.mlc-bubble:hover { transform: scale(1.05); }
.mlc-bubble svg { width: 26px; height: 26px; fill: #eab00f; }
.mlc-bubble::after {
  content:''; position:absolute; inset:-2px; border-radius:50%;
  border: 2px solid #eab00f; opacity:.6;
}

.mlc-panel {
  position: absolute; bottom: 80px; right: 0;
  width: 380px; max-width: calc(100vw - 32px);
  height: 600px; max-height: calc(100vh - 120px);
  background: #f7f7f7; border-radius: 18px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
  display: none; flex-direction: column;
  border: 1px solid #444444;
}
.mlc-panel.open { display: flex; }

.mlc-header {
  background: #444444;
  color: #fff; padding: 22px 22px 24px; position: relative;
  border-bottom: 3px solid #eab00f;
}
.mlc-close {
  position: absolute; top: 14px; right: 14px; background: none; border: 0;
  color: #eab00f; cursor: pointer; padding: 4px; opacity: .9;
}
.mlc-close:hover { opacity: 1; }
.mlc-welcome { font-size: 13px; font-weight: 600; margin: 0 0 12px;
  letter-spacing: .18em; text-transform: uppercase; color: #ffffff; }
.mlc-logo-card {
  background: #fff; border-radius: 10px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; min-height: 70px;
}
.mlc-logo-card img { max-height: 44px; max-width: 80%; width: auto; display: block; }
.mlc-intro { font-size: 13.5px; line-height: 1.5; margin: 0; color: #e8e8e8; }
.mlc-intro a { color: #eab00f; font-weight: 700; text-decoration: underline; }
.mlc-intro a:hover { color: #fff; }

.mlc-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #f7f7f7; }

.mlc-card {
  background: #fff; border-radius: 12px; padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #ececec;
}
.mlc-card-title { font-size: 14px; font-weight: 700; color: #444444; margin: 0 0 12px;
  letter-spacing: .04em; text-transform: uppercase; }

.mlc-search { position: relative; }
.mlc-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: #8a8a8a; }
.mlc-search input {
  width: 100%; border: 1px solid #dcdcdc; border-radius: 999px;
  padding: 11px 14px 11px 40px; font-size: 14px; outline: none;
  font-family: inherit; background: #fff; color: #444444;
}
.mlc-search input:focus { border-color: #eab00f; box-shadow: 0 0 0 3px rgba(234,176,15,.15); }

.mlc-newconv { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.mlc-newconv:hover { border-color: #eab00f; }
.mlc-newconv-text .t1 { font-size: 15px; font-weight: 700; color: #444444; }
.mlc-newconv-text .t2 { font-size: 12.5px; color: #6b6b6b; margin-top: 2px; }
.mlc-newconv .mlc-send-mini {
  width: 38px; height: 38px; border-radius: 50%;
  background: #eab00f; display:flex; align-items:center; justify-content:center;
}
.mlc-newconv .mlc-send-mini svg { width: 16px; height: 16px; fill: #444444; }

.mlc-emailcard { display: flex; align-items: center; gap: 14px; cursor: pointer; border-left: 4px solid #eab00f; }
.mlc-emailcard:hover { border-color: #eab00f; background: #fffbeb; }
.mlc-emailcard svg { width: 24px; height: 24px; fill: #eab00f; flex-shrink: 0; }
.mlc-emailcard .mlc-email-text .t1 { font-size: 15px; font-weight: 700; color: #444444; }
.mlc-emailcard .mlc-email-text .t2 { font-size: 13px; color: #eab00f; font-weight: 700; margin-top: 2px; }

.mlc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mlc-chip {
  border: 1px solid #dcdcdc; background: #fff; border-radius: 999px;
  padding: 8px 14px; font-size: 12.5px; color: #444444; cursor: pointer;
  font-family: inherit; transition: all .15s; text-align: left;
}
.mlc-chip:hover { border-color: #eab00f; background: #fffbeb; color: #444444; }

/* Conversation view */
.mlc-conv { display: none; flex: 1; flex-direction: column; background: #f7f7f7; }
.mlc-panel.chat-mode .mlc-body { display: none; }
.mlc-panel.chat-mode .mlc-conv { display: flex; }
.mlc-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.mlc-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.mlc-msg.user { align-self: flex-end; background: #eab00f; color: #444444; border-bottom-right-radius: 4px; font-weight: 600; }
.mlc-msg.bot { align-self: flex-start; background: #fff; color: #444444; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border:1px solid #ececec; }
.mlc-msg.bot a { color: #444444; font-weight: 700; border-bottom: 2px solid #eab00f; text-decoration: none; }
.mlc-msg.bot a:hover { color: #eab00f; }
.mlc-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.mlc-typing span { width: 6px; height: 6px; background: #eab00f; border-radius: 50%; animation: mlc-bounce 1.2s infinite; }
.mlc-typing span:nth-child(2) { animation-delay: .15s; }
.mlc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes mlc-bounce { 0%,80%,100%{ transform: translateY(0); opacity:.4 } 40%{ transform: translateY(-4px); opacity:1 } }

.mlc-composer { padding: 10px 12px; background: #fff; border-top: 1px solid #ececef; display: flex; gap: 8px; align-items: center; }
.mlc-composer input {
  flex: 1; border: 1px solid #dcdcdc; border-radius: 999px;
  padding: 10px 14px; font-size: 14px; outline: none; font-family: inherit; color:#444444;
}
.mlc-composer input:focus { border-color: #eab00f; box-shadow: 0 0 0 3px rgba(234,176,15,.15); }
.mlc-send {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #eab00f;
  display: flex; align-items: center; justify-content: center;
}
.mlc-send:hover { background: #d49d09; }
.mlc-send svg { width: 16px; height: 16px; fill: #444444; }

.mlc-nav {
  display: flex; background: #444444; border-top: 1px solid #000;
}
.mlc-nav button {
  flex: 1; background: none; border: 0; cursor: pointer;
  padding: 12px; display: flex; align-items: center; justify-content: center;
  color: #999; border-top: 3px solid transparent;
}
.mlc-nav button:hover { color: #eab00f; }
.mlc-nav button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.mlc-nav button.active { color: #eab00f; border-top-color: #eab00f; }

@media (max-width: 480px) {
  .mlc-panel { width: calc(100vw - 24px); height: calc(100vh - 100px); right: -12px; }
}
