.my-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.my-modal-overlay.active {
  display: flex;
}

.my-modal-box {
    background: white;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    height: 96%;
    animation: fadeInUp 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-rows: 50px auto 50px;
    overflow: auto;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.my-modal-header, .my-modal-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: right;
}

.my-modal-header {
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.my-modal-close-icon {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #888;
}

.my-modal-close-icon:hover {
  color: #000;
}

.my-modal-body {
    padding: 20px;
}

.my-modal-footer {
  text-align: right;
  border-top: 1px solid #ddd;
}

.my-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.my-btn-submit {
  background-color: #007bff;
  color: white;
}

.my-btn-submit:hover {
  background-color: #0056b3;
}

.my-btn-close {
  background-color: #6c757d;
  color: white;
  margin-right: 10px;
}

.my-btn-close:hover {
  background-color: #5a6268;
}