.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.confirm-modal {
  background: #ffffff;
  border-radius: 12px;
  max-width: 420px;
  width: calc(100% - 2rem);
  padding: 1.5rem 1.5rem 1rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.2);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", Roboto, sans-serif;
  animation: confirm-fade-in .16s ease-out;
}

.confirm-title {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  text-align: left;
  margin-bottom: .5rem;
}

.confirm-message {
  font-size: .9375rem;
  line-height: 1.4;
  color: #383838;
  text-align: left;
}

.confirm-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
}

.confirm-btn {
  appearance: none;
  border: 0;
  border-radius: .5rem;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .6rem .9rem;
  cursor: pointer;
}

.confirm-cancel {
  background: #dddddd;
  color: #000000;
}
.confirm-cancel:hover {
  background: #e5e7eb;
  color:#000000;
}

.confirm-accept {
  background: linear-gradient(129deg, #2eae91, #348ece);
  color: #fff;
}
.confirm-accept:hover {
  background: #0056b3;
  color:#ffffff;
}

@keyframes confirm-fade-in {
  from { opacity: 0; transform: translateY(4px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.alert-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.alert-modal {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-align: center;
  transform: translateY(0);
  transition: transform 0.3s ease;
  max-width: 300px;
  width: 90%;
}

.alert-title {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 10px;
}

.alert-message {
  font-size: 0.95em;
  margin-bottom: 15px;
}

.alert-buttons {
  display: flex;
  justify-content: center;
}

.alert-btn {
  background: linear-gradient(129deg, #2eae91, #348ece);
  border: none;
  color: white;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.alert-btn:hover {
  background: #0056b3;
}

.alert-backdrop.slide-down {
  opacity: 0;
}
.alert-backdrop.slide-down .alert-modal {
  transform: translateY(40px);
}

@keyframes alert-fade-in {
  from { opacity: 0; transform: translateY(4px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}


.prompt-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.prompt-modal {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  text-align: center;
  max-width: 320px;
  width: 90%;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.prompt-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.prompt-message {
  margin-bottom: 12px;
}

.prompt-input {
  width: 100%;
  padding: 8px;
  font-size: 0.95em;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
}

.prompt-buttons {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.prompt-btn {
  flex: 1;
  border: none;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  background: #007bff;
  color: white;
  transition: background 0.2s;
}
.prompt-btn:hover {
  background: #0056b3;
}

.prompt-cancel {
  background: #e5e7eb;
  color: #333;
}
.prompt-cancel:hover {
  background: #d1d5db;
}