/* FTS Editable Hover Effects */
.fts_editable_trigger:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.08) 0%,
    rgba(255, 165, 0, 0.12) 100%
  );
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2),
    0 2px 8px rgba(255, 140, 0, 0.15);
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

.fts_editable_trigger:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3), 0 1px 4px rgba(255, 140, 0, 0.2);
}

.fts_editable {
  position: relative;
  display: inline-block;
}

.fts_editable:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 140, 0, 0.08) 0%,
    rgba(255, 165, 0, 0.12) 100%
  );
  box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
  border-radius: 4px;
}

/* Prevent link behavior for editable links */
a.fts_editable {
  pointer-events: none;
}

a.fts_editable .fts_editable_trigger {
  pointer-events: auto;
}

.language_switcher button {
  margin-top: 10px;
  color: white;
  border: none;
}



/**** AI CHATBOT ****/
.lion_chat_wrapper { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 20px 0; }
.chat_trigger { width: 100%; padding: 14px 20px; background: #0f172a; color: white; border: none; border-radius: 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s; }
.chat_trigger:active { scale: 0.98; }

.chat_window { margin-top: 12px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid #e2e8f0; display: flex; flex-direction: column; }
.chat_header { padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid #f1f5f9; font-size: 10px; color: #64748b; font-weight: 800; display: flex; justify-content: space-between; text-transform: uppercase; }

.chat_body { height: 400px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fdfdfd; }

/* PORUKE */
.msg { max-width: 85%; padding: 12px 16px; font-size: 14px; line-height: 1.4; border-radius: 18px; position: relative; }

/* Korisnik je sada LEVO */
.msg_user { 
    background: #f1f5f9; 
    color: #1e293b; 
    align-self: flex-start; 
    border-bottom-left-radius: 4px; 
}

/* AI Guide je sada DESNO */
.msg_bot { 
    background: #db3a34;
    color: white; 
    align-self: flex-end; 
    border-bottom-right-radius: 4px; 
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* SUGGESTIONS */
.suggestions { padding: 12px 16px; background: #fff; border-top: 1px solid #f1f5f9; }
.suggest_btn { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; padding: 8px 12px; border-radius: 10px; font-size: 11px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin: 4px 2px; }
.suggest_btn:hover { background: #2563eb; color: white; }

/* FOOTER */
.chat_footer { padding: 12px; background: white; border-top: 1px solid #f1f5f9; display: flex; gap: 8px; }
.chat_input { flex: 1; border: 1px solid #e2e8f0; background: #f8fafc; padding: 12px 14px; border-radius: 12px; outline: none; font-size: 14px; }
.chat_send { background: #2563eb; color: white; border: none; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* LOADING */
.dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: lb 1.4s infinite; margin: 0 2px; }
@keyframes lb { 0%, 100% { transform: scale(0.3); opacity: 0.3; } 50% { transform: scale(1); opacity: 1; } }
/**** AI CHATBOT END ****/