/**
 * 确认对话框组件样式
 * 独立样式模块，避免与其他组件冲突
 * 符合项目设计规范，使用Microsoft YaHei字体
 */

/* 对话框遮罩层 */
.confirm-dialog-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* 显示状态 */
.confirm-dialog-overlay.confirm-dialog-show {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
}

/* 隐藏状态 */
.confirm-dialog-overlay.confirm-dialog-hide {
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
}

/* 对话框容器 */
.confirm-dialog-container {
    position: relative;
    min-width: 420px;
    max-width: 600px;
    width: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.confirm-dialog-show .confirm-dialog-container {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.confirm-dialog-hide .confirm-dialog-container {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
}

/* 对话框头部 */
.confirm-dialog-header {
    padding: 28px 32px 20px 32px;
    text-align: center;
    border-bottom: 2px solid var(--border-primary);
    background: linear-gradient(180deg, 
        var(--bg-card) 0%, 
        var(--bg-secondary) 100%);
}

/* 图标 */
.confirm-dialog-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 标题 */
.confirm-dialog-title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

/* 对话框主体 */
.confirm-dialog-body {
    padding: 24px 32px;
    background: var(--bg-card);
}

/* 消息内容 */
.confirm-dialog-message {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}

/* 对话框底部 */
.confirm-dialog-footer {
    padding: 16px 32px 28px 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
    background: var(--bg-card);
}

/* 按钮基础样式 */
.confirm-dialog-btn {
    min-width: 100px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Microsoft YaHei", "微软雅黑", "SimSun", "宋体", "Arial", sans-serif;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
    overflow: hidden;
}

.confirm-dialog-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.confirm-dialog-btn:active::before {
    width: 300px;
    height: 300px;
}

/* 取消按钮 */
.confirm-dialog-btn-cancel {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

.confirm-dialog-btn-cancel:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.confirm-dialog-btn-cancel:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 确认按钮 - 信息类型（蓝色） */
.confirm-dialog-info .confirm-dialog-btn-confirm {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.confirm-dialog-info .confirm-dialog-btn-confirm:hover {
    background: linear-gradient(135deg, #5568d3 0%, #63408a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 确认按钮 - 警告类型（橙色） */
.confirm-dialog-warning .confirm-dialog-header {
    border-bottom-color: rgba(243, 156, 18, 0.3);
}

.confirm-dialog-warning .confirm-dialog-btn-confirm {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.confirm-dialog-warning .confirm-dialog-btn-confirm:hover {
    background: linear-gradient(135deg, #e08e0b 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* 确认按钮 - 危险类型（红色） */
.confirm-dialog-danger .confirm-dialog-header {
    border-bottom-color: rgba(231, 76, 60, 0.3);
}

.confirm-dialog-danger .confirm-dialog-btn-confirm {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.confirm-dialog-danger .confirm-dialog-btn-confirm:hover {
    background: linear-gradient(135deg, #d62c1a 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* 按钮激活状态 */
.confirm-dialog-btn-confirm:active {
    transform: translateY(0);
}

.confirm-dialog-btn:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* 移动端响应式已移除（项目仅支持 Windows 桌面端） */

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
    .confirm-dialog-container {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
                    0 0 0 1px rgba(255, 255, 255, 0.1);
    }
    
    .confirm-dialog-btn-cancel {
        background: var(--bg-tertiary);
        border-color: var(--border-secondary);
    }
    
    .confirm-dialog-btn-cancel:hover {
        background: var(--bg-hover);
        border-color: var(--border-accent);
    }
}

/* 打印时隐藏 */
@media print {
    .confirm-dialog-overlay {
        display: none !important;
    }
}
