@import "notification.css";

.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s;
}

.confirm-dialog {
  background: white;
  border-radius: 6px;
  width: 420px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.2s;
}

.confirm-dialog-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.confirm-dialog-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #999;
  padding: 0;
}

.close-btn:hover {
  color: #666;
}

.confirm-dialog-body {
  padding: 30px 20px;
  display: flex;
  align-items: center;
  min-height: 80px;
}

.icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.icon-wrapper i {
  font-size: 24px;
}

.icon-wrapper.icon-warning {
  color: #f39c12;
  background-color: rgba(243, 156, 18, 0.1);
}

.icon-wrapper.icon-info {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.1);
}

.icon-wrapper.icon-success {
  color: #27ae60;
  background-color: rgba(39, 174, 96, 0.1);
}

.icon-wrapper.icon-error {
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}
/* 图标容器 - 方形圆角 */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: bold;
    color: white;
}

/* 警告图标 - ⚠️ */
.icon-warning {
    background-color: #ffc107;
}

.icon-warning::before {
    content: "⚠️";
    font-size: 14px;
}

/* 信息图标 - ℹ️ */
.icon-info {
    background-color: #17a2b8;
}

.icon-info::before {
    content: "ℹ️";
    font-size: 16px;
}

/* 成功图标 - ✓ */
.icon-success {
    background-color: #28a745;
}

.icon-success::before {
    content: "✓";
    font-size: 16px;
    font-weight: bold;
}

/* 错误图标 - ✗ */
.icon-error {
    background-color: #dc3545;
}

.icon-error::before {
    content: "✗";
    font-size: 16px;
    font-weight: bold;
}
.message {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  flex: 1;
}

.confirm-dialog-footer {
  padding: 15px 20px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.confirm-dialog-footer .btn {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 基础按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 警告按钮 - 黄色/橙色 */
.btn-warning {
    background-color: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* 信息按钮 - 蓝色 */
.btn-info {
    background-color: #17a2b8;
    color: #fff;
    border: 1px solid #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

/* 成功按钮 - 绿色 */
.btn-success {
    background-color: #28a745;
    color: #fff;
    border: 1px solid #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* 错误按钮 - 红色 */
.btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}


