html {
  width: 100%;
}

body {
  overflow-x: hidden !important;
}

body.show-spinner>main {
  overflow: hidden !important;
}

/* Hide everything under body tag */
body.show-spinner>* {
  opacity: 0;
}

/* Spinner */
body.show-spinner::after {
  content: " ";
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top-color: rgba(0, 0, 0, 0.3);
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
  left: calc(50% - 15px);
  top: calc(50% - 15px);
  position: fixed;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

/* Dark Mode Support for List Group Items */
body[data-theme*="dark"] .list-group-item-action,
body.dark-mode .list-group-item-action,
body.dark .list-group-item-action {
  background-color: #212220 !important;
  color: #e0e0e0 !important;
  border-bottom: 1px solid #313131 !important;
}

body[data-theme*="dark"] .list-group-item-action:hover,
body.dark-mode .list-group-item-action:hover,
body.dark .list-group-item-action:hover {
  background-color: #2a2a28 !important;
  color: #ffffff !important;
}

body[data-theme*="dark"] .list-group-item-action strong,
body.dark-mode .list-group-item-action strong,
body.dark .list-group-item-action strong {
  color: #ffffff !important;
}

body[data-theme*="dark"] .list-group-item-action .text-muted,
body.dark-mode .list-group-item-action .text-muted,
body.dark .list-group-item-action .text-muted {
  color: #a0a0a0 !important;
}

body[data-theme*="dark"] .list-group-item-action:last-child,
body.dark-mode .list-group-item-action:last-child,
body.dark .list-group-item-action:last-child {
  border-bottom: none !important;
}

/* Dark Mode Support for Cards */
body[data-theme*="dark"] .card,
body.dark-mode .card,
body.dark .card {
  background-color: #212220 !important;
  color: #e0e0e0 !important;
}

body[data-theme*="dark"] .card-body,
body.dark-mode .card-body,
body.dark .card-body {
  color: #e0e0e0 !important;
}

body[data-theme*="dark"] .card .text-muted,
body.dark-mode .card .text-muted,
body.dark .card .text-muted {
  color: #a0a0a0 !important;
}
