body {
  font-size: .875rem;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
  /*position: fixed;*/
  top: 0;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(148, 163, 184, 0.12);
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: rgba(226, 232, 240, 0.78);
  border-radius: .75rem;
  margin: 0 .75rem .45rem;
  padding: .6rem .85rem;
  transition: background-color .2s ease, color .2s ease;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: rgba(148, 163, 184, 0.7);
  transition: color .2s ease;
}

.sidebar .nav-link.active {
  color: #f8fafc;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.sidebar .nav-link:hover {
  color: #f8fafc;
  background-color: rgba(37, 99, 235, 0.12);
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(148, 163, 184, 0.72);
}

/*
 * Navbar
 */

/* Remove grey background/box on dashboard navbar brand */
.navbar.navbar-light .navbar-brand {
  background-color: transparent;
  box-shadow: none;
  padding-top: .25rem;
  padding-bottom: .25rem;
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
  background-color: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar .form-control::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.form-control-dark {
  color: #e2e8f0;
  background-color: rgba(30, 41, 59, 0.75);
  border-color: rgba(96, 165, 250, 0.4);
}

.form-control-dark:focus {
  border-color: rgba(96, 165, 250, 0.85);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Mobile tweaks for credits card sizing */
/* Credits card width on all screens, with compact padding on mobile */
#sidebarMenu .credits-card {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 576px) {
  #sidebarMenu .credits-card .card-body { padding: .5rem .75rem; }
}
.btn-sm-rounded {
  border-radius: 999px;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.btn-download {
  border-radius: 999px;
  padding: 0.55rem 1.5rem;
  width: fit-content;
}

.btn-download-soft {
  border-radius: 999px;
  padding: 0.6rem 1.75rem;
  width: fit-content;
  background-color: rgba(37, 99, 235, 0.15);
  color: #dbeafe;
  border: 1px solid rgba(96, 165, 250, 0.4);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-download-soft:hover,
.btn-download-soft:focus {
  background-color: rgba(37, 99, 235, 0.22);
  color: #eff6ff;
  border-color: rgba(96, 165, 250, 0.6);
}
