/* Variables */
:root {
  /* Colors */
  --bs-body-color: #374151;
  --bs-body-bg: #F2F4F6;
  --bs-primary-rgb: 8, 50, 108;
  --bs-gray-800-rgb: 31, 41, 55;

  --bs-font-sans-serif: "Roboto", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);

  --sidebar-width: 250px;

  /* Cards */
  --bs-card-spacer-y-sm: 0.25rem;
  --bs-card-spacer-x-sm: 0.25rem;
  --bs-card-spacer-y-lg: 1.25rem;
  --bs-card-spacer-x-lg: 1.25rem;
}

/* Sidebar stuff */
.sidebar {
  display: block;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  max-height: 100%;
  overflow-y: auto;
  width: 100%;
  transition: max-width 0.1s;
}

@media (min-width: 768px) {
  .sidebar {
    width: 100%;
    max-width: var(--sidebar-width);
  }
}

.sidebar .nav-item {
    max-width: var(--sidebar-width);
    margin-bottom: .2rem;
}

.sidebar .nav-link {
    border-radius: 0.5rem;
}

.sidebar .nav-link .sidebar-icon {
    margin-right: .5rem;
    color: #9CA3AF; 
}

.sidebar .nav-link .link-arrow {
      font-size: 0.875rem; 
}

.sidebar .nav-link[data-bs-toggle=collapse][aria-expanded=true] .link-arrow {
    transform: rotate(90deg);
    transition: all 0.2s ease; 
}

.sidebar .nav-item .nav-link:hover {
  color: #F2F4F6;
  background-color: #374151;
  cursor: pointer;
}

.sidebar .icon {
    width: 16px;
    height: 16px;
}

.dropdown-divider {
  border-top: 1px solid #E3E3E3;
}

/* Buttons */
.btn {
  --bs-btn-font-weight: 500;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: 0.5rem;
}

.btn:hover {
  color: inherit;
}

.btn-hover-lift {
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--bs-btn-hover-color);
}

.btn-primary {
  --bs-btn-bg: #1F2937;
  --bs-btn-border-color: #1F2937;
  --bs-btn-disabled-bg: #1F2937;
  --bs-btn-disabled-border-color: #1F2937;
}

.btn-primary:hover {
  background-color: #161d27;
  border-color: #161d27;
}

.btn-info {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #2361ce;
  --bs-btn-border-color: #2361ce;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #1e52af;
  --bs-btn-hover-border-color: #1c4ea5;
  --bs-btn-focus-shadow-rgb: 11, 172, 204;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #1c4ea5;
  --bs-btn-active-border-color: #1a499b;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #ffffff;
  --bs-btn-disabled-bg: #2361ce;
  --bs-btn-disabled-border-color: #2361ce;
}

.btn-info:hover {
  background-color: #1f57b8;
  border-color: #1f57b8;
}

.btn-warning {
  --bs-btn-color: #1F2937;
  --bs-btn-bg: #f3c78e;
  --bs-btn-border-color: #f3c78e;
  --bs-btn-hover-color: #1F2937;
  --bs-btn-hover-bg: #f5cf9f;
  --bs-btn-hover-border-color: #f4cd99;
  --bs-btn-focus-shadow-rgb: 11, 172, 204;
  --bs-btn-active-color: #1F2937;
  --bs-btn-active-bg: #f5d2a5;
  --bs-btn-active-border-color: #f4cd99;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #1F2937;
  --bs-btn-disabled-bg: #f3c78e;
  --bs-btn-disabled-border-color: #f3c78e;
}

.btn-warning:hover {
  background-color: #f1bc77;
  border-color: #f1bc77;
}

.btn-gray {
  --bs-btn-color: #1F2937;;
  --bs-btn-bg: #E5E7EB;
  --bs-btn-border-color: #E5E7EB;
  --bs-btn-hover-color: #1F2937;
  --bs-btn-hover-bg: #e9ebee;
  --bs-btn-hover-border-color: #e8e9ed;
  --bs-btn-active-color: #1F2937;
  --bs-btn-active-bg: #eaecef;
  --bs-btn-active-border-color: #e8e9ed;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #1F2937;
  --bs-btn-disabled-bg: #E5E7EB;
  --bs-btn-disabled-border-color: #E5E7EB;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(17, 24, 39, 0.075), 0 0 0 0.18rem rgba(199, 203, 208, 0.5);
}

.btn-gray:focus {
  color: #1F2937;
  background-color: #e9ebee;
  border-color: #e8e9ed;
  box-shadow: inset 0 3px 5px rgba(17, 24, 39, 0.125), 0 0 0 0.18rem rgba(199, 203, 208, 0.5);
}

.btn-danger {
  --bs-btn-color: #FFFFFF;;
  --bs-btn-bg: #E11D48;
  --bs-btn-border-color: #E11D48;
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: #bf193d;
  --bs-btn-hover-border-color: #b4173a;
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: #b4173a;
  --bs-btn-active-border-color: #a91636;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #FFFFFF;
  --bs-btn-disabled-bg: #E11D48;
  --bs-btn-disabled-border-color: #E11D48;
}

.btn-danger:hover {
  background-color: #ca1a41;
  border-color: #ca1a41;
}

.btn-outline-success {
  --bs-btn-color: #10B981;
  --bs-btn-border-color: #10B981;
  --bs-btn-hover-color: #1F2937;
  --bs-btn-hover-bg: #10B981;
  --bs-btn-hover-border-color: #10B981;
  --bs-btn-active-color: #1F2937;
  --bs-btn-active-bg: #10B981;
  --bs-btn-active-border-color: #10B981;
  --bs-btn-disabled-color: #10B981;
  --bs-btn-disabled-bg: transparent;
}

.btn-outline-danger {
  --bs-btn-color: #E11D48;
  --bs-btn-border-color: #E11D48;
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: #E11D48;
  --bs-btn-hover-border-color: #E11D48;
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: #E11D48;
  --bs-btn-active-border-color: #E11D48;
  --bs-btn-disabled-color: #E11D48;
  --bs-btn-disabled-bg: transparent;
}


/* Form inputs */
.form-control, .form-select {
  font-size: 0.9rem;
  background-color: var(--bs-white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-dark-rgb);
    background-color: var(--bs-white);
    box-shadow: 0 0 0 0.2rem var(--bs-gray-200);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--bs-dark-rgb);
    background-color: var(--bs-white);
    box-shadow: 0 0 0 0.2rem var(--bs-gray-200);
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: var(--bs-dark-rgb);
    background-color: var(--bs-white);
    box-shadow: 0 0 0 0.2rem var(--bs-gray-200);
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--bs-dark-rgb);
}

.form-check {
  padding-left: 1.8em;
}

.form-check-input {
  width: 1.125em;
  height: 1.125em;
  margin-top: 0.1875em;
  border: 1px solid var(--bs-gray-200);
}

.form-check-input:focus {
  border-color: var(--bs-dark-rgb);
  outline: 0;
  box-shadow: 0 0 0 0.2rem var(--bs-gray-200);
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.form-label.fw-semibold {
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-select-sm {
  font-size: 0.875rem;
}

/* Tables */
.table {
  --bs-table-bg: transparent;
}

.table > :not(:last-child) > :last-child > * {
  border-bottom-color: currentColor;
}

.table thead th {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 0;
}

.table td,
.table th {
  font-size: 0.875rem;
  white-space: nowrap;
}

.scene-row {
  transition: background-color 0.15s ease;
}

.scene-row:hover {
  background-color: #F9FAFB;
}

.scene-row a {
  transition: color 0.15s ease;
}

.scene-row a:hover {
  color: #1F2937 !important;
  text-decoration: underline !important;
}

.table-light {
  background-color: #F9FAFB;
}

code {
  background-color: #F3F4F6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* Tabs */
.nav-tabs .nav-link {
  border: none;
  color: #6B7280;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
  color: #1F2937;
  border-color: transparent;
}

.nav-tabs .nav-link.active {
  color: #1F2937;
  background-color: transparent;
  border-bottom: 3px solid #1F2937;
  font-weight: 600;
}

/* Cards */
.card {
  background-color: #FFFFFF;
}

.card-sm {
  padding: var(--bs-card-spacer-y-sm) var(--bs-card-spacer-x-sm);
}

.card-lg {
  padding: var(--bs-card-spacer-y-lg) var(--bs-card-spacer-x-lg);
}

.card-header.bg-primary {
  background: linear-gradient(135deg, #1F2937 0%, #374151 100%) !important;
}

.card-footer {
  background-color: #F9FAFB !important;
}

/* Images */

.image-xl {
  height: 20rem;
}

.image-xl img {
  height: 20rem;
}

.image-lg {
  height: 12rem;
}
.image-lg img {
  height: 12rem;
}

.image-md {
  height: 5.5rem;
}
.image-md img {
  height: 5.5rem;
}

.image-sm {
  height: 3rem;
}

.image-sm img {
  height: 3rem;
}

.image-xs {
  height: 1.5rem;
}

.image-xs img {
  height: 1.5rem;
}

/* Alerts */
.alert-primary {
  background-color: #EFF6FF;
  color: #1E40AF;
  border-left: 4px solid #3B82F6;
}

.alert-primary .badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
}

.alert-info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border-left: 4px solid #3B82F6;
}


/* Various */
a {
  text-decoration: none;
}

.link-primary {
    color: var(--bs-body-color) !important;
}

.content {
  overflow: hidden;
  padding: 0 1rem 0 1rem;
  transition: all 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .content {
    transition: none;
  }
}

@media (min-width: 992px) {
 .content {
    margin-left: var(--sidebar-width);
  }
}

.text-primary {
  color: #1F2937 !important;
}

.border-bottom {
  border-color: #E5E7EB !important;
}

.bg-light {
  background-color: #F9FAFB !important;
}

.gap-3 {
  gap: 1rem !important;
}

.badge.bg-secondary {
  background-color: #6B7280 !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 0.5rem;
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

/* Old */

.divider:after,
.divider:before {
    content: "";
    flex: 1;
    height: 1px;
    background: #eee;
}

.bg-gray-800 {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-gray-800-rgb), var(--bs-bg-opacity)) !important;
}

.btn-small {
    padding: 5px;
}

.btn-fixed {
    width: 85px;
    text-align: center;
}

.form-check-inline {
    display: inline-block;
    margin-right: 10px; /* Adjust as needed */
}

/* For the draggable sprites in combat */

.lteam-sprite {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.rteam-sprite {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.team-container {
    display: flex;
    justify-content: flex-start;
}

.lteam-sprite-1 {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.rteam-sprite-1 {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.lteam-sprite-2 {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.rteam-sprite-2 {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.lteam-sprite-3 {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.rteam-sprite-3 {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.lteam-sprite-4 {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}

.rteam-sprite-4 {
    width: 64px;
    height: 64px;
    margin: 10px;
    display: inline-block;
    background-size: cover;  /* Ensure the image covers the whole div */
    background-position: center; /* Center the image within the div */
    cursor: grab;
}