button {
  padding: 0.5rem 1rem;
  background-color: #4c51bf;
  color: white;
  border-radius: 0.375rem;
  transition: background-color 0.3s;
}
button:hover {
  background-color: #434190;
}
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background-color: #2d3748;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 90%;
  max-width: 600px;
  height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal.open .modal-content {
  transform: scale(1);
}
.modal button.close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  color: #e2e8f0;
  font-size: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
}
.modal button.close:hover {
  color: #f56565;
}