/* modal.css */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.modal-open .modal-backdrop {
  opacity: 1;
}

.modal.modal-open .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal.modal-closing .modal-backdrop {
  opacity: 0;
}

.modal.modal-closing .modal-content {
  transform: scale(0.9);
  opacity: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.5em;
  font-weight: 600;
}

.modal-body {
  padding: 30px 20px;
}

.modal-body p {
  margin: 15px 0;
  color: #666;
  line-height: 1.6;
  font-size: 16px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
}

.modal-cancel {
  padding: 8px 20px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: white;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.modal-cancel:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
