/* ========= Mentora Base ========= */
:root{
  --mentora-blue: #1746B3;
  --mentora-blue-2: #3f6fd6;

  --ink: #0f172a;
  --muted: rgba(15,23,42,.70);
  --line: rgba(15,23,42,.22);

  --nav-h: 78px;        /* fallback dok se ne izmeri JS-om */
  --subnav-gap: 12px;
}

body{
  background-color: #f3f4f6;
  color: var(--ink);
  padding-top: calc(var(--nav-h) + 8px); /* ✅ više ti ne treba <div style="height:78px"> */
}

h1,h2,h3,h4,h5{ color: var(--ink); }
.text-muted{ color: var(--muted) !important; }

/* Navbar */
.mentora-navbar{
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.mentora-nav{
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1;
  font-size: 18px;
  background: linear-gradient(90deg,#2e52d2 0%, #8bc1ff 60%, #2e52d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Subnav */
.subnav{
  position: sticky;
  top: calc(var(--nav-h) + var(--subnav-gap));
  z-index: 1020;

  background: rgba(246,246,246,.92);
  backdrop-filter: blur(6px);

  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 12px auto 0;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.subnav .crumb{
  color: rgba(15,23,42,.68);
  font-weight: 600;
}
.subnav .crumb strong{ color: var(--ink); }

/* Form controls */
.form-control{
  border: 1px solid rgba(15,23,42,.22) !important;
  box-shadow: none !important;
}
.form-control:focus{
  border-color: rgba(23,70,179,.55) !important;
  box-shadow: 0 0 0 .25rem rgba(23,70,179,.15) !important;
}

/* Buttons */
.btn-primary{
  background: linear-gradient(135deg, var(--mentora-blue) 0%, var(--mentora-blue-2) 100%) !important;
  border: none !important;
}
.btn-outline-primary{
  border-color: rgba(23,70,179,.55) !important;
  color: var(--mentora-blue) !important;
}
.btn-outline-primary:hover{ background: rgba(23,70,179,.10) !important; }

/* ========= Chatbot widget ========= */
.bg-blue{
  background: linear-gradient(135deg, var(--mentora-blue) 0%, var(--mentora-blue-2) 100%);
}

#chatbot-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 1055;
}
#chatbot-overlay.show{
  opacity: 1;
  pointer-events: auto;
}

#chatbot-window{
  position: fixed;
  top: calc(var(--nav-h) + 12px);
  bottom: 20px;
  right: 20px;
  width: 410px;
  max-width: 95vw;

  z-index: 1060;
  border-radius: 16px;
  overflow: hidden;

  display: flex !important;
  flex-direction: column;

  opacity: 0;
  pointer-events: none;
  transform: translateX(120%);
  transition: transform .22s ease, opacity .22s ease;
}
#chatbot-window.open{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

#chatbot-window .card-body{
  flex: 1 1 auto;
  overflow-y: auto;
}

#chatbot-bar{
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 220px;
  cursor: pointer;
  z-index: 1065;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Header */
.chatbot-header{
  height: 56px;
  padding: .75rem 1rem;
}
.chat-status{
  font-size: .8rem;
  opacity: .85;
}
.chatbot-close{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Chips */
.chat-chips{ display:flex; flex-wrap:wrap; gap:.5rem; }
.chip{
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .9rem;
  cursor: pointer;
}
.chip:hover{ background: rgba(0,0,0,.04); }

/* Messages */
.chat-msg{
  max-width: 88%;
  padding: .55rem .8rem;
  border-radius: 16px;
  margin: .35rem 0;
  line-height: 1.35;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.chat-msg.user{
  margin-left: auto;
  background: rgba(13,110,253,.12);
  border: 1px solid rgba(13,110,253,.25);
}
.chat-msg.bot{
  margin-right: auto;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.08);
}

.typing-dots .dot{
  display:inline-block;
  animation: blink 1s infinite;
}
.typing-dots .dot:nth-child(2){ animation-delay:.15s; }
.typing-dots .dot:nth-child(3){ animation-delay:.3s; }
@keyframes blink{
  0%, 20% { opacity: .2; }
  50% { opacity: 1; }
  100% { opacity: .2; }
}

.chat-send-btn{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px){
  #chatbot-window{
    top: 0; bottom: 0; right: 0; left: 0;
    width: 100vw; max-width: 100vw;
    border-radius: 0;
  }
  #chatbot-bar{ width: 170px; right: 10px; }
}
@media (max-width: 480px){
  #chatbot-bar{ width: 150px; right: 10px; }
}

/* ========= Home (Premium) ========= */
.home-wrap{ max-width: 1100px; }

.subnav-premium{
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(15,23,42,.10) !important;
  box-shadow: 0 10px 28px rgba(15,23,42,.08) !important;
}
.subnav-premium .crumb{ color: rgba(15,23,42,.68) !important; }
.subnav-premium .crumb strong{ color: var(--ink) !important; }
.btn-glass{ border-color: rgba(15,23,42,.18) !important; color: rgba(15,23,42,.75) !important; }
.btn-glass:hover{ background: rgba(15,23,42,.06) !important; }


.btn-glass{ border-color: rgba(255,255,255,.35) !important; }
.btn-glass:hover{ background: rgba(255,255,255,.10) !important; }

.hero-wrap{
  position: relative;
  border-radius: 20px;
  padding: 26px 24px;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(23,70,179,.55), transparent 60%),
    radial-gradient(900px 420px at 90% 10%, rgba(34,197,94,.25), transparent 55%),
    linear-gradient(135deg, #0b1220, #111b2e);
  box-shadow: 0 18px 46px rgba(2, 6, 23, .28);
  overflow: hidden;
}
.hero-wrap:after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 22px;
  padding:1px;
  background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events:none;
}
.hero-sub{ opacity:.86; }

.pill{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.soft-card{
  background:#fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
}
.soft-muted{ color: rgba(15,23,42,.65); }

.stat{
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  background: rgba(248,250,252,.8);
  padding: 12px;
}

.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.10);
  overflow:hidden;
}
.bar > div{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, #1746B3, #22c55e);
  border-radius:999px;
  transition: width .6s ease;
}

.action-card{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(248,250,252,.75);
  padding: 14px;
  min-height: 124px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.action-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15,23,42,.10);
  background: rgba(248,250,252,.98);
}

.btn-primary-soft{
  background-color: var(--mentora-blue) !important;
  border:none !important;
}
.btn-primary-soft:hover{ background-color:#2d66e9 !important; }
.btn-primary-soft:active{ background-color:#3f79ff !important; }
.btn-outline-soft{ border-color: rgba(15,23,42,.18) !important; }

.list-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding: 12px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  background: rgba(248,250,252,.75);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
  color: inherit;
}
.list-item:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
}

.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  color: rgba(15,23,42,.70);
  white-space:nowrap;
  align-self:flex-start;
}
.tag.bad{ color:#8a5a00; background: rgba(245,158,11,.14); }
.tag.low{ color:#8a1c1c; background: rgba(239,68,68,.12); }
.tag.good{ color:#0b5a2a; background: rgba(34,197,94,.12); }

/* helper */
.fw-extrabold{ font-weight: 800; }


.subnav-wrap{
  padding-top: var(--subnav-gap);
}
