/* ==========================================================================
   Angular-style confirm modal look for the legacy Semantic UI confirm dialogs.
   Opt-in: applies only to `.ui.modal` elements that also carry `.ng-confirm`,
   so ordinary Semantic modals are untouched. Mirrors the Angular
   ConfirmModalComponent (modal.shared.css): rounded white card, gradient
   header, gradient-green primary button, outlined secondary.
   ========================================================================== */

.ui.modal.ng-confirm {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

/* Header — gradient bar with serif title. */
.ui.modal.ng-confirm > .header {
  background: linear-gradient(100deg, #00a082 0%, #0e7f80 32%, #007db9 100%);
  color: #fff !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  padding: 1.5rem 2rem;
  border: none !important;
}

/* Optional top-right close icon (only some of these modals have one). */
.ui.modal.ng-confirm > .close.icon,
.ui.modal.ng-confirm > i.close.icon {
  top: 1.25rem;
  right: 1.25rem;
  color: #fff;
}

/* Body. */
.ui.modal.ng-confirm > .content {
  padding: 1.25rem 2rem;
  font-size: 14px;
  color: #45556c;
  line-height: 1.6;
}

/* Actions footer — confirm sits on the right (row-reverse), like Angular. */
.ui.modal.ng-confirm > .actions {
  background: #fff;
  border-top: none;
  padding: 0 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 0.625rem;
}

/* Shared button sizing inside the footer. */
.ui.modal.ng-confirm > .actions .btn {
  height: 44px;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  font-size: 14px;
  margin: 0;
}

/* Primary (confirm / approve / save) — always green gradient, like Angular's "Yes". */
.ui.modal.ng-confirm > .actions .approve,
.ui.modal.ng-confirm > .actions .btn-success {
  background: linear-gradient(95deg, #00a082 0%, #007db9 100%) !important;
  color: #fff !important;
  font-weight: 600;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 160, 130, 0.35);
}

/* Secondary (cancel / deny) — outlined, muted. */
.ui.modal.ng-confirm > .actions .cancel,
.ui.modal.ng-confirm > .actions .deny {
  background: transparent !important;
  color: #45556c !important;
  font-weight: 500;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}
.ui.modal.ng-confirm > .actions .cancel:hover,
.ui.modal.ng-confirm > .actions .deny:hover {
  background: #f8fafc !important;
}
