/* Bootstrap 5.3 dark form controls */
:root { color-scheme: dark; }

.form-control, .form-select {
  background-color: rgba(0,0,0,0.35) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.95) !important;
}

.form-control:focus, .form-select:focus {
  background-color: rgba(0,0,0,0.45) !important;
  border-color: rgba(13,110,253,0.55) !important;
  box-shadow: 0 0 0 .2rem rgba(13,110,253,0.15) !important;
  color: white !important;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

/* Auth page layout */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 560px;
}

.card.glass {
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

a.link-light { text-decoration: none; }
a.link-light:hover { text-decoration: underline; }

/* User badge (navbar capsule) */
#userBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  max-width: 46vw;           /* kad neišsiplėstų per daug */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* optional: mažas "status dot" prieš tekstą */
#userBadge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(25, 220, 120, 0.85);
  box-shadow: 0 0 0 3px rgba(25, 220, 120, 0.12);
  flex: 0 0 auto;
}

/* Mobile: leisk badge'ui būti trumpesniam */
@media (max-width: 768px) {
  #userBadge { max-width: 60vw; }
}

/* old */

.glass {
  background: rgba(25, 25, 25, 0.65) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(8px);
}
.chat-scroll {
  height: calc(100vh - 160px);
  overflow: auto;
  font-size: 14px;
}
.msg {
  max-width: 85%;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}
.msg.user {
  margin-left: auto;
  background: rgba(13,110,253,0.20);
  border: 1px solid rgba(13,110,253,0.35);
  color: white;
}
.msg.bot {
  margin-right: auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
}
.panel {
  padding: 8px;
  border-radius: 12px;
}
.panel-head {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
  user-select: none;
}
.panel-body {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  max-height: 22vh;
  overflow: auto;
  opacity: 0.85;
}
.panel-collapsed {
  opacity: 0.60;
  transition: opacity 0.15s ease;
  cursor: pointer;
}
.panel-collapsed:hover {
  opacity: 0.95;
}
.panel-expanded {
  position: fixed;
  inset: 10px;
  z-index: 2000;
  opacity: 1 !important;
}
.panel-expanded .panel-body {
  max-height: calc(100vh - 80px);
  font-size: 13px;
  opacity: 1;
}