@import url("https://rsms.me/inter/inter.css");

/* Google Font */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --theme-color: #004fc0;
  --theme-hover-color: rgb(21, 43, 90);
  --sidebar-width: 17rem;
  --tblr-font-sans-serif: "Inter Var", -apple-system, BlinkMacSystemFont,
    San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
  --tblr-primary: #004fc0 !important;

  --accent-color: #fdd100;
  --primary-font: "Poppins", sans-serif;
}

* {
  font-family: var(--primary-font) !important;
}

body {
  font-feature-settings: "cv03", "cv04", "cv11";
}

.btn-primary {
  background-color: var(--theme-color);
}

.btn-primary:hover {
  background-color: var(--theme-hover-color);
}

.btn-outline-primary:hover {
  background-color: var(--theme-hover-color);
}

.navbar-brand {
  min-height: 55px;
}
.sidebar {
  border: none;
  box-shadow: none !important;
  min-height: 0;
  background-color: var(--theme-color);
}

#sidebar-menu {
  background-color: var(--tblr-primary);
}

#sidebar-menu .nav-item {
  width: 100%;
  align-items: flex-start;
}
#sidebar-menu .nav-link {
  border-radius: 5px;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding: 8px 10px;
}
#sidebar-menu .nav-link.dropdown-toggle:after {
  margin-left: auto;
}
#sidebar-menu .nav-link.active {
  background: var(--accent-color);
  color: var(--tblr-primary);
}
#sidebar-menu .dropdown-item {
  padding-left: 3.5rem;
  border-radius: 10px;
}
#sidebar-menu .dropdown-item.active {
  color: var(--theme-color);
  font-weight: bold;
  background: none;
}
#sidebar-menu .dropdown-menu {
  position: relative;
  width: calc(100% - 20px);
  background: none;
  box-shadow: none;
  border: none;
  border-left: 1px dashed #fff3;
  margin-left: 20px !important;
}
#sidebar-menu .dropdown-menu .dropdown-item {
  color: #fffa;
  padding: 8px 15px 8px 25px;
  position: relative;
  border-radius: 0;
}
#sidebar-menu .dropdown-menu .dropdown-item:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  border-bottom: 1px dashed #fff3;
  transform: translateY(-50%);
}
#sidebar-menu .dropdown-menu .dropdown-item:hover,
#sidebar-menu .dropdown-menu .dropdown-item.active {
  color: #fff;
}

.note-toolbar.card-header {
  flex-wrap: wrap;
}
.bg-transparent-white {
  background: #fff1;
}

/* DATATABLE CUSTOM */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0 !important;
  background: none !important;
  border: none !important;
}
.page-item.active .page-link {
  background: var(--theme-color);
  border-color: var(--theme-color);
}

.form-switch-text {
  position: relative;
  display: flex;
  border-radius: 5px;
  overflow: hidden;
}
.form-switch-text input {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
}
.form-switch-text .switch-item {
  background: var(--theme-color);
  padding: 5px 10px;
  font-size: 0.8rem;
  color: #fff;
  font-weight: bold;
}
.form-switch-text input.form-check-input ~ .switch-item-on {
  background: #eee;
  color: #aaa;
}
.form-switch-text input.form-check-input:checked ~ .switch-item-off {
  background: var(--theme-color);
  color: #fff;
}
.form-switch-text input.form-check-input:checked ~ .switch-item-on {
  background: var(--theme-color);
  color: #fff;
}
.form-switch-text input.form-check-input:checked ~ .switch-item-off {
  background: #eee;
  color: #aaa;
}

.form-switch-toggle .form-check-label {
  display: none;
}
.form-switch-toggle .form-check-label.off {
  display: block;
}
.form-switch-toggle .form-check-input:checked ~ .form-check-label.on {
  display: block;
}
.form-switch-toggle .form-check-input:checked ~ .form-check-label.off {
  display: none;
}
.sticky-bottom {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
}
#navbar {
  background: #fff;
  box-shadow: 0px 5px 20px -10px #0001;
  z-index: 1050;
}
#navbar.float {
  background: #fffa;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-bs-theme="dark"] #navbar {
  background: var(--tblr-bg-surface);
}
.sidebar {
  z-index: 1060;
}
.sidebar-toggler {
  width: 24px;
  height: 24px;
  border: none;
  padding: 0;
  background: none;
}
.sidebar-toggler .sidebar-icon {
  height: 2px;
  background: #333;
  display: block;
  border-radius: 100px;
  position: relative;
}
.sidebar-toggler .sidebar-icon:before,
.sidebar-toggler .sidebar-icon:after {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  width: 100%;
  height: inherit;
  background: inherit;
  transition: 0.3s ease;
}
.sidebar-toggler .sidebar-icon:after {
  top: 8px;
}
[data-bs-theme="dark"] .sidebar-toggler .sidebar-icon {
  background: #fff;
}
body.sidebar-collapse .sidebar-toggler .sidebar-icon:before,
body.sidebar-collapse .sidebar-toggler .sidebar-icon:after {
  width: 70%;
}
.swal2-confirm {
  background: var(--theme-color) !important;
  border-color: var(--theme-color) !important;
  color: #fff;
}
table.table {
  font-size: 0.875rem;
}
.table-muted {
  background: #eee;
  color: #aaa;
}
.rounded-xl {
  border-radius: 15px;
}
.action-hover {
  visibility: hidden;
}
tr:hover .action-hover {
  visibility: visible;
}
.container-mobile {
  width: 480px;
  max-width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}
.mobile-nav {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
  background: #fff;
  box-shadow: 0px -5px 30px -10px #0001;
}
.mobile-nav .nav .nav-link {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  align-items: center;
  justify-content: center;
  color: #aaa;
}
.mobile-nav .nav .nav-item.active .nav-link {
  color: var(--theme-color);
  font-weight: bold;
}
.mobile-nav .icon {
  font-size: 1.2rem;
}
.mobile-nav .text {
  font-size: 0.8rem;
}
.offcanvas {
  z-index: 1051;
}
.offcanvas-backdrop {
  z-index: 1050;
}
@media (min-width: 992px) {
  .sidebar {
    width: var(--sidebar-width) !important;
  }
  .navbar-expand-lg.navbar-vertical ~ .navbar,
  .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
    margin-left: var(--sidebar-width) !important;
  }
  body.sidebar-collapse .sidebar {
    display: block;
    transform: translateX(-100%);
  }
  body.sidebar-collapse .navbar-expand-lg.navbar-vertical ~ .navbar,
  body.sidebar-collapse .navbar-expand-lg.navbar-vertical ~ .page-wrapper {
    margin-left: 0 !important;
  }
}

/* ============= */
.bg-primary {
  background-color: var(--theme-color) !important;
}

.bg-gradient-primary {
  background: linear-gradient(#004fc0, #0359d5);
}

.bg-gold {
  color: white;
  background: linear-gradient(#e6c192, #dba75d);
}

.bg-silver {
  background: linear-gradient(#ebebeb, #b8b5b5);
}

.bg-bronze {
  background: linear-gradient(#f0d1c1, #e5a48e);
}

.text-primary {
  color: var(--tblr-primary) !important;
}

.center-absolute {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.btn-accent {
  color: var(--tblr-primary);
  background-color: var(--accent-color);
}

.text-justify{
  text-align: justify;
}

/* .loginbox {
  background: url(../../static/login/box-bg-login.png);
  background-size: cover;
  background-position: right;
} */

.loginbox .logo img {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.container-program::before {
  content: "";
  position: absolute;
  left: 0;
  top: -40;
  height: 40px;
  width: 100%;
  background-color: white;
  border-radius: 30px 30px 0 0;
  border: 2px solid white;
}

.horizontal-slider {
  width: 100%;
  overflow-x: scroll;
}

.horizontal-slider::-webkit-scrollbar,
.slider-container::-webkit-scrollbar,
.slide::-webkit-scrollbar {
  display: none !important;
}

.horizontal-slider {
  -ms-overflow-style: none;
}

.slider-container {
  display: block;
  white-space: nowrap;
}

.story {
  width: 86px;
}

.story-name {
  max-width: 10ch;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Leaderboard */

.leaderboard.leaderboard-first {
  transform: translateY(-10px);
}

.leaderboard img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid white;
  margin-bottom: 16px;
}

.leaderboard.leaderboard-first img {
  width: 90px;
  height: 90px;
  border-color: #f4ad47;
}

.leaderboard.leaderboard-second img {
  border-color: #c2c2cf;
}

.leaderboard.leaderboard-third img {
  border-color: #e2957b;
}

.leaderboard .leaderboard-number {
  width: 20px;
  height: 20px;
  font-size: 12px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: white;
  border-radius: 100%;
}

.leaderboard.leaderboard-first .leaderboard-number {
  background-color: #f4ad47;
}

.leaderboard.leaderboard-second .leaderboard-number {
  background-color: #c2c2cf;
}

.leaderboard.leaderboard-third .leaderboard-number {
  background-color: #e2957b;
}

.artefact .overlay {
  background: rgb(17, 18, 18);
  background: linear-gradient(
    0deg,
    rgba(17, 18, 18, 1) 0%,
    rgba(17, 18, 18, 0.3) 100%
  );
  filter: opacity(0);
  transition: all 0.4s;
}

.artefact:hover .overlay {
  filter: opacity(1);
}

.artefact-img {
  height: 240px;
  width: 100%;
  object-fit: cover;
}
