.scrollbar-thin::-webkit-scrollbar {
  height: 6px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: #94a3b8;
  border-radius: 10px;
}
body {
  font-family: "Poppins", sans-serif;
}
#actionButtons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
#actionButtons button,
#actionButtons label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
#btnDeleteSelected {
  background-color: #8659f1;
  color: white;
  border: none;
  transition: background-color 0.2s;
  display: none;
}
#btnDeleteSelected:hover:not(:disabled) {
  background-color: #6b44d1;
}
#btnDeleteSelected:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#btnExportExcel {
  background-color: #16a34a;
  color: white;
  border: none;
  transition: background-color 0.2s;
}
#btnExportExcel:hover {
  background-color: #15803d;
}
#importExcelLabel {
  background-color: #2563eb;
  color: white;
  border: none;
  transition: background-color 0.2s;
}
#importExcelLabel:hover {
  background-color: #1d4ed8;
}
#btnAddEntry {
  background-color: #2563eb;
  color: white;
  border: none;
  transition: background-color 0.2s;
}
#btnAddEntry:hover {
  background-color: #1d4ed8;
}
#actionButtons i {
  font-size: 1rem;
}
@media (max-width: 640px) {
  .showSearchContainer {
    flex-wrap: nowrap !important;
  }
}
.filterDropdown {
  position: absolute;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-height: 200px;
  overflow-y: auto;
  width: 12rem;
  z-index: 50;
  margin-top: 0.25rem;
  padding: 0.25rem 0;
}
.filterDropdown > div {
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
}
.filterDropdown > div:hover,
.filterDropdown > div.active {
  background-color: #8659f1;
  color: white;
}
.edit-delete-btns {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.edit-delete-btns button {
  cursor: pointer;
  font-size: 1rem;
  color: #8659f1;
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.2s;
}
.edit-delete-btns button:hover {
  color: #6b44d1;
}
#massDeleteBottom {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #8659f1;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 6px rgba(134, 89, 241, 0.5);
  transition: background-color 0.2s;
}
#massDeleteBottom:hover:not(:disabled) {
  background-color: #6b44d1;
}
#massDeleteBottom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.header-with-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}
.header-with-filter i.filter-icon {
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
}
.header-with-filter i.filter-icon:hover,
.header-with-filter i.filter-icon.active {
  color: #8659f1;
}

#qr-reader {
  width: 100%;
  max-width: 500px;
  height: 300px;
  border: 2px solid #8659f1;
  border-radius: 8px;
  margin-top: 10px;
  display: none;
}

#siswaInfo {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgb(124 58 237 / 0.3);
  font-weight: 600;
  letter-spacing: 0.02em;
}
#siswaInfo p {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#siswaInfo span.font-semibold {
  color: #d8b4fe;
  flex-shrink: 0;
  width: 110px;
}
#autocompleteList {
  position: absolute;
  background: white;
  border: 1px solid #d1d5db;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  z-index: 50;
  border-radius: 0 0 0.375rem 0.375rem;
  top: 100%;
  left: 0;
}
#autocompleteList div {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
#autocompleteList div:hover,
#autocompleteList div[aria-selected="true"] {
  background-color: #7c3aed;
  color: white;
}

table img {
  max-width: 48px;
  max-height: 48px;
  object-fit: cover;
  border-radius: 0.25rem;
  margin: 0 auto;
}
.preview-image {
  max-width: 80px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 0.25rem;
  margin-left: 0.5rem;
  border: 1px solid #d1d5db;
}
.file-input-container {
  display: flex;
  align-items: center;
}

/* Custom styles for filter dropdowns */
.filterDropdown {
  position: absolute;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.1);
  z-index: 60;
  max-height: 200px;
  overflow-y: auto;
  width: 200px;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
}
.filterDropdown div {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.filterDropdown div:hover,
.filterDropdown div.active {
  background-color: #7c3aed;
  color: white;
}
