 body {
   font-family: "Rubik", sans-serif;
   font-size: 14px;
 }

 h2,
 h3 {
   margin: 0 !important;
 }

 .list-group {
   border: 0px !important;
 }

 .list-group-item {
   position: relative;
   display: block;
   padding: 10px 15px;
   background-color: #fff;
   border-bottom: 1px solid #eee;
   border-top-left-radius: 4px;
   border-top-right-radius: 4px;
   border-top: 0px !important;
 }

 table {
   font-size: 14px !important;
 }

 .list-group-item-heading h4 {
   margin-bottom: 0px !important;
 }

 th.lv1 {
   background-color: #545454;
   color: white;
   border: 1px solid #545454 !important;

 }

 th.lv2 {
   background-color: #ddd;
 }

 .sr-only {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   border: 0;
 }

 .tdc {
   text-align: center;
 }

 .nav-sidebar {
  font-size: 16px!important;
 }

 .bg-light {
   background-color: #f8f8f8 !important;
 }

 .nav-item.active {
   font-weight: bold;
 }

 .btn-primary {
   --bs-btn-color: #fff;
   --bs-btn-bg: #495ed4;
   --bs-btn-border-color: #495ed4;
   --bs-btn-hover-color: #fff;
   --bs-btn-hover-bg: #0c1464;
   --bs-btn-hover-border-color: #0c1464;
 }

 .list-group-item-light.list-group-item-action.active {
   background-color: #495ED4;
   border-color: #495ED4;
 }

 .list-group-item-light {
   color: #636464;
   background-color: #f8f8f8;
 }


 @media (min-width: 768px) {
  #sidebarToggle {
      display: none !important;
  }
}

@media (max-width: 992px) {
  #sidebar-wrapper .sidebar-heading {
      padding: 1.25rem 1rem;
      font-size: 1.1rem;
  }
}
footer {
  position: relative;
  left:0;
  bottom:0;
  margin-top: 20px; /* Adjust as needed */
}

/* === Sidebar === */
#sidebar-wrapper {
    min-width: 300px;
    max-width: 300px;
    min-height: calc(100vh - 80px);
    transition: margin 0.25s ease-out;
    overflow-y: auto;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1.25rem 1rem;
    font-size: 1.1rem;
    background-color: #212529;
    color: #fff;
    margin: 0;
}

#sidebar-wrapper .list-group,
#sidebar-wrapper .accordion {
    width: 100%;
    margin: 0;
    padding: 0;
}

#sidebar-wrapper .accordion-item,
#sidebar-wrapper .list-group-item,
#sidebar-wrapper .accordion-button {
    width: 100%;
    box-sizing: border-box;
}

#sidebar-wrapper .accordion-item {
    border: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

#sidebar-wrapper .accordion-body {
    padding: 0;
    margin: 0;
}

#sidebar-wrapper .accordion-collapse {
    margin: 0;
    padding: 0;
}

#sidebar-wrapper .accordion-header {
    margin: 0;
    padding: 0;
}

/* Top-level accordion headers */
#sidebar-wrapper > .list-group > .accordion > .accordion-item > h2 > .accordion-button {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    background-color: #f0f0f0;
    border-radius: 0;
    margin: 0;
    transition: background-color 0.15s ease;
}

/* Sub-accordion headers (Logic & Accuracy, VBM) */
#sidebar-wrapper .accordion-button {
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #f8f9fa;
    border-radius: 0;
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    margin: 0;
    transition: background-color 0.15s ease;
}

#sidebar-wrapper .accordion-button:not(.collapsed) {
    background-color: #e9ecef;
    color: #212529;
    box-shadow: none;
}

#sidebar-wrapper .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.08);
}

/* Activity links */
#sidebar-wrapper .list-group-item {
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(0,0,0,.04);
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    margin: 0;
    font-size: 0.9rem;
    color: #495057;
    transition: all 0.15s ease;
}

/* Deeper nested items (under L&A Testing, VBM) */
#sidebar-wrapper .list-group-item.ps-5 {
    padding-left: 2.5rem !important;
    font-size: 0.875rem;
}

#sidebar-wrapper .list-group-item.active {
    background-color: #212529;
    border-color: #212529;
    color: #fff;
}

#sidebar-wrapper .list-group-item:hover:not(.active) {
    background-color: #e9ecef;
    color: #212529;
}

/* Sub-group expandable headers */
#sidebar-wrapper .sub-group-toggle {
    background-color: #e9ecef;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem 1rem 0.6rem 1.5rem;
    border-left: 3px solid #495ED4;
}

#sidebar-wrapper .sub-group-toggle:not(.collapsed) {
    background-color: #dee2e6;
    border-left: 3px solid #495ED4;
}

#sidebar-wrapper .sub-group-toggle:not(.collapsed) .sub-group-hint {
    display: none;
}

#sidebar-wrapper .sub-group-toggle .bi-folder2 {
    color: #495ED4;
}

.sub-group-hint {
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggled state */
body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: -300px;
}

@media (max-width: 767.98px) {
    #sidebar-wrapper {
        margin-left: -300px;
    }
    body.sb-sidenav-toggled #sidebar-wrapper {
        margin-left: 0;
    }
}

/* Activity detail cards */
#activity-content .card {
    border-left: 3px solid #495ED4;
}

#activity-content .card-title {
    font-size: 0.95rem;
    color: #495ED4;
}

#activity-content .badge.bg-danger {
    font-size: 0.8rem;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Language switcher */
#lang-bar .lang-btn.active {
    background-color: #212529;
    border-color: #212529;
    color: #fff;
}

#lang-bar .lang-btn {
    font-size: 0.8rem;
}

/* Landing page activity links */
.landing-links {
    max-width: 700px;
    text-align: left;
}

#landing-content .landing-links {
    margin: 0 auto;
}

#core-function-content .landing-links {
    margin: 0;
}

.landing-link-group {
    border-left: 3px solid #495ED4;
}

.landing-group-title {
    font-size: 1rem;
    font-weight: 600;
    color: #495ED4;
}

.landing-group-title a {
    color: #495ED4;
    text-decoration: none;
}

.landing-group-title a:hover {
    text-decoration: underline;
}

.landing-activity-link {
    color: #212529;
    text-decoration: none;
    font-size: 0.95rem;
}

.landing-activity-link:hover {
    color: #495ED4;
    text-decoration: underline;
}

/* Live stream badge alignment */
#activity-livestream-badge .badge {
    vertical-align: middle;
    margin-left: 8px;
}
