/* ============================================================
   B2 PREMIUM — Custom Modal for Alert & Confirm
   Replaces ugly browser dialogs with premium styled modals
   ============================================================ */

/* Overlay */
.b2-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: b2ModalFadeIn 0.25s ease forwards;
}
@keyframes b2ModalFadeIn {
  to { opacity: 1; }
}

/* Modal Box */
.b2-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
  text-align: center;
  transform: scale(0.9) translateY(10px);
  animation: b2ModalSlideIn 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes b2ModalSlideIn {
  to { transform: scale(1) translateY(0); }
}

/* Icon */
.b2-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}
.b2-modal-icon.success {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #2e7d32;
}
.b2-modal-icon.warning {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  color: #e65100;
}
.b2-modal-icon.info {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
}
.b2-modal-icon.error {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  color: #c62828;
}

/* Title */
.b2-modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

/* Message */
.b2-modal-msg {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Buttons */
.b2-modal-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.b2-modal-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.b2-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.b2-modal-btn.primary {
  background: linear-gradient(135deg, #0D3E26, #1a5c3a);
  color: #fff;
}
.b2-modal-btn.primary:hover {
  background: linear-gradient(135deg, #1a5c3a, #0D3E26);
}
.b2-modal-btn.danger {
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #fff;
}
.b2-modal-btn.danger:hover {
  background: linear-gradient(135deg, #b71c1c, #c62828);
}
.b2-modal-btn.cancel {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #e0e0e0;
}
.b2-modal-btn.cancel:hover {
  background: #eee;
}
