body {
  font-family: 'Inter', sans-serif;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-button {
  cursor: pointer;
}

.tab-button.active {
  background-color: #059669;
  color: white;
}

.scanner-container {
  position: relative;
}

#scanResult {
  min-height: 100px;
}

.student-row {
  transition: all 0.3s ease;
}

.student-row.picked-up {
  background-color: #D1FAE5;
  border-left: 4px solid #10B981;
}

.student-row.all-call {
  background-color: #D1FAE5;
  border-left: 4px solid #10B981;
}

/* Sticky Columns for Mobile Tables */
.sticky-col {
  position: sticky;
  left: 0;
  z-index: 10;
  background-color: inherit;
  /* Inherit from row */
}

thead th.sticky-col {
  z-index: 20;
  /* Higher than body cells */
  background-color: #f3f4f6;
  /* bg-gray-100 */
}

/* Ensure row background works with sticky */
tr.student-row {
  background-color: white;
}

tr.student-row.hover\:bg-emerald-200:hover td.sticky-col {
  background-color: #a7f3d0;
}

/* manual specific hover inheritance attempt */
tr.student-row.hover\:bg-gray-50:hover td.sticky-col {
  background-color: #f9fafb;
}

/* Active State for Call Buttons */
.call-btn-active {
  background-color: #DC2626 !important;
  color: white !important;
  border-color: #B91C1C !important;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

.pickup-animation {
  animation: pickupPulse 1s ease-in-out;
}

@keyframes pickupPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.qr-code-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  display: inline-block;
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  padding: 16px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  transform: translateX(110%);
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(0);
}

.notification.success {
  background-color: #10B981;
}

.notification.error {
  background-color: #EF4444;
}

.notification.info {
  background-color: #059669;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 90%;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  display: none;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #059669;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

#loadingText {
  margin-top: 1rem;
  color: #374151;
  font-weight: 500;
}

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

  100% {
    transform: rotate(360deg);
  }
}

th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

th.sortable:hover {
  background-color: #e5e7eb;
}

th.sortable i {
  margin-left: 0.5rem;
  color: #9ca3af;
}

th.sortable.sorted-asc i {
  color: #059669;
  transform: rotate(0deg);
}

th.sortable.sorted-desc i {
  color: #059669;
  transform: rotate(180deg);
}
