/* NotWasted Design System - Modals */
/* Modal overlay and dialog box styles */

/* Base modal overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

/* Modal content container */
.modal-box {
  background: var(--white, #ffffff);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Modal title */
.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--black, #000000);
}

/* Modal actions container */
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-actions button {
  flex: 1;
}

/* Hidden state */
.modal-overlay.hidden,
.modal.hidden {
  display: none;
}

/* Responsive for small screens */
@media (max-height: 600px) {
  .modal-overlay {
    padding: 8px;
  }
  .modal-box {
    max-height: calc(100vh - 16px);
    padding: 24px;
  }
  .modal-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
}
