/* Sidebar Styles */
#sidebar-wrapper {
  background: #343a40;
  color: #fff;
  min-height: 100vh;
  height: 100%;
  padding: 0;
  overflow-y: auto; /* Add scroll for overflow content */
}

#sidebar-wrapper .sidebar-header {
  padding: 20px;
  background: #343a40;
  color: #fff;
}

#sidebar-wrapper .list-group-item {
  background: #343a40;
  color: #fff;
  border: none;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 0.875rem; /* Smaller font size */
}

.list-group-sidebar {
  background: #343a40;
  height: 100vh;
}

#sidebar-wrapper .list-group-item:hover {
  background: #495057;
  color: #fff;
}

#sidebar-wrapper .list-group-item.active {
  background: #007bff;
  color: #fff;
  border: none;
}

#sidebar-wrapper .submenu .list-group-item {
  padding-left: 2rem;
  background: #343a40;
  border: none;
  font-size: 0.875rem; /* Smaller font size */
}

#sidebar-wrapper .submenu .list-group-item:hover {
  background: #495057;
  color: #fff;
}

#sidebar-wrapper .submenu .list-group-item.active {
  background: #007bff;
  color: #fff;
}

#sidebar-wrapper .submenu {
  background: #343a40; /* Ensure the background of the submenu matches the sidebar */
  border-left: 1px solid #343a40; /* This ensures that there is no white gap on the left */
  padding-left: 0; /* Remove padding to avoid white space on the left */
}

/* Toggle Button */
.btn-light {
  background: #343a40;
  border: none;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-light:hover {
  background: #495057;
  color: #fff;
}

/* Sidebar Collapse */
#sidebar-wrapper.toggled {
  width: 80px;
}

#sidebar-wrapper.toggled .submenu {
  display: none;
}

#sidebar-wrapper.toggled .list-group-item span {
  display: none;
}

#sidebar-wrapper.toggled .sidebar-header h3 {
  display: none;
}

#sidebar-wrapper.toggled .sidebar-header .btn-light {
  display: block;
}

.collapse.hide {
  display: none;
}

.collapse.show {
  display: block;
}

/* Overall Page Font Size */
body {
  font-size: 0.875rem; /* Smaller font size */
}

.card-img-top {
  width: 100%;
  height: auto;
}
.card {
  border: 1px solid #ddd;
}
.card-title {
  font-size: 1.25rem;
  font-weight: bold;
}
.card-text {
  font-size: 1rem;
}
.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}
.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.card.theme-card {
  border: 1px solid #ddd;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card.theme-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card.theme-card.selected {
  border: 2px solid #007bff;
  background-color: #f0f8ff;
}

.card.theme-card.selected .card-title {
  color: #007bff;
}

.card.theme-card .btn {
  transition: background-color 0.2s, border-color 0.2s;
}

.card.theme-card .btn:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.table-responsive {
  overflow-x: auto;
}

.table .text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table .text-nowrap {
  white-space: nowrap;
}

.table td,
.table th {
  vertical-align: middle;
}

.block {
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}
.block-header {
  font-size: 1.25rem;
  margin-bottom: 15px;
  color: #495057;
  border-bottom: 1px solid #ced4da;
  padding-bottom: 5px;
}
.category-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ced4da;
  padding: 10px;
}
.form-check {
  margin-left: 0;
}
.form-check-indent {
  margin-left: 20px;
}

.ui-state-highlight {
  height: 1.5em;
  line-height: 1.2em;
}
.connected-sortable {
  border: 1px solid #ddd;
  min-height: 150px;
  list-style-type: none;
  margin: 0;
  padding: 10px;
  width: 100%;
}
.connected-sortable li {
  margin: 5px;
  padding: 5px;
  border: 1px solid #ddd;
  cursor: move;
}
