.navbar-vertical .navbar-nav .nav-link {
  font-size: 0.85rem !important;
}
.game-card:hover {
  scale: 1.05;
}
.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.truncate-text-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-header .navbar #navbarNav #leftNav > li > a#sidebar-toggle {
  padding: 9px 0;
  margin-right: 10px;
  transform: rotate(0);
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
body.sidebar-hidden .page-header .navbar #navbarNav #leftNav > li > a#sidebar-toggle {
  transform: rotate(-180deg);
}
.page-header .navbar #navbarNav #leftNav > li > a#sidebar-toggle:hover {
  background: 0 0;
}
.page-sidebar {
  position: fixed;
  /*height: calc(100% - 148px);*/
  height: calc(100% - 12rem);
  background: #fff;
  box-shadow: 0 1px 3px 0 rgba(54, 74, 99, 0.05);
  top: 118px;
  border-radius: 15px;
  width: 260px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  transform: scale(1, 1);
  transform-origin: left;
  /*overflow: visible;*/
  overflow: auto;
}
.page-sidebar .ps__rail-y {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  background-color: transparent !important;
}
.page-sidebar .accordion-menu {
  /*height: 100% !important;*/
  padding: 20px 15px;
}
.page-sidebar .accordion-menu > li > a {
  display: block;
  color: #5b5b5b;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  line-height: 45px;
  padding: 0 15px;
  text-decoration: none;
}
.page-sidebar .accordion-menu > li.active-page > a {
  border-radius: 10px;
  background-color: #f3f6f9;
  color: #7888fc;
  font-weight: 500;
}
.page-sidebar .accordion-menu > li.active-page > a > svg {
  color: #7888fc !important;
}
.page-sidebar .accordion-menu > li.active-page ul li a.active {
  font-weight: 500;
  color: #3d3d3d;
}
.page-sidebar .accordion-menu > li > a:hover i {
  margin-left: 5px;
}

.page-sidebar .accordion-menu > div > li > a:hover i {
  margin-left: 5px;
}

.page-sidebar .accordion-menu > div > ul > li > a:hover i {
  margin-left: 5px;
}

.page-sidebar .accordion-menu > li > a > svg {
  width: 21px;
  height: 21px;
  line-height: 40px;
  text-align: center;
  vertical-align: text-top;
  color: #5b5b5b;
  margin-right: 15px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.page-sidebar .accordion-menu li.sidebar-title {
  font-weight: 500;
  padding: 10px 15px;
  font-size: 0.875rem;
  color: #6c757d;
  opacity: 0.8;
}
.page-sidebar .accordion-menu li a .dropdown-icon {
  float: right;
  vertical-align: middle;
  line-height: 44px;
  font-size: 10px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.page-sidebar .accordion-menu li.open > a > .dropdown-icon {
  visibility: visible;
  transform: rotate(90deg);
}
.page-sidebar .accordion-menu li ul {
  padding: 5px 0;
  list-style: none;
}
.page-sidebar .accordion-menu li ul li a {
  color: #5b5b5b;
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  position: relative;
  -webkit-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
}
.page-sidebar .accordion-menu li ul li a:hover {
  margin-left: 5px;
}
.page-sidebar .accordion-menu li ul li a i {
  font-size: 10px;
  padding-right: 21px;
  padding-left: 6px;
}
body.sidebar-hidden .page-sidebar {
  transform: scale(0, 1);
}
.page-content {
  margin-top: 71px;
  margin-left: 260px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
.main-wrapper {
  padding: 28px 0 28px 28px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
body.sidebar-hidden .page-content {
  margin-left: 0;
}
body.sidebar-hidden .main-wrapper {
  padding-left: 0;
}
@media (max-width: 767px) {
  .page-header .navbar #navbarNav {
    margin-right: 15px;
  }
  .page-header .navbar .logo {
    flex: 0 !important;
  }

  .navbar-nav {
    display: -webkit-inline-box;
  }

  .page-header .navbar #navbarNav .navbar-nav li a:not(#sidebar-toggle):not(#logo-item) {
    display: none;
  }

  .page-header .navbar #navbarNav #leftNav > li > a#sidebar-toggle {
    transform: rotate(-180deg);
  }
  body.sidebar-hidden .page-header .navbar #navbarNav #leftNav > li > a#sidebar-toggle {
    transform: rotate(0);
  }
  .page-sidebar {
    transform: scale(0, 1);
    z-index: 999;
  }
  body.sidebar-hidden .page-sidebar {
    transform: scale(1, 1);
  }
  body.sidebar-hidden .page-content {
    transform: translateX(260px);
  }
  .page-content {
    margin-left: 0;
  }
  .page-content .main-wrapper {
    padding-left: 0;
  }
  body.sidebar-hidden .page-content {
    padding-left: 20px;
  }
}
@media (max-width: 767px) {
  body.sidebar-hidden .page-content {
    transform: translateX(100%);
  }
  .page-sidebar {
    width: calc(100% - 40px);
  }
}
@media (max-width: 992px) {
  .topbar-stats {
    display: none;
  }
}
.page-container {
  padding: 20px;
  position: relative;
  display: block;
}
.page-header {
  border-radius: 15px;
  box-shadow: 0 1px 3px 0 rgba(54, 74, 99, 0.05);
  position: fixed;
  width: calc(100% - 40px);
  z-index: 999;
}
.page-header::before {
  content: "";
  display: block;
  width: 100%;
  height: 105px;
  position: fixed;
  top: 0;
  left: 0;
}
.page-header .navbar {
  background: #fff;
  border-radius: 15px;
  padding: 15px 25px;
  display: flex !important;
}
.page-header .navbar .logo {
  display: flex !important;
  flex: 2;
}
.page-header .navbar #navbarNav #leftNav > li > a {
  color: #5b5b5b;
  font-size: 14px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  border-radius: 10px;
  padding: 9px 10px;
  line-height: 22px;
}
.page-header .navbar #navbarNav #leftNav > li > a:hover {
  background: #f3f6fa;
  color: #7889ff;
}
.page-header .navbar #navbarNav #leftNav > li > a i {
  line-height: 22px;
  vertical-align: middle;
  font-size: 22px;
}
.page-header .navbar #navbarNav #leftNav > li > a#sidebar-toggle {
  padding: 9px 0;
  margin-right: 10px;
  transform: rotate(0);
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}

.page-sidebar .accordion-menu > li > a:hover i {
  margin-left: 5px;
}
.badge.bg-warning {
  background-color: #fff5e0 !important;
  color: #ffaf0f;
}
.badge:not(.badge-pill) {
  border-radius: 7px;
}
.badge {
  font-weight: 500;
  padding: 7px 12px;
}
#loginBtn:hover {
  cursor: pointer;
}

.game-image {
  min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;
  margin: 0 auto !important;
  display: block;
}

#headerNav {
  display: flex !important;
  flex: 10;
  align-items: flex-end;
  flex-direction: column;
}

.discord-img {
  width: 100px;
  margin: 0 auto;
  display: block;
}

.join-server {
  max-width: 600px;
  margin: 0 auto;
}

hr {
  border-top: 1px solid;
}

.join-server-btn {
  max-width: fit-content;
  margin: 0 auto;
  display: block;
  color: white !important;
  background: #7289da;
  font-size: 24px;
}

.join-server-btn:hover {
  background: #5c6ead !important;
  color: white !important;
  transform: scale(1.05);
}

/* Basic input styling */
.custom-input {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem; /* Adjust padding for better spacing */
  font-size: 1rem;
  line-height: 1.5;
    color: #c9d2dc;
    background-color: #1f2128;
  background-clip: padding-box;
  border: 1px solid #ced4da; /* Border similar to Bootstrap */
  border-radius: 0.25rem; /* Rounded corners */
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focus state */
.custom-input:focus {
  border-color: #80bdff; /* Bootstrap focus border color */
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); /* Bootstrap focus shadow */
}

/* Placeholder styling */
.custom-input::placeholder {
  color: #6c757d; /* Placeholder text color */
  opacity: 1; /* Ensures placeholder is fully visible */
}

/* Error state (optional) */
.custom-input.is-invalid {
  border-color: #dc3545; /* Bootstrap danger border */
}
.custom-input.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.bs-link {
  color: #0d6efd !important; /* Bootstrap primary blue */
  text-decoration: underline;
}

.bs-lnk:hover {
  color: #0a58ca !important; /* Darker shade of blue on hover */
  text-decoration: underline;
}
.page-sidebar .accordion-menu > div > li > a {
  display: block;
  color: #5b5b5b;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  line-height: 45px;
  padding: 0 15px;
  text-decoration: none;
}

#dropdown-menu li > a {
  display: block;
  color: #5b5b5b;
  -webkit-transition: all 0.1s ease-in-out;
  -moz-transition: all 0.1s ease-in-out;
  -o-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
  line-height: 45px;
  padding: 0 15px;
  text-decoration: none;
  padding-left: 30px;
}

.user-profile {
    text-align: center;
    padding: 20px 0 10px;
    border-bottom: 1px solid #545454;
}

.user-profile .profile-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.user-profile .username {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(225, 235, 245, 0.87);
}

.dark-theme {
      background-color: #1F2128;
}

body.dark-theme .page-sidebar {
  background: #272B33;
}

body.dark-theme .navbar {
  background: #272B33;
}

body.dark-theme .stat-widget {
  background: #272B33;
  border-color: #545454;
  color: rgba(225, 235, 245, 0.87);
}

body.dark-theme {
  --bs-card-bg: #272B33;
  color: rgba(225,235,245,.87);
}

body.dark-theme .card {
  background: #272B33;
}

body.dark-theme :is(h1, h2, h3, h4, h5, h6) {
  color: rgba(225, 235, 245, 0.87);
}

body.dark-theme p {
  color: rgba(225, 235, 245, 0.87);
}

body.dark-theme 
  .page-sidebar .accordion-menu > li > a,
body.dark-theme 
  .page-sidebar .accordion-menu > div > li > a,
body.dark-theme 
  #dropdown-menu li > a {
  color: rgba(225, 235, 245, 0.87);
}

body.dark-theme 
  .page-sidebar .accordion-menu > li > a:hover,
body.dark-theme 
  .page-sidebar .accordion-menu > div > li > a:hover,
body.dark-theme 
  #dropdown-menu li > a:hover,
body.dark-theme 
  .page-sidebar .accordion-menu > li > a:focus,
body.dark-theme 
  .page-sidebar .accordion-menu > div > li > a:focus,
body.dark-theme 
  #dropdown-menu li > a:focus {
  color: rgba(255, 255, 255, 0.95);
}

    .wiki p {
        font-size: 15px;
    }
    .menu a {
        display: block;
        padding: 8px 12px;
        margin-bottom: 4px;
        text-decoration: none;
        background-color: #272b33;
        border-radius: 4px;
        transition: transform 0.2s, background-color 0.2s;
        font-weight: 500;
        color: rgba(225, 235, 245, 0.87);
    }
    .menu a:hover {
        background-color: #1f2128;
        transform: scale(1.05);
    }
    .menu a.active {
        background-color: #1f2128;
        font-weight: bold;
    }

    .tabs-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-bottom: 4px; /* space below tabs if needed */
}

.nav-tabs {
  flex-wrap: nowrap !important;
  display: flex;
  border-bottom: 2px solid #dee2e6;
  min-width: max-content;
}

.nav-item {
  white-space: nowrap;
}

/* Optional: fade effect on edges to hint scrollability */
.tabs-scroll-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 30px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, white);
}

.tabs-scroll-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30px;
  pointer-events: none;
  background: linear-gradient(to left, transparent, white);
}