/* ==========================================================================
   Leave Guard & Confirm Modal - Custom Styling Matching Design Spec
   ========================================================================== */

.confirm-modal__icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: .8rem;
  border-radius: 1rem;
  color: #866100;
  background: #fff3bf;
  font-size: 1.35rem;
}

.confirm-modal__copy {
  color: var(--mak-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Leave Guard Modal (#leaveGuardModal)
   ========================================================================== */

#leaveGuardModal.dealer-modal-backdrop,
.leave-guard-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#leaveGuardModal .dealer-modal,
.leave-guard-card {
  position: relative;
  overflow: hidden;
  width: min(90vw, 342px);
  padding: 32px 24px 26px;
  border-radius: 28px;
  text-align: center;
  background-color: #ffffff !important;
  background: #ffffff !important;
  opacity: 1 !important;
  border: none !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

/* Document Icon with alert badge in mint-green squircle container */
.leave-guard-icon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 18px;
}

.leave-guard-doc-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: #e3f5ec;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

/* Title & Description */
#leaveGuardModal h2,
.leave-guard-title {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0c281e;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 10px;
}

#leaveGuardModal p,
.leave-guard-desc {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: #4b5563;
  margin: 0 0 24px;
  padding: 0 4px;
}

/* Actions Container */
.leave-guard-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Buttons Base */
.leave-guard-btn {
  width: 100%;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Primary Stay Button: "Tiếp tục nhập" - Solid MEPES Green */
#leaveGuardModal #btnLeaveStay,
.leave-guard-btn-stay {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #076837 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  border: none !important;
  box-shadow: 0 2px 8px rgba(7, 104, 55, 0.2);
  transition: all 0.16s ease;
}

#leaveGuardModal #btnLeaveStay:hover,
.leave-guard-btn-stay:hover {
  background: #097d43 !important;
  box-shadow: 0 4px 12px rgba(7, 104, 55, 0.3);
}

#leaveGuardModal #btnLeaveStay:active,
.leave-guard-btn-stay:active {
  transform: scale(0.99);
}

/* Secondary Leave Button: "Rời khỏi" - Soft Pink Surface with Light Red Border & Text */
#leaveGuardModal #btnLeaveConfirm,
.leave-guard-btn-leave {
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  background: #fff0f0 !important;
  color: #c92a2a !important;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #fecdd3 !important;
  box-shadow: none;
  transition: all 0.16s ease;
}

#leaveGuardModal #btnLeaveConfirm:hover,
.leave-guard-btn-leave:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

#leaveGuardModal #btnLeaveConfirm:active,
.leave-guard-btn-leave:active {
  background: #fecaca !important;
  transform: scale(0.99);
}
