/* SimpleModal.css */
.simple-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1030;
  padding: 10px;
}

.simple-modal {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  width: 400px;
  max-width: 90%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent content from exceeding container */
}

/* Size Modifiers */
.simple-modal.size-xs {
  width: 300px;
}

.simple-modal.size-s {
  width: 400px;
}

.simple-modal.size-m {
  width: 600px;
}

.simple-modal.size-lg {
  width: 800px;
}

.simple-modal.size-xl {
  width: 1000px;
}

.simple-modal.size-full {
  width: 100%;
  max-width: none;
}

.simple-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.simple-modal-title {
  font-size: 18px;
  font-weight: bold;
}

.simple-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.simple-modal-body {
  padding: 15px;
  font-size: 14px;
  line-height: 1.5;
  overflow-y: auto;
  flex: 1; /* Allow the body to grow and shrink within the modal */
}

.simple-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 15px;
  border-top: 1px solid #ddd;
  background-color: #f5f5f5;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.simple-modal-footer button {
  padding: 5px 10px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.simple-modal-footer .simple-modal-ok {
  background-color: #007bff;
  color: #fff;
}

.simple-modal-footer .simple-modal-cancel {
  background-color: #ccc;
}
