body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* example tweak: card image height */
.card-img-top {
    object-fit: cover;
    height: 200px;
}

/* Ensure navbar links are visible on dark background */
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
}
.navbar-dark .navbar-nav .nav-link:hover {
    color: #dddddd !important;
}
/* Dropdown submenu styles */
/* Category dropdown base */
.category-menu {
  min-width: 280px;
  padding: .25rem;
}

/* Row layout */
.cat-row { padding: .35rem .5rem; }
.cat-link { font-weight: 600; }

/* Toggle button */
.btn-toggle {
  border: none;
  background: transparent;
  padding: 0 .25rem;
  cursor: pointer;
  color: #333;
}
.btn-toggle:focus { outline: none; box-shadow: none; }

/* Icon rotate when expanded */
.dropdown-subitem.open > .cat-row .toggle-icon,
.subitem.open > .cat-row .toggle-icon {
  transform: rotate(90deg);
  transition: transform .2s;
}
.toggle-icon { transition: transform .2s; }

/* Children lists hidden by default */
.submenu, .subsubmenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
  margin: 0;
  padding-left: 0;
}

/* When open — allow room for children (adjust if you have many) */
.dropdown-subitem.open > .submenu { max-height: 800px; }
.subitem.open > .subsubmenu { max-height: 800px; }

/* Child link style */
.sublink {
  display: block;
  padding: .35rem .75rem;
  color: #333;
  text-decoration: none;
}
.sublink:hover { background: #f5f5f5; }

/* Divider spacing */
.dropdown-divider { margin: .35rem 0; }

/* Parent link */
.category-parent {
    background: #ffffff;
    font-weight: 600;
}

/* Child level */
.category-child {
    background: #f4f4f4;
    padding-left: 25px !important;
}

/* Grandchild level */
.category-grand {
    background: #13498b;
    padding-left: 40px !important;
}

/* Hover effects */
.category-parent:hover,
.category-child:hover,
.category-grand:hover {
    background: #dfe6f1 !important;
}

/* Keep dropdown width clean */
.category-menu {
    min-width: 260px;
}

/* Optional: separators spacing */
.category-divider {
    margin: 4px 0;
}
/* Smooth slide animation */
.submenu, .subsubmenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* When open, allow the content to expand */
.dropdown-subitem.open > .submenu {
    max-height: 500px; /* adjust depending on how many children */
}

.subitem.open > .subsubmenu {
    max-height: 500px;
}





/* chat bot */
/* Floating Button */
#chatbot-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #4f46e5;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 999999;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
}

/* Chat Container */
#chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 350px;
    height: 480px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 999999;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Header */
#chatbot-header {
    background: #4f46e5;
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
}

/* Messages */
#chatbot-messages {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    background: #f6f7fb;
}

/* Chat bubble styles */
.msg {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 85%;
}

.user-msg {
    background: #4f46e5;
    color: white;
    margin-left: auto;
}

.bot-msg {
    background: #e5e7eb;
    color: #111827;
}

/* Input */
#chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
}

#chatbot-input input {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
}

#chatbot-input button {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
}


/* Help desk */
