a {
  color: #007bff;
  text-decoration: none;
}

img {
  max-width: 100%;
  width: auto;
}

/* Navigation */
.wrapper {
  display: flex;
  min-height: calc(100vh - 70px);
}

#sidebar {
  width: 250px;
  background: #343a40;
  color: white;
  padding-top: 20px;
  transition: all 0.3s;
}

#content {
  flex-grow: 1;
  padding: 20px;
  height: calc(100vh - 70px);
  overflow: auto;
  background-color: var(--bs-gray-dark);
  width: calc(100vw - 250px);
  max-width: 100%;
}

.bg-dark-gray {
  background-color: var(--bs-gray-dark);
}

@media (max-width: 1200px) {
  #sidebar {
    position: fixed;
    left: -250px;
    height: calc(100vh - 70px);
    z-index: 1000;
    overflow: auto;
  }

  #sidebar.active {
    left: 0;
  }
}

@media (min-width: 1201px) {
  #sidebar {
    position: relative;
    left: 0;
    height: calc(100vh - 70px);
    overflow: auto;
  }

  #sidebar.active {
    left: -250px;
    width: 0;
  }
}

.user-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: blue;
  color: white;
  font-weight: bold;
  font-size: 1.2em;
}

.sidebar-heading {
  text-transform: uppercase;
  font-size: 0.7em;
  font-weight: bold;
  padding: 10px;
}

#sidebar .nav-link {
  padding: 5px 15px;
  color: white;
  transition: all 0.3s;
}

#sidebar .nav-link:hover {
  color: #ccc;
}

.breadcrumb-item::before {
  color: #ccc !important;
}

/* Dark forms */
.form-container {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: auto;
}

.form-control {
  background-color: #252525;
  border: 1px solid #444;
  color: #ffffff;
}

.form-control::placeholder {
  color: #bbbbbb;
  opacity: 0.7;
}

.form-control:focus {
  background-color: #2d2d2d;
  border-color: #007bff;
  color: #ffffff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

textarea.form-control {
  min-height: 200px;
  overflow: hidden;
  resize: vertical;
  background-color: #252525;
  color: white;
  border: 1px solid #444;
}

textarea.form-control:focus {
  background-color: #2d2d2d;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-label {
  color: #e0e0e0;
}

.form-check-input {
  background-color: #333;
  border-color: #555;
}

.form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.form-select {
  background-color: #252525;
  border: 1px solid #444;
  color: white;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.form-select:focus {
  background-color: #2d2d2d;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-text {
  color: #bbbbbb;
}

.card.bg-black,
.card.text-bg-dark {
  background-color: #1e1e1e !important;
  border-color: #444 !important;
}

.table-dark {
  --bs-table-bg: #252525;
  --bs-table-striped-bg: #2a2a2a;
  --bs-table-hover-bg: #333;
  --bs-table-border-color: #444;
}

/* DataTables on dark background */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background-color: #252525;
  border: 1px solid #444;
  color: #fff;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #ccc !important;
}

.modal-content {
  background-color: #1e1e1e;
  color: white;
}
