/* Base modal styling shared across the app.
 *
 * Hardening note:
 * - Avoid unscoped selectors like `input {}` or `.error {}`.
 * - Scope everything to `.modal` so dashboard-specific CSS cannot
 *   accidentally affect unrelated pages/components.
 */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal .modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 5px;
  width: 300px;
  text-align: center;
}

.modal .modal-content .hint {
  font-size: 0.95em;
  margin: 0 0 10px;
}

.modal .close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

.modal input {
  margin: 5px 0;
  width: 90%;
  padding: 5px;
}

.modal .error {
  color: red;
}
