﻿/* ============================================
   爱米粥 - 自绘确认对话框 / 消息提示
   ============================================ */

/* 遮罩 */
.az-confirm-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  animation: azFadeIn 0.18s ease;
}
@keyframes azFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 对话框主体 */
.az-confirm-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: azPopIn 0.22s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
@keyframes azPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 图标区 */
.az-confirm-icon {
  text-align: center;
  padding: 28px 20px 0;
}
.az-confirm-icon .icon-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
}
.az-confirm-icon.warn .icon-circle {
  background: rgba(224,179,74,0.15);
  color: var(--color-warning);
}
.az-confirm-icon.danger .icon-circle {
  background: rgba(224,96,96,0.15);
  color: var(--color-danger);
}
.az-confirm-icon.success .icon-circle {
  background: rgba(92,184,122,0.15);
  color: var(--color-success);
}

/* 文字区 */
.az-confirm-body {
  padding: 16px 24px 8px;
  text-align: center;
}
.az-confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.az-confirm-msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 按钮区 */
.az-confirm-actions {
  display: flex; gap: 10px;
  padding: 16px 24px 24px;
}
.az-confirm-actions .az-btn { flex: 1; }
