body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8fafc;
  margin: 0;
  padding: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: fadeIn 0.5s ease;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

th {
  background: #f1f5f9;
}

button.editBtn {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button.editBtn:hover {
  transform: scale(1.05);
  background: #2563eb;
}

/* Modal */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

#overlay.visible {
  opacity: 1;
  visibility: visible;
}

#editModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: white;
  border-radius: 12px;
  padding: 20px;
  min-width: 350px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: 0.3s ease;
}

#editModal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#editForm input {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

button#saveBtn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
}

button#cancelBtn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #16a34a;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  animation: fadeIn 0.3s forwards, fadeOut 0.3s 2.7s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}