:root {
  --primary: #002D62;
  --secondary: #001B3A;
  --dark: #36454F;
  --light: #F1ECE6;
  --gold: #ffb547;
  --gold-dark: #fca21c;
  --light-dark: #666666;
}

.topic_mode_subject .scrolled {
  color: var(--secondary) !important;
}



/* ======================================*/
/* APPBAR */
/* ======================================*/





.appbar-wrapper {
  position: fixed;
  width: calc(100% - 264px);
  /* Reduce width based on sidebar */
  border: 0;
  top: 0;
  right: 0;
  /* z-index: 999; */
  z-index: 99;
  padding: 0px;
  transition: width 0.3s ease-in-out, padding 0.4s ease-in-out !important;
}

/* Hover effect */
.nav-link.nav-link-load:hover {
  background-color: var(--primary) !important;
  color: #000;
  border: 2px solid var(--primary)
}

.nav-link.nav-link-load:hover {
  background-color: var(--light) !important;
  color: #000;
}

/* Active tab styling */
.nav-tabs .nav-link.active {
  background-color: #007bff !important;
  color: white;
  font-weight: bold;
}

#navbarNav .nav-item {
  display: flex;
  align-items: center !important;
}

@media (max-width: 991px) {
  .appbar-wrapper {
    width: 100% !important;
  }
}

.appbar-wrapper.collapsed {
  width: 100% !important;
  transition: width 0.3s ease-in-out;
}

.appbar-wrapper.scrolled {
  padding: 20px;
  transition: padding .4s ease-in-out;
}

.appbar-box {
  padding: 20px;
  border-radius: 0px;
  background-color: #fff;
  transition: border-radius .2s ease-in-out;
}

.appbar-wrapper.scrolled .appbar-box {
  border-radius: 100px;
  transition: border-radius .2s ease-in-out;
}

.appbar-wrapper.scrolled .appbar-box {
  padding: 18px 24px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  background-color: #fff;
}

@media (max-width: 767px) {
  .appbar-box {
    padding: 14px 16px !important;
    transition: padding .4s ease-in-out;
  }

  .appbar-wrapper.scrolled .appbar-box {
    padding: 10px !important;
  }
}

.toggle-icon-button,
.user-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background-color: transparent;
  text-align: var(--primary) !important;
  border: 0 !important;
  transition: background-color .3s ease-in-out;
}

.toggle-icon-button:hover,
.user-avatar:hover {
  background-color: var(--gold);
  transition: background-color .3s ease-in-out;
  cursor: pointer;
}

/* Profile avatar */
.profile-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 100px;
  border: 1px solid #f4f4f4;
  background-color: #f4f4f4;
  object-fit: cover;
  overflow: hidden;
}

/* ======================================*/
/* / APPBAR */
/* ======================================*/


/* ======================================*/
/* NOTIFICATION DROPDOWN */
/* ======================================*/
.notif-dropdown-wrapper {
  position: relative;
}

/* .dropdownmenu */
.notif-dropdown-menu {
  position: absolute;
  width: 460px;
  top: 60px;
  right: 0;
  border-radius: 25px;
  transition: 0.3s;
  visibility: hidden;
  opacity: 0;
  background-color: #fff;
  overflow: hidden;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px !important;
}


/* Notification Dropdown */
.notif-dropdown-menu.active {
  top: 48px !important;
  right: 0;
  visibility: visible;
  opacity: 1;
}

/* .notif-dropdown-menu {
  max-height: 80vh !important;
  overflow-y: auto;
} */

@media (max-width: 757px) {
  .notif-dropdown-menu {
    max-height: 100vh !important;
    overflow-y: auto;
    background-color: transparent !important;
    box-shadow: none !important;
  }

  .notif-dropdown-menu.active {
    top: 28px !important;
  }

  .appbar-wrapper .notif-dropdown-menu {
    width: 100vw !important;
    right: -66px !important;
    transform: translate(6px, 10px) !important;
    padding: 10px !important;
    border-radius: 30px !important;
  }

  .appbar-wrapper.scrolled .notif-dropdown-menu {
    width: 100vw !important;
    right: -80px !important;
  }

  .appbar-wrapper.scrolled .notif-dropdown-menu.active {
    top: 32px !important;
  }

  /* /Notification Dropdown */
  .menu-list {
    background-color: #fff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px !important;
  }

  .menu-list-wrapper {
    width: 100%;
    height: 100%;
    max-height: 72vh;
    overflow-y: auto;
  }
}

.menu-list-wrapper {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  overflow-y: auto;
}

.notif-dropdown-menu .menu-list-wrapper {
  /* max-height: 600px; */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* Chrome, Safari, Edge - thin scrollbar */
.notif-dropdown-menu .menu-list-wrapper::-webkit-scrollbar {
  width: 6px;
  transition: width 0.3s ease;
}

.notif-dropdown-menu .menu-list-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.notif-dropdown-menu .menu-list-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(170, 170, 170, 0);
  /* fully transparent */
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

/* Show scrollbar thumb on hover */
.notif-dropdown-menu .menu-list-wrapper:hover::-webkit-scrollbar-thumb {
  background-color: rgba(170, 170, 170, 1);
  /* visible on hover */
}

/* Firefox - change thumb color on hover */
.notif-dropdown-menu .menu-list-wrapper:hover {
  scrollbar-color: #aaa transparent;
}

/* ---- Notification bell + badge ---- */
#notificationBell i {
  color: var(--secondary);
}

#notificationCount {
  color: var(--secondary) !important;
  font-weight: 700;
}

/* ---- Notification dropdown header ---- */
.notif-dropdown-menu .menu-list {
  border: 1px solid var(--border);
}

.notif-dropdown-menu .menu-list h6 {
  color: var(--secondary);
  letter-spacing: .2px;
}

/* Loading / empty placeholders inside the list */
#notificationsList .fa-spinner,
#notificationsList .fa-bell-slash {
  color: var(--gold-dark);
  opacity: 1 !important;
}

#notificationsList .text-muted {
  color: var(--light-dark) !important;
}

.notif-dropdown-menu #markAllRead {
  color: var(--gold-dark) !important;
  font-weight: 600;
}

.notif-dropdown-menu #markAllRead:hover {
  color: var(--secondary) !important;
  text-decoration: none !important;
}

/* ---- Notification items ---- */
.notif-dropdown-menu .list-group-item {
  position: relative;
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--secondary);
  transition: background-color .15s ease;
}

/* Remove-notification button */
.notif-dropdown-menu .notif-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--light-dark);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  opacity: 0;
  transition: opacity .15s ease, background-color .15s ease, color .15s ease;
}

.notif-dropdown-menu .list-group-item:hover .notif-delete {
  opacity: 1;
}

.notif-dropdown-menu .notif-delete:hover {
  background-color: var(--gold-20);
  color: var(--secondary);
}

@media (max-width: 757px) {
  .notif-dropdown-menu .notif-delete {
    opacity: 1;
  }
}

.notif-dropdown-menu .list-group-item:last-child {
  border-bottom: 0 !important;
}

.notif-dropdown-menu .list-group-item.list-group-item-action.unread {
  position: relative;
  background-color: var(--gold-10);
  font-weight: 600;
  border-left: 4px solid var(--gold) !important;
}

.notif-dropdown-menu .list-group-item.list-group-item-action.unread::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 14px;
  width: 8px;
  height: 8px;
  background-color: var(--gold-dark);
  border-radius: 50%;
}

.notif-dropdown-menu .list-group-item.read {
  background-color: #fff;
  border-left: 4px solid transparent !important;
  opacity: .68;
  font-weight: 400;
}

.notif-dropdown-menu .list-group-item:hover {
  background-color: var(--primary-10) !important;
  cursor: pointer;
}

/* Per-item meta line (subject / due date / status) */
.notif-dropdown-menu .notif-meta {
  color: var(--primary) !important;
  font-weight: 600;
}

.notif-dropdown-menu .notif-date {
  color: var(--light-dark) !important;
}

.notif-dropdown-menu .list-group-item .fa-spinner {
  color: var(--gold-dark);
}

/* Profile image styles */
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.menu-list {
  position: relative;
  z-index: 5;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
.menu-list-profile {
  width: max-content;
}
@media (max-width: 767px) {
  .menu-list-profile {
    width: 100%;
  }
}

/* ======================================*/
/* / NOTIFICATION DROPDOWN */
/* ======================================*/


/* ======================================*/
/* DROPDOWN */
/* ======================================*/
.action {
  position: relative;
}

.menu {
  position: absolute;
  /* width: 340px; */
  top: 60px;
  right: 0;
  border-radius: 15px;
  transition: 0.3s;
  visibility: hidden;
  opacity: 0;
}

.action .menu.active {
  top: 45px !important;
  right: 0px;
  visibility: visible;
  opacity: 1;
}

/* on scrolled */
.appbar-wrapper.scrolled .action .menu {
  top: 60px;
  right: 0 !important;
}

.appbar-wrapper.scrolled .action .menu.active {
  top: 45px !important;
  right: 0 !important;
  visibility: visible;
  opacity: 1;
}

/* /on scrolled */
@media (max-width: 757px) {
  .action .menu {
    width: 100vw !important;
    top: 45px !important;
    right: -10px !important;
    transform: translate(6px, 10px) !important;
    padding: 10px !important;
    border-radius: 30px !important;
  }

  .action .menu.active {
    top: 25px !important;
    right: -10px !important;
  }

  .appbar-wrapper.scrolled .action .menu {
    top: 45px !important;
    right: -24px !important;
  }

  .appbar-wrapper.scrolled .action .menu.active {
    top: 32px !important;
    right: -24px !important;
  }

}


/* ======================================*/
/* / DROPDOWN */
/* ======================================*/

/* LOGIN / SIGNUP BUTTON */
.login-signup-button-wrapper {
  display: flex;
  align-items: center;
}

/* Notification Read and Unread */
.list-group {
  height: 100%;
  /* min-height: 600px; */
}

.list-group-item.unread {
  background-color: var(--gold-10);
  border-left: 4px solid var(--gold);
}

.list-group-item.read {
  background-color: #fff;
  opacity: 0.85;
}

.list-group-item:hover {
  background-color: var(--primary-10);
}

.list-group-item:last-child {
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.list-group-item:last-child {
  border-bottom-right-radius: inherit;
  border-bottom-left-radius: inherit;
}

.wrapper {
  position: relative;
  align-items: stretch;
  display: flex;
  width: 100%;
}

.sidebar {
  position: sticky;
  top: 0;
  max-width: 264px;
  min-width: 264px;
  height: 100vh;
  transition: all 0.35s ease-in-out;
  /* box-shadow: 0 0 35px 0 rgba(49, 57, 66, 0.5); */
  z-index: 1111;
  background-color: var(--primary);
  /* z-index: 9999; */
  z-index: 999;
}

@media (max-width: 991px) {
  .sidebar {
    position: fixed;
    top: 0;
  }
}


/* Sidebar collapse */

.sidebar.collapsed {
  margin-left: -264px;
}

.main {
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  /* position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  transition: all 0.35s ease-in-out; */
}

.navbar {
  position: sticky;
  top: 0;

}

.sidebar-logo {
  position: relative;
  padding: 1.15rem 1.5rem;
  width: 100%;
  height: auto;
}

.sidebar-logo button {
  position: absolute;
  top: 5px;
  right: 5px;
}

.sidebar-logo a {
  color: #e9ecef;
  font-size: 1.25rem;
  font-weight: 600;
}

.sidebar-nav {
  padding: 0;
}

.sidebar-header {
  color: #e9ecef;
  font-size: .75rem;
  padding: 1.5rem 1.5rem .375rem;
}

.sidebar-item {
  position: relative;
  width: 100%;
  height: auto;
}

.sidebar-item.active::before {
  position: absolute;
  content: "";
  width: 5px;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--gold-dark);
}

.sidebar-item.active .sidebar-link {
  color: var(--light);
}

a.sidebar-link {
  padding: .625rem 1.625rem;
  color: var(--light-dark);
  position: relative;
  display: block;
  font-size: 1rem;
}

a.sidebar-link:hover {
  color: var(--light);
}

.sidebar-link[data-bs-toggle="collapse"]::after {
  border: solid;
  border-width: 0 .075rem .075rem 0;
  content: "";
  display: inline-block;
  padding: 2px;
  position: absolute;
  right: 1.5rem;
  top: 1.4rem;
  transform: rotate(-135deg);
  transition: all .2s ease-out;
}

.sidebar-link[data-bs-toggle="collapse"].collapsed::after {
  transform: rotate(45deg);
  transition: all .2s ease-out;
}

.content {
  position: relative;
  flex: 1;
  max-width: 100vw;
  width: 100vw;
}

/* Responsive */

@media (min-width:768px) {
  .content {
    width: auto;
  }
}

.main {
  position: relative;
}

.avatar-extra {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #dee2e6;
  color: #212529;
  font-weight: bold;
  font-size: 14px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border: 2px solid #f4f4f4;
}

.tooltip-avatars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-width: 300px;
  /* prevents very wide popover */
}

.tooltip-avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tooltip-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
}

.tooltip-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #6c757d;
  color: white;
  font-weight: bold;
  font-size: 13px;
}

.tooltip-name {
  margin-top: 4px;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
}


/* ======================================*/
/* NAVIGATION BAR */
/* ======================================*/
.menu-list ul {
  z-index: 3 !important;
  position: relative;
}

.action .menu ul li:hover img {
  opacity: 1;
}

.offcanvas {
  background-color: #fff;
  color: #fff;
  height: 100vh;
}

.offcanvas {
  background-color: #fff;
  color: #fff;
  height: 100vh;
}

.offcanvas-body {
  display: flex;
  justify-content: end;
}

.bg-body-tertiary {
  background-color: unset !important;
}

.navbar-toggler {
  padding: 8px 10px !important;
  border: 1.5px solid #a7a7a7 !important;
  margin-right: 16px !important;
}

.fa-bars {
  color: #a7a7a7 !important;
}

.menu-on-mobile {
  display: none;
}

.menu-on-mobile li {
  list-style: none;
  margin: 0 10px;
}

.menu-on-mobile .custom-dropdown-item span:first-child {
  color: var(--dark);
  transition: color .3s ease-in-out;
}

.menu-on-mobile .custom-dropdown-item:hover span:first-child {
  color: var(--primary);
  transition: color .3s ease-in-out;
}

.custom-dropdown-item {
  position: relative;
  padding: 10px;
  border-radius: 6px;
}

.custom-dropdown-item:hover,
.custom-dropdown-item.active {
  background-color: #1c81f310;
  cursor: pointer;
}

.custom-dropdown-item:hover .dropdown-item-text,
.custom-dropdown-item:hover .icon-wrapper {
  color: var(--primary) !important;
}

.dropdown-item-text {
  color: #777777;
}

.dropdown-item-text:first-child {
  font-size: 14px;
}

.custom-dropdown-item.active .dropdown-item-text,
.custom-dropdown-item.active .icon-wrapper {
  color: var(--primary) !important;
}

.icon-wrapper {
  width: 40px;
  height: 40px;
  /* color: #002e62f8;  */
  color: #36454F;
  background-color: #0664cf25;
  transition: background-color .3s ease-in-out, color .3s ease-in-out;
}

.custom-dropdown-item:hover .icon-wrapper {
  color: #0664cf;
  background-color: #002e6250;
  transition: background-color .3s ease-in-out, color .3s ease-in-out;
}

.custom-dropdown-item:hover span:first-child {
  color: #0664cf;
  transition: color .3s ease-in-out;
}

.menu-on-mobile .user-fullname {
  color: var(--primary);
}

.menu-on-mobile .user-email {
  color: var(--dark);
}

@media (max-width: 991px) {
  .offcanvas-body {
    display: flex;
    justify-content: start
  }

  .menu-on-mobile {
    display: block;
  }

  .user-firtsname {
    display: none;
  }
}

@media (max-width: 820px) {
  .navbar-toggler {
    margin-right: 10px !important;
  }

  .navbar-wrapper {
    height: 70px;
  }

  .mobile-logo img {
    width: 200px !important;
  }

  .offcanvas-body {
    display: flex;
    justify-content: start
  }
}

.user-firtsname {
  color: #a7a7a7;
}



/* ======================================*/
/* / NAVIGATION BAR */
/* ======================================*/