/* Navbar */
.navbar {
   background-color: #0a0a0a !important; 
}

/* Smaller burger button */
.navbar-toggler {
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
}

/* Remove white border from dark theme toggler */
.navbar-toggler[data-bs-theme="dark"],
.navbar-toggler[data-bs-theme="dark"] .navbar-toggler-icon {
  border: none !important;
  box-shadow: none !important;
}

.nav-link:hover {
  color: #8dc63f !important;
}

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

html, body {
  overflow-x: hidden;
}

/* General buttons */
.btn-square {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem; 
    font-size: 1.2rem;      
}

/* Base content area (mobile-first) */
.content-area {
  padding-top: 100px; /* height of navbar */
  width: 100%;
  margin-left: 0;      
  margin-right: 0;
  max-width: 100%;     /* ensure no residual max-width */
}

/* Desktop: sidebar exists */
@media (min-width: 992px) {
  .content-area {
    /* Margin left = sidebar left offset + sidebar width */
    margin-left: calc(max(0px, 50% - 800px) + 210px);
    margin-right: 20px;
    width: auto;          /* fill remaining space */
    max-width: 1400px;    /* optional container cap */
  }
}

/* For pages that have a datatable */
.has-datatable {
    padding-bottom: 50px; /* space for footer + extra buffer */
}

/* Footer */
.footer {
   background-color: #0a0a0a !important; 
}

/*
  Formatting for form fields
*/
/* Chrome, Safari, Edge, Opera */
.no-spinners::-webkit-inner-spin-button,
.no-spinners::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinners {
    -moz-appearance: textfield;
}

.input-group-text.fixed-width {
    width: 2.5rem; /* adjust to taste */
    justify-content: center; /* centers the symbol */
}

/* Dark shader for dark theme */
[data-bs-theme="dark"] .shadow {
  box-shadow: 0 0.5rem 1rem rgba(255, 255, 255, 0.2);
}

/* Hand icon for image-hover elements */
.image-hover {
  cursor: pointer;
}

.image-hover:hover {
  transform: scale(1.02);
  transition: transform 0.2s;
  cursor: pointer;
}