

.disabledcontainer {
    pointer-events: none;
    opacity: 0.4;
}

.loading {
    z-index: 999 !important;
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 200px;
    height: 100px;
    margin: auto;
    background-color: #343a40;
    color:rgba(255,255,255,.5);
    line-height: 100px;
    text-align:center;
    box-shadow: rgba(0, 0, 0, 0.445) 0px 5px 15px;
    font-size: 16px;
}

/* Toast notifications - floating alerts that appear in top-right corner */
.alert-toast {
  z-index: 999 !important;
  position: fixed;
  top: 4em;
  right: 1em;
  min-width: 300px;
  max-width: 500px;
  font-size: 1rem;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, 
              rgba(0, 0, 0, 0.12) 0px -12px 30px, 
              rgba(0, 0, 0, 0.12) 0px 4px 6px, 
              rgba(0, 0, 0, 0.17) 0px 12px 13px, 
              rgba(0, 0, 0, 0.09) 0px -3px 5px;
  animation: slideInRight 0.3s ease-out;
}

/* Animation for toast appearance */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Close button for toast notifications */
.alert-toast .alert-close,
.alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  padding: 0;
  cursor: pointer;
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
}

.alert-toast .alert-close:hover,
.alert-close:hover {
  opacity: 1;
}

/* Custom alert types for toast */
.alert-toast.alert-error {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

.alert-toast.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
}

/* Stack multiple toasts */
.alert-toast + .alert-toast {
  top: calc(4em + 80px);
}

/* Mobile responsiveness for toasts */
@media (max-width: 768px) {
  .alert-toast {
    left: 1em;
    right: 1em;
    max-width: none;
    font-size: 0.9rem;
  }
}

/* Automatic text color for badges with background classes */
/* This makes bg-* classes automatically apply the correct text color */
.badge.bg-warning,
.badge.bg-info,
.badge.bg-light {
  color: #000 !important; /* Dark text for light backgrounds */
}

.badge.bg-primary,
.badge.bg-secondary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-dark {
  color: #fff !important; /* White text for dark backgrounds */
}

/* Subtle gradient enhancement for Bootstrap buttons */
.btn {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.15) 100%);
  transition: all 0.2s ease;
}

.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}









    /* #page-wrapper {
        padding-top: 30px !important;
    } */

    .bg-danger {
    background-color: #f4d2d3 !important;
}
  .navbar-nav > li{
    padding-left: .7rem !important;
    padding-right: .7rem !important;
    font-size: 16px;
  }

  .nav-link {
    padding-right: .5rem !important;
    padding-left: .5rem !important;
  }

  /* Fixes dropdown menus placed on the right side */
  .ml-auto .dropdown-menu,
  .ms-auto .dropdown-menu {
    left: auto !important;
    right: 0px;
  }
nav a {
  color: white; text-decoration: none;
}

.dropdown .nav-link {color:#fff; text-decoration: none;}
.dropdown .dropdown-menu a{
    color: #033C73;
}

.dropdown-menu{
    min-width: 200px;
 }
.container .dropdown .dropdown-menu a:hover
{
  color: #fff;
  background-color: #b91773;
  border-color: #fff;

}

/* this deals with giving font-awesome icons badges since they were deprecated in BS4 */
*.icon-blue {color: #0088cc;
}
*.icon-white {color: white;
  padding-right: 2rem;}

i {
    text-align:left;
     /* vertical-align:middle; */ 
    position: relative;
}
.badge:after{
    content:attr(data-count);
    /* position: absolute; */

    /* background: rgba(0,0,255,1); */
    /* height:1rem; */
    /* top:1rem;
    right:1.5rem;
    width:2rem;
    text-align: center;
    line-height: 2rem;; */
    font-size: 1rem;
    /* border-radius: 50%; */
    color:white;
    /* border:1px solid blue; */
}
html{
    min-height:100%;/* make sure it is at least as tall as the viewport */
    position:relative;
}
body{
    height:100%;
    margin-bottom: 2.5rem; /* force the BODY element to match the height of the HTML element */
}


#sidebar {
    overflow: hidden;
    z-index: 3;
        max-width: 180px;
}
#sidebar .list-group {
    min-width: 250px;
    background-color: #023c73;
    min-height: 100vh;
}
#sidebar i {
    margin-right: 6px;
}

#sidebar .list-group-item {
    border-radius: 0;
    background-color: #04519b;
    color: rgba(255,255,255,0.8);
    border-left: 0;
    border-right: 0;
    white-space: nowrap;
}
#sidebar .list-group-item:hover {
    color: #fff;
}

/* highlight active menu */
#sidebar .list-group-item:not(.collapsed) {
    background-color: #222;
}

/* closed state */
#sidebar .list-group .list-group-item[aria-expanded="false"]::after {
  content: " \f0d7";
  font-family: FontAwesome;
  display: inline;
  text-align: right;
  padding-left: 5px;
}

/* open state */
#sidebar .list-group .list-group-item[aria-expanded="true"] {
  background-color: #033C73;
}
#sidebar .list-group .list-group-item[aria-expanded="true"]::after {
  content: " \f0da";
  font-family: FontAwesome;
  display: inline;
  text-align: right;
  padding-left: 5px;
}

/* level 1*/
#sidebar .list-group .collapse .list-group-item,
#sidebar .list-group .collapsing .list-group-item  {
  padding-left: 20px;
  background-color: #fff;
  color: #033C73;
}
#sidebar .list-group .collapse .list-group-item:hover,
#sidebar .list-group .collapsing .list-group-item:hover  {
    background-color: #2FA4E7;
}

/* level 2*/
#sidebar .list-group .collapse > .collapse .list-group-item,
#sidebar .list-group .collapse > .collapsing .list-group-item {
  padding-left: 30px;
}

/* level 3*/
#sidebar .list-group .collapse > .collapse > .collapse .list-group-item {
  padding-left: 40px;
}

@media (max-width:767px) {

    #sidebar {
        min-width: 35px;
        max-width: 40px;
        overflow-y: auto;
        overflow-x: visible;
        transition: all 0.25s ease;
        transform: translateX(-45px);
        position: fixed;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    #sidebar::-webkit-scrollbar{ width: 0px; }

    #sidebar, #sidebar .list-group {
        min-width: 35px;
        overflow: visible;
        position: relative;
    }
    /* overlay sub levels on small screens */
    #sidebar .list-group .collapse.show, #sidebar .list-group .collapsing {
        position: relative;
        z-index: 1;
        width: 190px;
        top: 0;
    }
    #sidebar .list-group > .list-group-item {
        text-align: center;
        padding: .75rem .5rem;
    }
    /* hide caret icons of top level when collapsed */
    #sidebar .list-group > .list-group-item[aria-expanded="true"]::after,
    #sidebar .list-group > .list-group-item[aria-expanded="false"]::after {
        display:none;
    }
}

.collapse.show {
  visibility: visible;
}
.collapsing {
  visibility: visible;
  height: 0;
  -webkit-transition-property: height, visibility;
  transition-property: height, visibility;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.collapsing.width {
  -webkit-transition-property: width, visibility;
  transition-property: width, visibility;
  width: 0;
  height: 100%;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

/* ============================
 * Chatbot UI refinements (BOT-103)
 * ============================ */

.chatbot-card {
  border-radius: 0.75rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.chatbot-messages-container {
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
  border-radius: 0 0 0.75rem 0.75rem;
}

.chatbot-message-row {
  display: flex;
  margin-bottom: 0.75rem;
}

.chatbot-message-row.user {
  justify-content: flex-end;
}

.chatbot-message-row.assistant {
  justify-content: flex-start;
}

.chatbot-bubble {
  max-width: 80%;
  padding: 0.5rem 0.75rem;
  border-radius: 1.2rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  position: relative;
}

.chatbot-bubble.user {
  background: #2563eb;
  color: #ffffff;
  border-bottom-right-radius: 0.2rem;
}

.chatbot-bubble.assistant {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 0.2rem;
}

.chatbot-message-text {
  white-space: pre-wrap;
}

.chatbot-message-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.15rem;
}

.chatbot-references {
  border-top: 1px dashed #e5e7eb;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.chatbot-references-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.chatbot-references-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.chatbot-references-list li {
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}

.chatbot-references-list a {
  color: #1d4ed8;
  text-decoration: none;
}

.chatbot-references-list a:hover {
  text-decoration: underline;
}

.chatbot-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 2px;
  border-radius: 50%;
  background-color: #9ca3af;
  animation: chatbot-typing 1.2s infinite ease-in-out;
}

.chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chatbot-typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chatbot-sidebar-card {
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.chatbot-category-list {
  max-height: 300px;
  overflow-y: auto;
}

.chatbot-category-list .form-check {
  margin-bottom: 0.25rem;
}

.chatbot-category-list .form-check-label {
  font-size: 0.9rem;
}

.chatbot-status-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chatbot-footer {
  border-top: 1px solid #e5e7eb;
}

.chatbot-input-area textarea {
  resize: vertical;
}

.chatbot-helper-buttons .btn {
  font-size: 0.85rem;
}


#sidebarLeft {
    overflow: hidden;
    z-index: 3;
        max-width: 180px;
}
#sidebarLeft .list-group {
    min-width: 250px;
    background-color: #023c73;
    min-height: 100vh;
}
#sidebarLeft i {
    margin-right: 6px;
}

#sidebarLeft .list-group-item {
    border-radius: 0;
    background-color: #04519b;
    color: rgba(255,255,255,0.8);
    border-left: 0;
    border-right: 0;
    white-space: nowrap;
    text-align: left;
}
#sidebarLeft .list-group-item:hover {
    color: #fff;
}

/* highlight active menu */
#sidebarLeft .list-group-item:not(.collapsed) {
    background-color: #222;
}

/* closed state */
#sidebarLeft .list-group .list-group-item[aria-expanded="false"]::after {
  content: " \f0d7";
  font-family: FontAwesome;
  display: inline;
  text-align: right;
  padding-left: 5px;
}

/* open state */
#sidebarLeft .list-group .list-group-item[aria-expanded="true"] {
  background-color: #033C73;
}
#sidebarLeft .list-group .list-group-item[aria-expanded="true"]::after {
  content: " \f0da";
  font-family: FontAwesome;
  display: inline;
  text-align: right;
  padding-left: 5px;
}

/* level 1*/
#sidebarLeft .list-group .collapse .list-group-item,
#sidebarLeft .list-group .collapsing .list-group-item  {
  padding-left: 20px;
  background-color: #fff;
  color: #033C73;
}
#sidebarLeft .list-group .collapse .list-group-item:hover,
#sidebarLeft .list-group .collapsing .list-group-item:hover  {
    background-color: #2FA4E7;
}

/* level 2*/
#sidebarLeft .list-group .collapse > .collapse .list-group-item,
#sidebarLeft .list-group .collapse > .collapsing .list-group-item {
  padding-left: 30px;
}

/* level 3*/
#sidebarLeft .list-group .collapse > .collapse > .collapse .list-group-item {
  padding-left: 40px;
}

#footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem;          
}
@media (max-width:767px) {

    #sidebarLeft {
        min-width: 35px;
        max-width: 40px;
        overflow-y: auto;
        overflow-x: visible;
        transition: all 0.25s ease;
        transform: translateX(45px);
        position: fixed;
    }

    #sidebarLeft.show {
        transform: translateX(0);
    }

    #sidebarLeft::-webkit-scrollbar{ width: 0px; }

    #sidebarLeft, #sidebarLeft .list-group {
        min-width: 35px;
        overflow: visible;
        position: relative;
    }
    /* overlay sub levels on small screens */
    #sidebarLeft .list-group .collapse.show, #sidebarLeft .list-group .collapsing {
        position: relative;
        z-index: 1;
        width: 190px;
        left: -150px;
        top: 0;
    }
    #sidebarLeft .list-group > .list-group-item {
        text-align: center;
        padding: .75rem .5rem;
    }
    /* hide caret icons of top level when collapsed */
    #sidebarLeft .list-group > .list-group-item[aria-expanded="true"]::after,
    #sidebarLeft .list-group > .list-group-item[aria-expanded="false"]::after {
        display:none;
    }
}

/* ============================================
   Inline help: popover & tooltip separation
   So they don’t blend with surrounding content.
   See docs/Inline_Help_Guidelines.md
   ============================================ */
.popover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2), 0 0.5rem 1rem rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.tooltip .tooltip-inner {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18), 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.08);
}