@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha2/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap");

:root {
  --bs-primary: #3057d3;
  --bs-primary-rgb: 48, 87, 211;
  --bs-secondary: #141414;
  --bs-secondary-rgb: 20, 20, 20;
  --bs-light: #fafbfe;
  --bs-blue: #3057d3;
  --bs-blue-rgb: 48, 87, 211;
  --bs-border-color: #e4e8f9;
}

.page-wrapper {
  max-width: 100% !important;
  border: 3px solid var(--bs-primary);
  border-top: 0;
  margin: 0;
  border-radius: 5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  margin-bottom: 0;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-secondary);
}

body {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: var(--bs-secondary) !important;
  /* background: var(--bs-light); */
}

.bg-blue {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-blue-rgb), var(--bs-bg-opacity)) !important;
}

.text-blue {
  color: var(--bs-blue);
}

.bg-opacity-10 {
  --bs-bg-opacity: 0.1 !important;
}

.bg-opacity-05 {
  --bs-bg-opacity: 0.05 !important;
}

.h-100vn {
  min-height: calc(88vh - 60px);
}

.dropdown-menu {
  font-size: 12px;
}

.nav-link {
  padding: 3px;
  font-weight: 500;
  padding: 5px 10px !important;
  border-radius: 25px;
  color: var(--bs-secondary);
}

.header {
    background-color: var(--bs-primary);
    margin: 0px;
    margin-bottom: 0;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  background: var(--bs-primary) !important;
  color: #fff !important;
}

.navbar-top {
  background-color: rgb(var(--bs-white-rgb), 0.1) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.navbar-top .nav-link {
  padding: 3px;
  font-weight: 500;
  padding: 12px 20px !important;
  border-radius: 5px 5px 0 0;
  color: var(--bs-light);
  margin: 0 1px -5px 1px;
}

.navbar-top .nav-link:hover,
.navbar-top .nav-link:focus,
.navbar-top .nav-link.active {
  color: var(--bs-primary) !important;
  background: rgb(249 249 249) !important;
}

.badge-msg-n {
  position: absolute;
  border-radius: 50%;
  border: 1px solid #ffffff;
  left: 22px;
  top: 0;
  line-height: normal;
  padding: 3px 6px;
  font-size: 0.6rem;
}

.badge-link-active {
  position: absolute;
  border-radius: 50%;
  right: 12px;
  top: 11px;
  line-height: normal;
  padding: 3px 3px;
  font-size: 0.6rem;
  background: #ffb300 !important;
}

.dropdown-menu[data-bs-popper] {
  right: 0 !important;
  left: initial;
}

.navbar-top .sr-icon {
  top: 10px;
  left: 13px;
}

.ps-4-5 {
  padding-left: 35px;
}

.input-search {
  width: 60px !important;
}

@media (min-width: 992px) {
  .input-search {
    width: 100% !important;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    position: absolute;
    width: 100%;
    background: rgb(255, 255, 255);
    left: 0px;
    top: 60px;
  }
}

.fs-8 {
  font-size: 0.85rem;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.035) !important;
}

.sidebar {
  width: 50px;
  float: left;
  background: var(--bs-primary);
}

.sidebar .nav-link {
  width: 50px;
  text-align: center;
  color: var(--bs-light);
  border-radius: 0px;
  padding: 10px 0 !important;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active,
.sidebar .nav-link:focus {
  background-color: rgb(var(--bs-white-rgb), 0.3) !important;
}

.sidenav {
  padding: 10px 8px;
  background-color: #f9f9f9 !important;
}

.sidenav .nav-item {
  width: 100%;
}

.sidenav .nav-link {
  padding: 6px 10px !important;
  margin-bottom: 2px;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #3b3b3b;
}

.sidenav .nav-link.active {
  color: var(--bs-primary);
}

.bg-light {
  --bs-light-rgb: 240, 245, 250;
}

.widget-icon {
  font-size: 16px;
  height: 40px;
  width: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 3px;
  display: inline-block;
}

.fs-7 {
  font-size: 0.95rem !important;
}

.fs-8 {
  font-size: 0.9rem !important;
}

.widget-flat {
  margin-bottom: 0.1rem;
}

.text-muted {
  --bs-text-opacity: 1;
  color: rgb(106 109 112 / 75%) !important;
}

.tbl-head {
  background-color: #eff1f9 !important;
}

.table > :not(caption) > * > * {
  padding: 0.5rem 0.5rem;
}

.search-item .sr-icon {
  top: 6px;
  left: 22px;
}

.form-control,
.form-select {
  box-shadow: 2px 2px #dbdbdb52;
  --bs-text-color: var(--bs-primary);
  color: var(--bs-text-color);
}

.form-label {
  font-weight: 500 !important;
}

.form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 57, 180, 0.15);
}

.btn-lg {
  font-size: 0.9375rem;
  padding: 12px 40px;
}

.fs-xs {
  font-size: 0.75rem !important;
}

.box-shadow-in {
  box-shadow: inset 0 0 20px #eaefff;
}

.box-absolute {
  bottom: 10px;
  position: absolute;
  width: 93%;
}
.table {
  --bs-table-hover-bg: rgba(48, 87, 211, 0.04);
}

tr.table-bg-light {
  background-color: #e4e8f9;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgb(244 246 253 / 34%);
}

.note-editor .note-editing-area {
  background: #fff;
}

table td {
  color: #4d4d4d !important;
  vertical-align: middle;
  font-size: 13px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.nav-item h6 {
  line-height: 23px;
  font-size: 14px;
  color: #818181;
  text-transform: uppercase;
}

h5,
.page-title {
  font-size: 16px;
  text-transform: uppercase;
  color: #818181;
}

table th {
  color: #7b7b7b !important;
  text-transform: uppercase;
  font-size: 12px !important;
}

#sidebar {
  box-sizing: border-box;
  height: 100vh;
  width: 290px;
  padding: 5px 2em 5px 1em;
  background-color: #f4f6fd;
  border-right: 1px solid #e4e8f9;
  border-left: 5px solid var(--bs-primary);
  position: sticky;
  top: 0;
  align-self: start;
  transition: 300ms ease-in-out;
  overflow: hidden;
  text-wrap: nowrap;
}

#sidebar.close {
  padding: 5px;
  width: 55px;
}

#sidebar ul {
  list-style: none;
}

#sidebar > ul > li:first-child {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  .logo {
    font-weight: 600;
  }
}

#sidebar ul li.active a {
  color: var(--accent-clr);

  svg {
    fill: var(--accent-clr);
  }
}

#sidebar a,
#sidebar .dropdown-btn,
#sidebar .logo {
  padding: 0.7em 0.85em;
  text-decoration: none;
  color: var(--text-clr);
  display: flex;
  align-items: center;
  gap: 1em;
}

.dropdown-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

#sidebar svg {
  flex-shrink: 0;
  fill: var(--text-clr);
}

#sidebar a span,
#sidebar .dropdown-btn span {
  flex-grow: 1;
}

#sidebar a:hover,
#sidebar .dropdown-btn:hover {
  background-color: var(--hover-clr);
}

#sidebar .sub-menu {
  display: grid;
  grid-template-rows: 0fr;
  transition: 300ms ease-in-out;
  margin-left: 0;
  padding: 0;

  > div {
    overflow: hidden;
  }
}

#sidebar .sub-menu.show {
  grid-template-rows: 1fr;
}

.dropdown-btn svg {
  transition: 200ms ease;
}

.rotate svg:last-child {
  rotate: 180deg;
}

#sidebar .sub-menu a {
  padding-left: 1.5em;
}

#sidebar .sub-menu a:hover {
  background-color: #e4e8f9;
}

#toggle-btn {
  margin-right: auto;
  padding: 1em;
  border: none;
  border-radius: 0.5em;
  background: none;
  cursor: pointer;

  svg {
    transition: rotate 150ms ease;
  }
}

#toggle-btn:hover {
  background-color: var(--hover-clr);
}

@media (max-width: 800px) {
  #sidebar {
    height: 60px;
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--line-clr);
    padding: 0;
    position: fixed;
    top: unset;
    bottom: 0;

    > ul {
      padding: 0;
      display: grid;
      grid-auto-columns: 60px;
      grid-auto-flow: column;
      align-items: center;
      overflow-x: scroll;
    }
    ul li {
      height: 100%;
    }
    ul a,
    ul .dropdown-btn {
      width: 60px;
      height: 60px;
      padding: 0;
      border-radius: 0;
      justify-content: center;
    }

    ul li span,
    ul li:first-child,
    .dropdown-btn svg:last-child {
      display: none;
    }

    ul li .sub-menu.show {
      position: fixed;
      bottom: 60px;
      left: 0;
      box-sizing: border-box;
      height: 60px;
      width: 100%;
      background-color: var(--hover-clr);
      border-top: 1px solid var(--line-clr);
      display: flex;
      justify-content: center;

      > div {
        overflow-x: auto;
      }
      li {
        display: inline-flex;
      }
      a {
        box-sizing: border-box;
        padding: 1em;
        width: auto;
        justify-content: center;
      }
    }
  }
}

#sidebar .dropdown-btn.rotate {
  background: #d7dcf3 !important;
}

#sidebar a:hover,
#sidebar .dropdown-btn:hover {
  background: #e4e8f9 !important;
}

.thumb-char {
  display: inline-block;
  width: 36px;
  height: 36px;
  text-align: center;
  border-radius: 50%;
  background: var(--bs-primary);
  color: #fff !important;
  font-weight: 600;
}

footer {
    padding: 10px 0;
    text-align: center;
    margin: 0 10px 10px;
    background: #efefef;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}

.gradient-diagonal {
  background: linear-gradient(335deg, var(--bs-primary) 30%, var(--bs-primary) 70%);
}

.filter-bar {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.data-table {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}