/* =====================================================================
   AIDV Academy - Confirm Dialog (P3-3B)
   CSS thuần, scope class .aidv-confirm-* — không phụ thuộc Tailwind.
   ===================================================================== */

.aidv-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.aidv-confirm-overlay.aidv-confirm-visible {
  opacity: 1;
}

.aidv-confirm-modal {
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  background: #131b2e;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .75);
  transform: scale(.95);
  transition: transform .25s ease;
}
.aidv-confirm-overlay.aidv-confirm-visible .aidv-confirm-modal {
  transform: scale(1);
}

/* ---- Icon ---- */
.aidv-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aidv-confirm-icon svg {
  width: 48px;
  height: 48px;
  display: block;
}
.aidv-confirm-type-danger  .aidv-confirm-icon { color: #ef4444; }
.aidv-confirm-type-warning .aidv-confirm-icon { color: #f59e0b; }
.aidv-confirm-type-info    .aidv-confirm-icon { color: #00d4ff; }

/* ---- Văn bản ---- */
.aidv-confirm-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.4;
  color: #f0f4ff;
}
.aidv-confirm-message {
  margin: 0;
  font-size: 14px;
  font-weight: 420;
  line-height: 1.65;
  color: #d1d5db;
}
.aidv-confirm-highlight {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.55;
  color: #f87171;
}

/* ---- Nút ---- */
.aidv-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.aidv-confirm-btn {
  flex: 1;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s ease, background .15s ease, border-color .15s ease;
}
.aidv-confirm-cancel {
  background: transparent;
  border-color: rgba(255, 255, 255, .18);
  color: #cbd5e1;
}
.aidv-confirm-cancel:hover {
  border-color: rgba(255, 255, 255, .4);
  color: #f0f4ff;
}
.aidv-confirm-ok {
  color: #fff;
}
.aidv-confirm-ok:hover { opacity: .9; }
.aidv-confirm-type-danger  .aidv-confirm-ok { background: #ef4444; }
.aidv-confirm-type-warning .aidv-confirm-ok { background: #f59e0b; }
.aidv-confirm-type-info    .aidv-confirm-ok { background: linear-gradient(135deg, #7c3aed, #00d4ff); }

.aidv-confirm-btn:focus-visible {
  outline: 2px solid rgba(0, 212, 255, .65);
  outline-offset: 2px;
}

/* ---- Mobile: modal full-width, nút xếp dọc ---- */
@media (max-width: 480px) {
  .aidv-confirm-modal {
    padding: 22px 20px;
    border-radius: 14px;
  }
  .aidv-confirm-title { font-size: 17px; }
  .aidv-confirm-actions { flex-direction: column; }
}
