:root {
  --bs-primary: #0d6efd;
  --bs-primary-rgb: 13, 110, 253;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Custom focus styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Search input enhancement */
.input-group:has(#searchQuery:focus) {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
  border-radius: 0.375rem;
}

/* Sortable column headers */
th a {
  cursor: pointer;
  transition: all 0.2s ease;
}

th a:hover {
  color: var(--bs-primary) !important;
}

th a i.bi-chevron-up,
th a i.bi-chevron-down {
  font-size: 0.75rem;
  color: var(--bs-primary);
}

/* Navbar customization */
.navbar-brand {
  font-size: 1.25rem;
}

.navbar .nav-link {
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
}

.navbar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
}

/* Card enhancements */
.card {
  border: none;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-2px);
}

/* Table improvements */
.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

/* Image thumbnail hover effect */
.img-thumbnail {
  transition: all 0.3s ease;
  border: 2px solid #dee2e6;
}

.img-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: var(--bs-primary);
}

/* Alert animations */
.alert {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Webcam container */
#my_camera {
  background-color: #f8f9fa;
  position: relative;
}

#my_camera:empty::after {
  content: "Initializing camera...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #6c757d;
  font-size: 1.2rem;
}

/* Form control enhancements */
.form-control-lg {
  font-size: 1.1rem;
}

.input-group-text {
  border: none;
}

/* Pagination styling */
.pagination {
  margin-top: 1rem;
}

.page-link {
  color: var(--bs-primary);
  border-radius: 0.375rem;
  margin: 0 2px;
}

.page-item.active .page-link {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Footer styling */
.footer {
  background-color: #f8f9fa !important;
  border-top: 1px solid #dee2e6;
}