/* 自定义确认框样式 */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.custom-confirm-dialog {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    max-width: 90%;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.custom-confirm-header {
    padding: 20px 24px;
    border-bottom: 1px solid #ebeef5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-confirm-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.custom-confirm-icon.warning {
    background: rgba(230, 162, 60, 0.1);
    color: #e6a23c;
}

.custom-confirm-icon.info {
    background: rgba(64, 158, 255, 0.1);
    color: #409eff;
}

.custom-confirm-icon.error {
    background: rgba(245, 108, 108, 0.1);
    color: #f56c6c;
}

.custom-confirm-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    flex: 1;
}

.custom-confirm-body {
    padding: 24px;
    color: #606266;
    font-size: 14px;
    line-height: 1.6;
}

.custom-confirm-footer {
    padding: 16px 24px;
    border-top: 1px solid #ebeef5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.custom-confirm-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-weight: 500;
}

.custom-confirm-btn-cancel {
    background: #f5f7fa;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.custom-confirm-btn-cancel:hover {
    background: #e9ecef;
    border-color: #c0c4cc;
}

.custom-confirm-btn-confirm {
    background: #409eff;
    color: #ffffff;
}

.custom-confirm-btn-confirm:hover {
    background: #66b1ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.custom-confirm-btn-confirm.danger {
    background: #f56c6c;
}

.custom-confirm-btn-confirm.danger:hover {
    background: #f78989;
    box-shadow: 0 4px 12px rgba(245, 108, 108, 0.3);
}

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

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

.custom-confirm-overlay.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.custom-confirm-dialog.fade-out {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes slideDown {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@media (max-width: 768px) {
    .custom-confirm-dialog {
        min-width: 280px;
        max-width: 85%;
    }
    
    .custom-confirm-header {
        padding: 16px 20px;
    }
    
    .custom-confirm-body {
        padding: 20px;
    }
    
    .custom-confirm-footer {
        padding: 12px 20px;
    }
}
