/* Improved Checkbox Styling */
.custom-control.custom-checkbox {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
}

.custom-control.custom-checkbox .custom-control-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-control.custom-checkbox .custom-control-label {
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.custom-control.custom-checkbox .custom-control-label .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.custom-control.custom-checkbox .custom-control-label:hover .checkmark {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-control.custom-checkbox .custom-control-input:checked ~ .custom-control-label .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.custom-control.custom-checkbox .custom-control-input:checked ~ .custom-control-label .checkmark:after {
  content: "";
  position: absolute;
  display: block;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-control.custom-checkbox .custom-control-input:focus ~ .custom-control-label .checkmark {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.custom-control.custom-checkbox .custom-control-input:disabled ~ .custom-control-label .checkmark {
  background-color: #e9ecef;
  border-color: #ced4da;
  cursor: not-allowed;
}

.custom-control.custom-checkbox .custom-control-input:disabled ~ .custom-control-label {
  color: #6c757d;
  cursor: not-allowed;
}

/* Form field improvements */
.form-control-sm {
  border-radius: 4px;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-sm:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Modal improvements */
.modal-content {
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}

/* Button improvements */
.btn {
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #007bff;
  border-color: #007bff;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #004085;
  transform: translateY(-1px);
}

.btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #1e7e34;
  border-color: #1c7430;
  transform: translateY(-1px);
}

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

.btn-danger:hover {
  background-color: #c82333;
  border-color: #bd2130;
  transform: translateY(-1px);
}

/* Table improvements */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Card improvements */
.card {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}

body {
  font-size: .875rem;
  background-color: #f8f9fa;
}

.ui-autocomplete {
  max-height: 100px;
  overflow-y: auto;
  /* prevent horizontal scrollbar */
  overflow-x: hidden;
}
/* IE 6 doesn't support max-height
 * we use height instead, but this forces the menu to always be this tall
 */
* html .ui-autocomplete {
  height: 100px;
}

.ui-widget.ui-widget-content
{
  margin-top: 10px !important;
  z-index: 10000;

}

.modal-xl
{
  max-width:1280px;
}

.hidden
{
  display:none;
}

.grouped a small
{
  color: red !important;
}

#d3_selectable_force_directed_graph svg {
  border: 1px solid;
  font: 13px sans-serif;
  text-anchor: end;
}

#d3_selectable_force_directed_graph .node {
  stroke: #fff;
  stroke-width: 1.5px;
}

.node .selected {
  fill: green !important;
}

.link {
  stroke: #999;
  cursor: no-drop;
}

.email-form { 
  display: none
}

#email-navbar {
  border-radius: 1rem;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid lightgray;
}

#email-navbar > ul {
  flex-direction: row;
  justify-content: space-between;
  gap: 2rem;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none; /* Initially hide the overlay */
}

.spinner {
  border: 6px solid #f3f3f3;
  border-radius: 50%;
  border-top: 6px solid #3498db;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.overlay-text {
  color: white;
  font-size: 18px;
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.feather {
  // ... existing code ...
}