/**
 * Stránkové alerty / potvrzení / prompt – vzhled UI místo nativních dialogů.
 * Barvy Parní Kaktus: zelená #2f6b1f, výrazný kontrast.
 */

.pk-alerts-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pk-alerts-backdrop.pk-alerts-visible {
  opacity: 1;
  visibility: visible;
}

.pk-alerts-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(47, 107, 31, 0.25);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  font-family: "ProtestStrike";
  overflow: hidden;
}

.pk-alerts-backdrop.pk-alerts-visible + .pk-alerts-modal,
.pk-alerts-modal.pk-alerts-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.pk-alerts-header {
  background: linear-gradient(135deg, #2f6b1f 0%, #1a4d12 100%);
  color: #fff;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pk-alerts-header-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.pk-alerts-message {
  padding: 20px;
  color: #1a3a1a;
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 60vh;
  overflow-y: auto;
}

.pk-alerts-input-wrap {
  padding: 0 20px 12px;
}

.pk-alerts-input-wrap .pk-alerts-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(47, 107, 31, 0.35);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pk-alerts-input-wrap .pk-alerts-input:focus {
  border-color: #2f6b1f;
  box-shadow: 0 0 0 3px rgba(47, 107, 31, 0.2);
}

.pk-alerts-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.pk-alerts-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.pk-alerts-btn:active {
  transform: scale(0.98);
}

.pk-alerts-cancel {
  background: #e9ecef;
  color: #495057;
}

.pk-alerts-cancel:hover {
  background: #dee2e6;
}

.pk-alerts-ok {
  background: linear-gradient(135deg, #2f6b1f 0%, #1a4d12 100%);
  color: #fff;
}

.pk-alerts-ok:hover {
  background: linear-gradient(135deg, #3d8b29 0%, #2f6b1f 100%);
}

/* Jen jedno tlačítko (alert) */
.pk-alerts-modal.pk-alerts-alert-only .pk-alerts-cancel {
  display: none;
}

.pk-alerts-modal.pk-alerts-alert-only .pk-alerts-buttons {
  justify-content: center;
}
