/* =========================================================
   MODAL OVERLAY
   ========================================================= */
.modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

/* =========================================================
   MODAL CONTENT
   ========================================================= */
.modal-content {
  background: var(--modal-bg);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: var(--modal-text);
  max-height: 90vh;
  max-width: 800px;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  width: 90%;
}

.modal .close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 1rem;
  top: 1rem;
}

/* =========================================================
   FORM GROUPS
   ========================================================= */
.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  color: var(--text-main);
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* =========================================================
   SIMPLE POPUP (ALERT / CONFIRMATION)
   ========================================================= */

.modal-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-popup-box {
  background: var(--card-bg);
  color: var(--text-main);
  padding: 25px;
  border-radius: 8px;
  width: 350px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.25s ease;
}

.modal-popup-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #ff6b6b;
}

.modal-popup-box .popup-message {
  font-size: 14px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.modal-popup-box button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #ff6b6b;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s ease;
}

.modal-popup-box button:hover {
  background: #e05555;
}